14 #ifndef LLVM_CLANG_LIB_BASIC_TARGETS_RISCV_H 15 #define LLVM_CLANG_LIB_BASIC_TARGETS_RISCV_H 19 #include "llvm/ADT/Triple.h" 20 #include "llvm/Support/Compiler.h" 69 bool hasFeature(StringRef Feature)
const override;
84 bool setABI(
const std::string &Name)
override {
86 if (Name ==
"ilp32") {
102 bool setABI(
const std::string &Name)
override {
104 if (Name ==
"lp64") {
114 #endif // LLVM_CLANG_LIB_BASIC_TARGETS_RISCV_H
unsigned char LongDoubleAlign
Options for controlling the target.
RISCVTargetInfo(const llvm::Triple &Triple, const TargetOptions &)
unsigned char LongDoubleWidth
RISCV64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
unsigned char PointerWidth
Concrete class used by the front-end to report problems and issues.
bool handleTargetFeatures(std::vector< std::string > &Features, DiagnosticsEngine &Diags) override
Perform initialization based on the user configured set of features.
bool setABI(const std::string &Name) override
Use the specified ABI.
BuiltinVaListKind getBuiltinVaListKind() const override
Returns the kind of __builtin_va_list type that should be used with this target.
RISCV32TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
StringRef getABI() const override
Get the ABI currently in use.
typedef void* __builtin_va_list;
Exposes information about the current target.
bool validateAsmConstraint(const char *&Name, TargetInfo::ConstraintInfo &Info) const override
ArrayRef< const char * > getGCCRegNames() const override
void resetDataLayout(StringRef DL)
bool hasFeature(StringRef Feature) const override
Return true if has this feature, need to sync with handleTargetFeatures.
Defines the clang::TargetOptions class.
unsigned char PointerAlign
ArrayRef< Builtin::Info > getTargetBuiltins() const override
Return information about target-specific builtins for the current primary target, and info about whic...
unsigned char SuitableAlign
Dataflow Directional Tag Classes.
bool setABI(const std::string &Name) override
Use the specified ABI.
BuiltinVaListKind
The different kinds of __builtin_va_list types defined by the target implementation.
const char * getClobbers() const override
Returns a string of target-specific clobbers, in LLVM format.
Defines the clang::TargetInfo interface.
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods --------------------——===//
const llvm::fltSemantics * LongDoubleFormat
ArrayRef< TargetInfo::GCCRegAlias > getGCCRegAliases() const override