14 #ifndef LLVM_CLANG_LIB_BASIC_TARGETS_HEXAGON_H 15 #define LLVM_CLANG_LIB_BASIC_TARGETS_HEXAGON_H 19 #include "llvm/ADT/Triple.h" 20 #include "llvm/Support/Compiler.h" 32 std::string HVXVersion;
34 bool HasHVX64B =
false;
35 bool HasHVX128B =
false;
36 bool UseLongCalls =
false;
45 "e-m:e-p:32:32:32-a:0-n16:32-" 46 "i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-" 47 "v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048");
48 SizeType = UnsignedInt;
49 PtrDiffType = SignedInt;
50 IntPtrType = SignedInt;
56 LargeArrayMinWidth = 64;
58 UseBitFieldTypeAlignment =
true;
59 ZeroLengthBitfieldBoundary = 32;
89 bool hasFeature(StringRef Feature)
const override;
94 const std::vector<std::string> &FeaturesVec)
const override;
96 bool handleTargetFeatures(std::vector<std::string> &Features,
109 static const char *getHexagonCPUSuffix(StringRef Name);
112 return getHexagonCPUSuffix(Name);
117 bool setCPU(
const std::string &Name)
override {
118 if (!isValidCPUName(Name))
125 return RegNo < 2 ? RegNo : -1;
130 #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.