13#ifndef LLVM_CLANG_LIB_BASIC_TARGETS_TCE_H
14#define LLVM_CLANG_LIB_BASIC_TARGETS_TCE_H
18#include "llvm/ADT/Triple.h"
19#include "llvm/Support/Compiler.h"
62 LongWidth = LongLongWidth = 32;
65 LongAlign = LongLongAlign = 32;
68 SizeType = UnsignedInt;
69 IntMaxType = SignedLong;
70 IntPtrType = SignedInt;
71 PtrDiffType = SignedInt;
78 FloatFormat = &llvm::APFloat::IEEEsingle();
79 DoubleFormat = &llvm::APFloat::IEEEsingle();
80 LongDoubleFormat = &llvm::APFloat::IEEEsingle();
81 resetDataLayout(
"E-p:32:32:32-i1:8:8-i8:8:32-"
82 "i16:16:32-i32:32:32-i64:32:32-"
83 "f32:32:32-f64:32:32-v64:32:32-"
84 "v128:32:32-v256:32:32-v512:32:32-"
85 "v1024:32:32-a0:0:32-n32");
87 UseAddrSpaceMapMangling =
true;
93 bool hasFeature(StringRef Feature)
const override {
return Feature ==
"tce"; }
102 return TargetInfo::VoidPtrBuiltinVaList;
125 resetDataLayout(
"e-p:32:32:32-i1:8:8-i8:8:32-"
126 "i16:16:32-i32:32:32-i64:32:32-"
127 "f32:32:32-f64:32:32-v64:32:32-"
128 "v128:32:32-v256:32:32-v512:32:32-"
129 "v1024:32:32-a0:0:32-n32");
Defines the clang::TargetOptions class.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Exposes information about the current target.
BuiltinVaListKind
The different kinds of __builtin_va_list types defined by the target implementation.
Options for controlling the target.
TCELETargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
const char * getClobbers() const override
Returns a string of target-specific clobbers, in LLVM format.
ArrayRef< const char * > getGCCRegNames() const override
BuiltinVaListKind getBuiltinVaListKind() const override
Returns the kind of __builtin_va_list type that should be used with this target.
TCETargetInfo(const llvm::Triple &Triple, const TargetOptions &)
ArrayRef< TargetInfo::GCCRegAlias > getGCCRegAliases() const override
ArrayRef< Builtin::Info > getTargetBuiltins() const override
Return information about target-specific builtins for the current primary target, and info about whic...
bool validateAsmConstraint(const char *&Name, TargetInfo::ConstraintInfo &info) const override
bool hasFeature(StringRef Feature) const override
Determine whether the given target has the given feature.
Defines the clang::TargetInfo interface.
static const unsigned TCEOpenCLAddrSpaceMap[]