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;
112 StringRef getABI()
const override;
113 bool setABI(
const std::string &Name)
override;
121 static void setSIMDLevel(llvm::StringMap<bool> &Features, SIMDEnum Level,
127 const std::vector<std::string> &FeaturesVec)
const override;
130 void setFeatureEnabled(llvm::StringMap<bool> &Features, StringRef Name,
131 bool Enabled)
const final;
133 bool handleTargetFeatures(std::vector<std::string> &Features,
136 bool isValidCPUName(StringRef Name)
const final;
139 bool setCPU(
const std::string &Name)
final {
return isValidCPUName(Name); }
143 BuiltinVaListKind getBuiltinVaListKind() const final {
144 return VoidPtrBuiltinVaList;
149 ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const final {
153 bool validateAsmConstraint(
const char *&Name,
154 TargetInfo::ConstraintInfo &Info)
const final {
158 std::string_view getClobbers() const final {
return ""; }
160 bool isCLZForZeroUndef() const final {
return false; }
162 bool hasInt128Type() const final {
return true; }
164 IntType getIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
166 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
167 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned);
170 IntType getLeastIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
172 return BitWidth == 64
173 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
174 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned);
177 CallingConvCheckResult checkCallingConvention(CallingConv CC)
const override {
189 bool hasBitIntType()
const override {
return true; }
191 bool hasProtectedVisibility()
const override {
return false; }
193 void adjust(DiagnosticsEngine &Diags, LangOptions &Opts,
194 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.