60 bool HasAtomics =
false;
61 bool HasBulkMemory =
false;
62 bool HasBulkMemoryOpt =
false;
63 bool HasCallIndirectOverlong =
false;
64 bool HasExceptionHandling =
false;
65 bool HasExtendedConst =
false;
68 bool HasMultiMemory =
false;
69 bool HasMultivalue =
false;
70 bool HasMutableGlobals =
false;
71 bool HasNontrappingFPToInt =
false;
72 bool HasReferenceTypes =
false;
73 bool HasSignExt =
false;
74 bool HasTailCall =
false;
75 bool HasWideArithmetic =
false;
99 StringRef getABI()
const override;
100 bool setABI(
const std::string &Name)
override;
108 static void setSIMDLevel(llvm::StringMap<bool> &Features, SIMDEnum Level,
114 const std::vector<std::string> &FeaturesVec)
const override;
117 void setFeatureEnabled(llvm::StringMap<bool> &Features, StringRef Name,
118 bool Enabled)
const final;
120 bool handleTargetFeatures(std::vector<std::string> &Features,
123 bool isValidCPUName(StringRef Name)
const final;
126 bool setCPU(
const std::string &Name)
final {
return isValidCPUName(Name); }
130 BuiltinVaListKind getBuiltinVaListKind() const final {
131 return VoidPtrBuiltinVaList;
136 ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const final {
140 bool validateAsmConstraint(
const char *&Name,
141 TargetInfo::ConstraintInfo &Info)
const final {
145 std::string_view getClobbers() const final {
return ""; }
147 bool isCLZForZeroUndef() const final {
return false; }
149 bool hasInt128Type() const final {
return true; }
151 IntType getIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
153 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
154 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned);
157 IntType getLeastIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
159 return BitWidth == 64
160 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
161 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned);
164 CallingConvCheckResult checkCallingConvention(CallingConv CC)
const override {
176 bool hasBitIntType()
const override {
return true; }
178 bool hasProtectedVisibility()
const override {
return false; }
180 void adjust(DiagnosticsEngine &Diags, LangOptions &Opts,
181 const TargetInfo *Aux)
override;
static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, const TargetInfo &Target)
Determine whether a translation unit built using the current language options has the given feature.