13 #ifndef LLVM_CLANG_LIB_BASIC_TARGETS_RISCV_H 14 #define LLVM_CLANG_LIB_BASIC_TARGETS_RISCV_H 18 #include "llvm/ADT/Triple.h" 19 #include "llvm/Support/Compiler.h" 74 bool hasFeature(StringRef Feature)
const override;
89 bool setABI(
const std::string &Name)
override {
90 if (Name ==
"ilp32" || Name ==
"ilp32f" || Name ==
"ilp32d") {
113 bool setABI(
const std::string &Name)
override {
114 if (Name ==
"lp64" || Name ==
"lp64f" || Name ==
"lp64d") {
131 #endif // LLVM_CLANG_LIB_BASIC_TARGETS_RISCV_H
int getEHDataRegisterNumber(unsigned RegNo) const override
Return the register number that __builtin_eh_return_regno would return with the specified argument...
Options for controlling the target.
RISCVTargetInfo(const llvm::Triple &Triple, const TargetOptions &)
unsigned char LongDoubleAlign
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 MaxAtomicPromoteWidth
bool validateAsmConstraint(const char *&Name, TargetInfo::ConstraintInfo &Info) const override
unsigned char SuitableAlign
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.
ArrayRef< const char * > getGCCRegNames() const override
void resetDataLayout(StringRef DL)
const llvm::fltSemantics * LongDoubleFormat
bool hasFeature(StringRef Feature) const override
Return true if has this feature, need to sync with handleTargetFeatures.
unsigned char LongDoubleWidth
Defines the clang::TargetOptions class.
ArrayRef< Builtin::Info > getTargetBuiltins() const override
Return information about target-specific builtins for the current primary target, and info about whic...
void setMaxAtomicWidth() override
Set the maximum inline or promote width lock-free atomic operation for the given target.
unsigned char PointerWidth
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 --------------------——===//
unsigned char MaxAtomicInlineWidth
unsigned char PointerAlign
ArrayRef< TargetInfo::GCCRegAlias > getGCCRegAliases() const override
void setMaxAtomicWidth() override
Set the maximum inline or promote width lock-free atomic operation for the given target.