62 bool HasAtomics =
false;
63 bool HasBulkMemory =
false;
64 bool HasBulkMemoryOpt =
false;
65 bool HasCallIndirectOverlong =
false;
66 bool HasCompactImports =
false;
67 bool HasExceptionHandling =
false;
68 bool HasExtendedConst =
false;
71 bool HasLibcallThreadContext =
false;
72 bool HasMultiMemory =
false;
73 bool HasMultivalue =
false;
74 bool HasMutableGlobals =
false;
75 bool HasNontrappingFPToInt =
false;
76 bool HasReferenceTypes =
false;
77 bool HasRelaxedAtomics =
false;
78 bool HasSignExt =
false;
79 bool HasTailCall =
false;
80 bool HasWideArithmetic =
false;
114 if (T.getOS() == llvm::Triple::WASIp3)
115 HasLibcallThreadContext =
true;
118 StringRef getABI()
const override;
119 bool setABI(
const std::string &Name)
override;
127 static void setSIMDLevel(llvm::StringMap<bool> &Features, SIMDEnum Level,
133 const std::vector<std::string> &FeaturesVec)
const override;
136 void setFeatureEnabled(llvm::StringMap<bool> &Features, StringRef Name,
137 bool Enabled)
const final;
139 bool handleTargetFeatures(std::vector<std::string> &Features,
142 bool isValidCPUName(StringRef Name)
const final;
145 bool setCPU(
const std::string &Name)
final {
return isValidCPUName(Name); }
149 BuiltinVaListKind getBuiltinVaListKind() const final {
150 return VoidPtrBuiltinVaList;
155 ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const final {
159 bool validateAsmConstraint(
const char *&Name,
160 TargetInfo::ConstraintInfo &Info)
const final {
164 std::string_view getClobbers() const final {
return ""; }
166 bool isCLZForZeroUndef() const final {
return false; }
168 bool hasInt128Type() const final {
return true; }
170 IntType getIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
172 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
173 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned);
176 IntType getLeastIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
178 return BitWidth == 64
179 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
180 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned);
183 CallingConvCheckResult checkCallingConvention(CallingConv CC)
const override {
195 bool hasBitIntType()
const override {
return true; }
197 bool hasProtectedVisibility()
const override {
return false; }
199 void adjust(DiagnosticsEngine &Diags, LangOptions &Opts,
200 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.