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 HasMultiMemory =
false;
72 bool HasMultivalue =
false;
73 bool HasMutableGlobals =
false;
74 bool HasNontrappingFPToInt =
false;
75 bool HasReferenceTypes =
false;
76 bool HasRelaxedAtomics =
false;
77 bool HasSignExt =
false;
78 bool HasTailCall =
false;
79 bool HasWideArithmetic =
false;
115 StringRef getABI()
const override;
116 bool setABI(
const std::string &Name)
override;
124 static void setSIMDLevel(llvm::StringMap<bool> &Features, SIMDEnum Level,
130 const std::vector<std::string> &FeaturesVec)
const override;
133 void setFeatureEnabled(llvm::StringMap<bool> &Features, StringRef Name,
134 bool Enabled)
const final;
136 bool handleTargetFeatures(std::vector<std::string> &Features,
139 bool isValidCPUName(StringRef Name)
const final;
142 bool setCPU(
const std::string &Name)
final {
return isValidCPUName(Name); }
146 BuiltinVaListKind getBuiltinVaListKind() const final {
147 return VoidPtrBuiltinVaList;
152 ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const final {
156 bool validateAsmConstraint(
const char *&Name,
157 TargetInfo::ConstraintInfo &Info)
const final {
161 std::string_view getClobbers() const final {
return ""; }
163 bool isCLZForZeroUndef() const final {
return false; }
165 bool hasInt128Type() const final {
return true; }
167 IntType getIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
169 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
170 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned);
173 IntType getLeastIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
175 return BitWidth == 64
176 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
177 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned);
180 CallingConvCheckResult checkCallingConvention(CallingConv CC)
const override {
192 bool hasBitIntType()
const override {
return true; }
194 bool hasProtectedVisibility()
const override {
return false; }
196 void adjust(DiagnosticsEngine &Diags, LangOptions &Opts,
197 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.