13#ifndef LLVM_CLANG_LIB_BASIC_TARGETS_TCE_H
14#define LLVM_CLANG_LIB_BASIC_TARGETS_TCE_H
18#include "llvm/Support/Compiler.h"
19#include "llvm/TargetParser/Triple.h"
66 LongWidth = LongLongWidth = 32;
69 LongAlign = LongLongAlign = 32;
72 SizeType = UnsignedInt;
73 IntMaxType = SignedLong;
74 IntPtrType = SignedInt;
75 PtrDiffType = SignedInt;
82 FloatFormat = &llvm::APFloat::IEEEsingle();
83 DoubleFormat = &llvm::APFloat::IEEEsingle();
84 LongDoubleFormat = &llvm::APFloat::IEEEsingle();
85 resetDataLayout(
"E-p:32:32:32-i1:8:8-i8:8:32-"
86 "i16:16:32-i32:32:32-i64:32:32-"
87 "f32:32:32-f64:32:32-v64:32:32-"
88 "v128:32:32-v256:32:32-v512:32:32-"
89 "v1024:32:32-a0:0:32-n32");
91 UseAddrSpaceMapMangling =
true;
97 bool hasFeature(StringRef Feature)
const override {
return Feature ==
"tce"; }
104 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)
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...
std::string_view getClobbers() const override
Returns a string of target-specific clobbers, in LLVM format.
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[]
The JSON file list parser is used to communicate input to InstallAPI.