61 bool HasAtomics =
false;
62 bool HasBulkMemory =
false;
63 bool HasBulkMemoryOpt =
false;
64 bool HasCallIndirectOverlong =
false;
65 bool HasCompactImports =
false;
66 bool HasExceptionHandling =
false;
67 bool HasExtendedConst =
false;
70 bool HasMultiMemory =
false;
71 bool HasMultivalue =
false;
72 bool HasMutableGlobals =
false;
73 bool HasNontrappingFPToInt =
false;
74 bool HasReferenceTypes =
false;
75 bool HasRelaxedAtomics =
false;
76 bool HasSignExt =
false;
77 bool HasTailCall =
false;
78 bool HasWideArithmetic =
false;
114 StringRef getABI()
const override;
115 bool setABI(
const std::string &Name)
override;
123 static void setSIMDLevel(llvm::StringMap<bool> &Features, SIMDEnum Level,
129 const std::vector<std::string> &FeaturesVec)
const override;
132 void setFeatureEnabled(llvm::StringMap<bool> &Features, StringRef Name,
133 bool Enabled)
const final;
135 bool handleTargetFeatures(std::vector<std::string> &Features,
138 bool isValidCPUName(StringRef Name)
const final;
141 bool setCPU(
const std::string &Name)
final {
return isValidCPUName(Name); }
145 BuiltinVaListKind getBuiltinVaListKind() const final {
146 return VoidPtrBuiltinVaList;
151 ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const final {
155 bool validateAsmConstraint(
const char *&Name,
156 TargetInfo::ConstraintInfo &Info)
const final {
160 std::string_view getClobbers() const final {
return ""; }
162 bool isCLZForZeroUndef() const final {
return false; }
164 bool hasInt128Type() const final {
return true; }
166 IntType getIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
168 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
169 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned);
172 IntType getLeastIntTypeByWidth(
unsigned BitWidth,
bool IsSigned)
const final {
174 return BitWidth == 64
175 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
176 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned);
179 CallingConvCheckResult checkCallingConvention(CallingConv CC)
const override {
191 bool hasBitIntType()
const override {
return true; }
193 bool hasProtectedVisibility()
const override {
return false; }
195 void adjust(DiagnosticsEngine &Diags, LangOptions &Opts,
196 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.