61 bool HasAtomics =
false;
62 bool HasBulkMemory =
false;
63 bool HasBulkMemoryOpt =
false;
64 bool HasCallIndirectOverlong =
false;
65 bool HasExceptionHandling =
false;
66 bool HasExtendedConst =
false;
69 bool HasMultiMemory =
false;
70 bool HasMultivalue =
false;
71 bool HasMutableGlobals =
false;
72 bool HasNontrappingFPToInt =
false;
73 bool HasReferenceTypes =
false;
74 bool HasSignExt =
false;
75 bool HasTailCall =
false;
76 bool HasWideArithmetic =
false;
111 StringRef getABI()
const override;
112 bool setABI(
const std::string &Name)
override;
120 static void setSIMDLevel(llvm::StringMap<bool> &Features, SIMDEnum Level,
126 const std::vector<std::string> &FeaturesVec)
const override;
129 void setFeatureEnabled(llvm::StringMap<bool> &Features, StringRef Name,
130 bool Enabled)
const final;
132 bool handleTargetFeatures(std::vector<std::string> &Features,
135 bool isValidCPUName(StringRef Name)
const final;
138 bool setCPU(
const std::string &Name)
final {
return isValidCPUName(Name); }
142 BuiltinVaListKind getBuiltinVaListKind() const final {
143 return VoidPtrBuiltinVaList;
148 ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const final {
152 bool validateAsmConstraint(
const char *&Name,
153 TargetInfo::ConstraintInfo &Info)
const final {
157 std::string_view getClobbers() const final {
return ""; }
159 bool isCLZForZeroUndef() const final {
return false; }
161 bool hasInt128Type() const final {
return true; }
163 IntType getIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
165 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
166 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned);
169 IntType getLeastIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
171 return BitWidth == 64
172 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
173 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned);
176 CallingConvCheckResult checkCallingConvention(CallingConv CC)
const override {
188 bool hasBitIntType()
const override {
return true; }
190 bool hasProtectedVisibility()
const override {
return false; }
192 void adjust(DiagnosticsEngine &Diags, LangOptions &Opts,
193 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.