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;
110 StringRef getABI()
const override;
111 bool setABI(
const std::string &Name)
override;
119 static void setSIMDLevel(llvm::StringMap<bool> &Features, SIMDEnum Level,
125 const std::vector<std::string> &FeaturesVec)
const override;
128 void setFeatureEnabled(llvm::StringMap<bool> &Features, StringRef Name,
129 bool Enabled)
const final;
131 bool handleTargetFeatures(std::vector<std::string> &Features,
134 bool isValidCPUName(StringRef Name)
const final;
137 bool setCPU(
const std::string &Name)
final {
return isValidCPUName(Name); }
141 BuiltinVaListKind getBuiltinVaListKind() const final {
142 return VoidPtrBuiltinVaList;
147 ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const final {
151 bool validateAsmConstraint(
const char *&Name,
152 TargetInfo::ConstraintInfo &Info)
const final {
156 std::string_view getClobbers() const final {
return ""; }
158 bool isCLZForZeroUndef() const final {
return false; }
160 bool hasInt128Type() const final {
return true; }
162 IntType getIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
164 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
165 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned);
168 IntType getLeastIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
170 return BitWidth == 64
171 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
172 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned);
175 CallingConvCheckResult checkCallingConvention(CallingConv CC)
const override {
187 bool hasBitIntType()
const override {
return true; }
189 bool hasProtectedVisibility()
const override {
return false; }
191 void adjust(DiagnosticsEngine &Diags, LangOptions &Opts,
192 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.