13 #ifndef LLVM_CLANG_LIB_BASIC_TARGETS_HEXAGON_H 14 #define LLVM_CLANG_LIB_BASIC_TARGETS_HEXAGON_H 18 #include "llvm/ADT/Triple.h" 19 #include "llvm/Support/Compiler.h" 31 std::string HVXVersion;
33 bool HasHVX64B =
false;
34 bool HasHVX128B =
false;
35 bool UseLongCalls =
false;
44 "e-m:e-p:32:32:32-a:0-n16:32-" 45 "i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-" 46 "v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048");
47 SizeType = UnsignedInt;
48 PtrDiffType = SignedInt;
49 IntPtrType = SignedInt;
55 LargeArrayMinWidth = 64;
57 UseBitFieldTypeAlignment =
true;
58 ZeroLengthBitfieldBoundary = 32;
88 bool hasFeature(StringRef Feature)
const override;
93 const std::vector<std::string> &FeaturesVec)
const override;
95 bool handleTargetFeatures(std::vector<std::string> &Features,
108 static const char *getHexagonCPUSuffix(StringRef Name);
111 return getHexagonCPUSuffix(Name);
116 bool setCPU(
const std::string &Name)
override {
117 if (!isValidCPUName(Name))
124 return RegNo < 2 ? RegNo : -1;
129 #endif // LLVM_CLANG_LIB_BASIC_TARGETS_HEXAGON_H bool setCPU(const std::string &Name) override
Target the specified CPU.
static const Builtin::Info BuiltinInfo[]
static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, const TargetInfo &Target)
Determine whether a translation unit built using the current language options has the given feature...
Options for controlling the target.
const char * getClobbers() const override
Returns a string of target-specific clobbers, in LLVM format.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Concrete class used by the front-end to report problems and issues.
bool isCLZForZeroUndef() const override
The __builtin_clz* and __builtin_ctz* built-in functions are specified to have undefined results for ...
static const char *const GCCRegNames[]
Exposes information about the current target.
HexagonTargetInfo(const llvm::Triple &Triple, const TargetOptions &)
int getEHDataRegisterNumber(unsigned RegNo) const override
Return the register number that __builtin_eh_return_regno would return with the specified argument...
bool isValidCPUName(StringRef Name) const override
brief Determine whether this TargetInfo supports the given CPU name.
Defines the clang::TargetOptions class.
Dataflow Directional Tag Classes.
typedef char* __builtin_va_list;
bool validateAsmConstraint(const char *&Name, TargetInfo::ConstraintInfo &Info) const override
BuiltinVaListKind
The different kinds of __builtin_va_list types defined by the target implementation.
Defines the clang::TargetInfo interface.
BuiltinVaListKind getBuiltinVaListKind() const override
Returns the kind of __builtin_va_list type that should be used with this target.