14 #ifndef LLVM_CLANG_LIB_BASIC_TARGETS_XCORE_H 15 #define LLVM_CLANG_LIB_BASIC_TARGETS_XCORE_H 19 #include "llvm/ADT/Triple.h" 20 #include "llvm/Support/Compiler.h" 34 DoubleAlign = LongDoubleAlign = 32;
35 SizeType = UnsignedInt;
36 PtrDiffType = SignedInt;
37 IntPtrType = SignedInt;
38 WCharType = UnsignedChar;
39 WIntType = UnsignedInt;
40 UseZeroLengthBitfieldAlignment =
true;
41 resetDataLayout(
"e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:32" 42 "-f64:32-a:0:32-n32");
58 "r0",
"r1",
"r2",
"r3",
"r4",
"r5",
"r6",
"r7",
59 "r8",
"r9",
"r10",
"r11",
"cp",
"dp",
"sp",
"lr" 61 return llvm::makeArrayRef(GCCRegNames);
75 return (RegNo < 2) ? RegNo : -1;
82 #endif // LLVM_CLANG_LIB_BASIC_TARGETS_XCORE_H static const Builtin::Info BuiltinInfo[]
ArrayRef< TargetInfo::GCCRegAlias > getGCCRegAliases() const override
Options for controlling the target.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
bool allowsLargerPreferedTypeAlignment() const override
Whether target allows to overalign ABI-specified preferred alignment.
static const char *const GCCRegNames[]
typedef void* __builtin_va_list;
Exposes information about the current target.
XCoreTargetInfo(const llvm::Triple &Triple, const TargetOptions &)
Defines the clang::TargetOptions class.
bool validateAsmConstraint(const char *&Name, TargetInfo::ConstraintInfo &Info) const override
Dataflow Directional Tag Classes.
int getEHDataRegisterNumber(unsigned RegNo) const override
Return the register number that __builtin_eh_return_regno would return with the specified argument...
ArrayRef< const char * > getGCCRegNames() const override
const char * getClobbers() const override
Returns a string of target-specific clobbers, in LLVM format.
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.