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"
65 LongWidth = LongLongWidth = 32;
68 LongAlign = LongLongAlign = 32;
71 SizeType = UnsignedInt;
72 IntMaxType = SignedLong;
73 IntPtrType = SignedInt;
74 PtrDiffType = SignedInt;
81 FloatFormat = &llvm::APFloat::IEEEsingle();
82 DoubleFormat = &llvm::APFloat::IEEEsingle();
83 LongDoubleFormat = &llvm::APFloat::IEEEsingle();
84 resetDataLayout(
"E-p:32:32:32-i1:8:8-i8:8:32-"
85 "i16:16:32-i32:32:32-i64:32:32-"
86 "f32:32:32-f64:32:32-v64:32:32-"
87 "v128:32:32-v256:32:32-v512:32:32-"
88 "v1024:32:32-a0:0:32-n32");
90 UseAddrSpaceMapMangling =
true;
96 bool hasFeature(StringRef Feature)
const override {
return Feature ==
"tce"; }
105 return TargetInfo::VoidPtrBuiltinVaList;
128 resetDataLayout(
"e-p:32:32:32-i1:8:8-i8:8:32-"
129 "i16:16:32-i32:32:32-i64:32:32-"
130 "f32:32:32-f64:32:32-v64:32:32-"
131 "v128:32:32-v256:32:32-v512:32:32-"
132 "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.