clang 23.0.0git
AArch64.h
Go to the documentation of this file.
1//===--- AArch64.h - Declare AArch64 target feature support -----*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file declares AArch64 TargetInfo objects.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_CLANG_LIB_BASIC_TARGETS_AARCH64_H
14#define LLVM_CLANG_LIB_BASIC_TARGETS_AARCH64_H
15
16#include "OSTargets.h"
18#include "llvm/ADT/DenseSet.h"
19#include "llvm/TargetParser/AArch64TargetParser.h"
20#include <optional>
21
22namespace clang {
23namespace targets {
24
25enum AArch64AddrSpace { ptr32_sptr = 270, ptr32_uptr = 271, ptr64 = 272 };
26
27static const unsigned ARM64AddrSpaceMap[] = {
28 0, // Default
29 0, // opencl_global
30 0, // opencl_local
31 0, // opencl_constant
32 0, // opencl_private
33 0, // opencl_generic
34 0, // opencl_global_device
35 0, // opencl_global_host
36 0, // cuda_device
37 0, // cuda_constant
38 0, // cuda_shared
39 0, // sycl_global
40 0, // sycl_global_device
41 0, // sycl_global_host
42 0, // sycl_local
43 0, // sycl_private
44 static_cast<unsigned>(AArch64AddrSpace::ptr32_sptr),
45 static_cast<unsigned>(AArch64AddrSpace::ptr32_uptr),
46 static_cast<unsigned>(AArch64AddrSpace::ptr64),
47 0, // hlsl_groupshared
48 0, // hlsl_constant
49 0, // hlsl_private
50 0, // hlsl_device
51 0, // hlsl_input
52 0, // hlsl_output
53 0, // hlsl_push_constant
54 // Wasm address space values for this target are dummy values,
55 // as it is only enabled for Wasm targets.
56 20, // wasm_funcref
57};
58
59using AArch64FeatureSet = llvm::SmallDenseSet<StringRef, 32>;
60
61class LLVM_LIBRARY_VISIBILITY AArch64TargetInfo : public TargetInfo {
62 static const TargetInfo::GCCRegAlias GCCRegAliases[];
63 static const char *const GCCRegNames[];
64
65 enum FPUModeEnum {
66 FPUMode = (1 << 0),
67 NeonMode = (1 << 1),
68 SveMode = (1 << 2),
69 };
70
71 unsigned FPU = FPUMode;
72 bool HasCRC = false;
73 bool HasCSSC = false;
74 bool HasAES = false;
75 bool HasSHA2 = false;
76 bool HasSHA3 = false;
77 bool HasSM4 = false;
78 bool HasFullFP16 = false;
79 bool HasDotProd = false;
80 bool HasFP16FML = false;
81 bool HasMTE = false;
82 bool HasPAuth = false;
83 bool HasLS64 = false;
84 bool HasRandGen = false;
85 bool HasMatMul = false;
86 bool HasBFloat16 = false;
87 bool HasSVE2 = false;
88 bool HasSVE2p1 = false;
89 bool HasSVEAES = false;
90 bool HasSVE2SHA3 = false;
91 bool HasSVE2SM4 = false;
92 bool HasSVEB16B16 = false;
93 bool HasSVEBitPerm = false;
94 bool HasMatmulFP64 = false;
95 bool HasMatmulFP32 = false;
96 bool HasLSE = false;
97 bool HasFlagM = false;
98 bool HasAlternativeNZCV = false;
99 bool HasMOPS = false;
100 bool HasD128 = false;
101 bool HasRCPC = false;
102 bool HasRDM = false;
103 bool HasDIT = false;
104 bool HasCCPP = false;
105 bool HasCCDP = false;
106 bool HasFRInt3264 = false;
107 bool HasSME = false;
108 bool HasSME2 = false;
109 bool HasSMEF64F64 = false;
110 bool HasSMEI16I64 = false;
111 bool HasSMEF16F16 = false;
112 bool HasSMEB16B16 = false;
113 bool HasSME2p1 = false;
114 bool HasFP8 = false;
115 bool HasFP8FMA = false;
116 bool HasFP8DOT2 = false;
117 bool HasFP8DOT4 = false;
118 bool HasSSVE_FP8DOT2 = false;
119 bool HasSSVE_FP8DOT4 = false;
120 bool HasSSVE_FP8FMA = false;
121 bool HasSME_F8F32 = false;
122 bool HasSME_F8F16 = false;
123 bool HasSB = false;
124 bool HasPredRes = false;
125 bool HasSSBS = false;
126 bool HasBTI = false;
127 bool HasWFxT = false;
128 bool HasJSCVT = false;
129 bool HasFCMA = false;
130 bool HasNoFP = false;
131 bool HasNoNeon = false;
132 bool HasNoSVE = false;
133 bool HasFMV = true;
134 bool HasGCS = false;
135 bool HasRCPC3 = false;
136 bool HasSMEFA64 = false;
137 bool HasPAuthLR = false;
138 bool HasFPRCVT = false;
139 bool HasF8F16MM = false;
140 bool HasF8F32MM = false;
141 bool HasSVE_F16F32MM = false;
142 bool HasSVE_BFSCALE = false;
143 bool HasSVE_AES2 = false;
144 bool HasSSVE_AES = false;
145 bool HasSVE2p2 = false;
146 bool HasSME2p2 = false;
147 bool HasSVE2p3 = false;
148 bool HasSME2p3 = false;
149 bool HasSVE_B16MM = false;
150 bool HasF16MM = false;
151 bool HasF16F32DOT = false;
152 bool HasF16F32MM = false;
153
154 const llvm::AArch64::ArchInfo *ArchInfo = &llvm::AArch64::ARMV8A;
155
156 AArch64FeatureSet HasFeatureLookup;
157
158 void computeFeatureLookup();
159
160protected:
161 std::string ABI;
162
163public:
164 AArch64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts);
165
166 StringRef getABI() const override;
167 bool setABI(const std::string &Name) override;
168
169 bool validateBranchProtection(StringRef Spec, StringRef Arch,
171 const LangOptions &LO,
172 StringRef &Err) const override;
173
174 bool isValidCPUName(StringRef Name) const override;
175 void fillValidCPUList(SmallVectorImpl<StringRef> &Values) const override;
176 bool setCPU(StringRef Name) override;
177
178 llvm::APInt getFMVPriority(ArrayRef<StringRef> Features) const override;
179
180 void getTargetDefinesARMV81A(const LangOptions &Opts,
181 MacroBuilder &Builder) const;
182 void getTargetDefinesARMV82A(const LangOptions &Opts,
183 MacroBuilder &Builder) const;
184 void getTargetDefinesARMV83A(const LangOptions &Opts,
185 MacroBuilder &Builder) const;
186 void getTargetDefinesARMV84A(const LangOptions &Opts,
187 MacroBuilder &Builder) const;
188 void getTargetDefinesARMV85A(const LangOptions &Opts,
189 MacroBuilder &Builder) const;
190 void getTargetDefinesARMV86A(const LangOptions &Opts,
191 MacroBuilder &Builder) const;
192 void getTargetDefinesARMV87A(const LangOptions &Opts,
193 MacroBuilder &Builder) const;
194 void getTargetDefinesARMV88A(const LangOptions &Opts,
195 MacroBuilder &Builder) const;
196 void getTargetDefinesARMV89A(const LangOptions &Opts,
197 MacroBuilder &Builder) const;
198 void getTargetDefinesARMV9A(const LangOptions &Opts,
199 MacroBuilder &Builder) const;
200 void getTargetDefinesARMV91A(const LangOptions &Opts,
201 MacroBuilder &Builder) const;
202 void getTargetDefinesARMV92A(const LangOptions &Opts,
203 MacroBuilder &Builder) const;
204 void getTargetDefinesARMV93A(const LangOptions &Opts,
205 MacroBuilder &Builder) const;
206 void getTargetDefinesARMV94A(const LangOptions &Opts,
207 MacroBuilder &Builder) const;
208 void getTargetDefinesARMV95A(const LangOptions &Opts,
209 MacroBuilder &Builder) const;
210 void getTargetDefinesARMV96A(const LangOptions &Opts,
211 MacroBuilder &Builder) const;
212 void getTargetDefinesARMV97A(const LangOptions &Opts,
213 MacroBuilder &Builder) const;
214 void getTargetDefines(const LangOptions &Opts,
215 MacroBuilder &Builder) const override;
216
218
219 std::optional<std::pair<unsigned, unsigned>>
220 getVScaleRange(const LangOptions &LangOpts, ArmStreamingKind Mode,
221 llvm::StringMap<bool> *FeatureMap = nullptr) const override;
222 bool doesFeatureAffectCodeGen(StringRef Name) const override;
223 bool validateCpuSupports(StringRef FeatureStr) const override;
224 bool hasFeature(StringRef Feature) const override;
225 void setFeatureEnabled(llvm::StringMap<bool> &Features, StringRef Name,
226 bool Enabled) const override;
227 bool handleTargetFeatures(std::vector<std::string> &Features,
228 DiagnosticsEngine &Diags) override;
229 ParsedTargetAttr parseTargetAttr(StringRef Str) const override;
230 bool supportsTargetAttributeTune() const override { return true; }
231 bool supportsCpuSupports() const override { return true; }
232 bool checkArithmeticFenceSupported() const override { return true; }
233
234 bool hasBFloat16Type() const override;
235
236 CallingConvCheckResult checkCallingConvention(CallingConv CC) const override;
237
238 bool isCLZForZeroUndef() const override;
239
240 BuiltinVaListKind getBuiltinVaListKind() const override;
241
242 ArrayRef<const char *> getGCCRegNames() const override;
243 ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const override;
244
245 std::string convertConstraint(const char *&Constraint) const override;
246
247 bool validateAsmConstraint(const char *&Name,
248 TargetInfo::ConstraintInfo &Info) const override;
249 bool
250 validateConstraintModifier(StringRef Constraint, char Modifier, unsigned Size,
251 std::string &SuggestedModifier) const override;
252 std::string_view getClobbers() const override;
253
254 StringRef getConstraintRegister(StringRef Constraint,
255 StringRef Expression) const override {
256 return Expression;
257 }
258
259 int getEHDataRegisterNumber(unsigned RegNo) const override;
260
261 bool validatePointerAuthKey(const llvm::APSInt &value) const override;
262
263 const char *getBFloat16Mangling() const override { return "u6__bf16"; };
264
265 std::pair<unsigned, unsigned> hardwareInterferenceSizes() const override {
266 return std::make_pair(256, 64);
267 }
268
269 bool hasInt128Type() const override;
270
271 bool hasBitIntType() const override { return true; }
272
273 bool validateTarget(DiagnosticsEngine &Diags) const override;
274
275 bool validateGlobalRegisterVariable(StringRef RegName, unsigned RegSize,
276 bool &HasSizeMismatch) const override;
277
278 uint64_t getPointerWidthV(LangAS AddrSpace) const override {
279 if (AddrSpace == LangAS::ptr32_sptr || AddrSpace == LangAS::ptr32_uptr)
280 return 32;
281 if (AddrSpace == LangAS::ptr64)
282 return 64;
283 return PointerWidth;
284 }
285
286 uint64_t getPointerAlignV(LangAS AddrSpace) const override {
287 return getPointerWidthV(AddrSpace);
288 }
289};
290
291class LLVM_LIBRARY_VISIBILITY AArch64leTargetInfo : public AArch64TargetInfo {
292public:
293 AArch64leTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts);
294
295 void getTargetDefines(const LangOptions &Opts,
296 MacroBuilder &Builder) const override;
297};
298
299template <>
300inline bool
302 if (Name == "pauthtest") {
303 ABI = Name;
304 return true;
305 }
306 return AArch64leTargetInfo::setABI(Name);
307}
308
309class LLVM_LIBRARY_VISIBILITY WindowsARM64TargetInfo
310 : public WindowsTargetInfo<AArch64leTargetInfo> {
311 const llvm::Triple Triple;
312
313public:
314 WindowsARM64TargetInfo(const llvm::Triple &Triple,
315 const TargetOptions &Opts);
316
318
320};
321
322// Windows ARM, MS (C++) ABI
323class LLVM_LIBRARY_VISIBILITY MicrosoftARM64TargetInfo
324 : public WindowsARM64TargetInfo {
325public:
326 MicrosoftARM64TargetInfo(const llvm::Triple &Triple,
327 const TargetOptions &Opts);
328
329 void getTargetDefines(const LangOptions &Opts,
330 MacroBuilder &Builder) const override;
332 getCallingConvKind(bool ClangABICompat4) const override;
333
334 unsigned getMinGlobalAlign(uint64_t TypeSize,
335 bool HasNonWeakDef) const override;
336};
337
338// ARM64 MinGW target
339class LLVM_LIBRARY_VISIBILITY MinGWARM64TargetInfo
340 : public WindowsARM64TargetInfo {
341public:
342 MinGWARM64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts);
343};
344
345class LLVM_LIBRARY_VISIBILITY AArch64beTargetInfo : public AArch64TargetInfo {
346public:
347 AArch64beTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts);
348 void getTargetDefines(const LangOptions &Opts,
349 MacroBuilder &Builder) const override;
350};
351
352void getAppleMachOAArch64Defines(MacroBuilder &Builder, const LangOptions &Opts,
353 const llvm::Triple &Triple);
354
355class LLVM_LIBRARY_VISIBILITY AppleMachOAArch64TargetInfo
356 : public AppleMachOTargetInfo<AArch64leTargetInfo> {
357public:
358 AppleMachOAArch64TargetInfo(const llvm::Triple &Triple,
359 const TargetOptions &Opts);
360
361 std::pair<unsigned, unsigned> hardwareInterferenceSizes() const override {
362 // Apple AArch64 cores use a 128-byte cache line, unlike the ARM-documented
363 // value of 256 used by the generic aarch64 triple.
364 return std::make_pair(128, 64);
365 }
366
367protected:
368 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
369 MacroBuilder &Builder) const override;
370};
371
372class LLVM_LIBRARY_VISIBILITY DarwinAArch64TargetInfo
373 : public DarwinTargetInfo<AArch64leTargetInfo> {
374public:
375 DarwinAArch64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts);
376
378
379 std::pair<unsigned, unsigned> hardwareInterferenceSizes() const override {
380 // Apple AArch64 cores use a 128-byte cache line, so 128 (not the generic
381 // AArch64 value of 256) is the right destructive interference size. These
382 // values are implementation-defined and not part of the ABI.
383 return std::make_pair(128, 64);
384 }
385
386 protected:
387 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
388 MacroBuilder &Builder) const override;
389};
390
391} // namespace targets
392} // namespace clang
393
394#endif // LLVM_CLANG_LIB_BASIC_TARGETS_AARCH64_H
static llvm::APInt getFMVPriority(const TargetInfo &TI, const CodeGenFunction::FMVResolverOption &RO)
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.
Definition Module.cpp:95
Enumerates target-specific builtins in their own namespaces within namespace clang.
Concrete class used by the front-end to report problems and issues.
Definition Diagnostic.h:234
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
TargetInfo(const llvm::Triple &T)
BuiltinVaListKind
The different kinds of __builtin_va_list types defined by the target implementation.
Definition TargetInfo.h:337
virtual bool setABI(const std::string &Name)
Use the specified ABI.
Options for controlling the target.
StringRef getConstraintRegister(StringRef Constraint, StringRef Expression) const override
Extracts a register from the passed constraint (if it is a single-register constraint) and the asm la...
Definition AArch64.h:254
void getTargetDefinesARMV95A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:385
std::pair< unsigned, unsigned > hardwareInterferenceSizes() const override
The first value in the pair is the minimum offset between two objects to avoid false sharing (destruc...
Definition AArch64.h:265
uint64_t getPointerWidthV(LangAS AddrSpace) const override
Definition AArch64.h:278
bool supportsTargetAttributeTune() const override
Determine whether this TargetInfo supports tune in target attribute.
Definition AArch64.h:230
ParsedTargetAttr parseTargetAttr(StringRef Str) const override
Definition AArch64.cpp:1370
void getTargetDefinesARMV96A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:391
void getTargetDefinesARMV97A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:397
AArch64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
Definition AArch64.cpp:133
const char * getBFloat16Mangling() const override
Return the mangled code of bfloat.
Definition AArch64.h:263
bool handleTargetFeatures(std::vector< std::string > &Features, DiagnosticsEngine &Diags) override
Perform initialization based on the user configured set of features (e.g., +sse4).
Definition AArch64.cpp:1001
bool checkArithmeticFenceSupported() const override
Controls if __arithmetic_fence is supported in the targeted backend.
Definition AArch64.h:232
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods -----------------------—===//
Definition AArch64.cpp:403
void setFeatureEnabled(llvm::StringMap< bool > &Features, StringRef Name, bool Enabled) const override
Enable or disable a specific target feature; the feature name must be valid.
Definition AArch64.cpp:972
llvm::SmallVector< Builtin::InfosShard > getTargetBuiltins() const override
Return information about target-specific builtins for the current primary target, and info about whic...
Definition AArch64.cpp:791
bool setCPU(StringRef Name) override
Target the specified CPU.
Definition AArch64.cpp:288
void getTargetDefinesARMV89A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:349
void getTargetDefinesARMV92A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:367
void getTargetDefinesARMV93A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:373
bool setABI(const std::string &Name) override
Use the specified ABI.
Definition AArch64.cpp:213
void getTargetDefinesARMV84A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:314
bool isValidCPUName(StringRef Name) const override
Determine whether this TargetInfo supports the given CPU name.
Definition AArch64.cpp:284
void fillValidCPUList(SmallVectorImpl< StringRef > &Values) const override
Fill a SmallVectorImpl with the valid values to setCPU.
Definition AArch64.cpp:290
StringRef getABI() const override
Get the ABI currently in use.
Definition AArch64.cpp:211
void getTargetDefinesARMV88A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:343
bool hasBitIntType() const override
Determine whether the _BitInt type is supported on this target.
Definition AArch64.h:271
void getTargetDefinesARMV87A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:337
void getTargetDefinesARMV9A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:355
bool supportsCpuSupports() const override
Definition AArch64.h:231
void getTargetDefinesARMV91A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:361
std::optional< std::pair< unsigned, unsigned > > getVScaleRange(const LangOptions &LangOpts, ArmStreamingKind Mode, llvm::StringMap< bool > *FeatureMap=nullptr) const override
Returns target-specific min and max values VScale_Range.
Definition AArch64.cpp:806
void getTargetDefinesARMV81A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:295
bool validateBranchProtection(StringRef Spec, StringRef Arch, BranchProtectionInfo &BPI, const LangOptions &LO, StringRef &Err) const override
Determine if this TargetInfo supports the given branch protection specification.
Definition AArch64.cpp:252
uint64_t getPointerAlignV(LangAS AddrSpace) const override
Definition AArch64.h:286
void getTargetDefinesARMV86A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:327
void getTargetDefinesARMV94A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:379
void getTargetDefinesARMV82A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:300
void getTargetDefinesARMV83A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:306
bool validateCpuSupports(StringRef FeatureStr) const override
Definition AArch64.cpp:855
bool doesFeatureAffectCodeGen(StringRef Name) const override
Returns true if feature has an impact on target code generation.
Definition AArch64.cpp:848
void getTargetDefinesARMV85A(const LangOptions &Opts, MacroBuilder &Builder) const
Definition AArch64.cpp:320
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods -----------------------—===//
Definition AArch64.cpp:1768
AArch64beTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
Definition AArch64.cpp:1764
AArch64leTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
Definition AArch64.cpp:1754
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods -----------------------—===//
Definition AArch64.cpp:1758
std::pair< unsigned, unsigned > hardwareInterferenceSizes() const override
The first value in the pair is the minimum offset between two objects to avoid false sharing (destruc...
Definition AArch64.h:361
AppleMachOAArch64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
Definition AArch64.cpp:1861
AppleMachOTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
Definition OSTargets.h:54
DarwinAArch64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
Definition AArch64.cpp:1865
BuiltinVaListKind getBuiltinVaListKind() const override
Returns the kind of __builtin_va_list type that should be used with this target.
Definition AArch64.cpp:1924
std::pair< unsigned, unsigned > hardwareInterferenceSizes() const override
The first value in the pair is the minimum offset between two objects to avoid false sharing (destruc...
Definition AArch64.h:379
DarwinTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
Definition OSTargets.h:85
bool setABI(const std::string &Name) override
Definition OSTargets.h:421
unsigned getMinGlobalAlign(uint64_t TypeSize, bool HasNonWeakDef) const override
getMinGlobalAlign - Return the minimum alignment of a global variable, unless its alignment is explic...
Definition AArch64.cpp:1847
MicrosoftARM64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
Definition AArch64.cpp:1824
TargetInfo::CallingConvKind getCallingConvKind(bool ClangABICompat4) const override
Definition AArch64.cpp:1843
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods -----------------------—===//
Definition AArch64.cpp:1830
MinGWARM64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
Definition AArch64.cpp:1855
BuiltinVaListKind getBuiltinVaListKind() const override
Returns the kind of __builtin_va_list type that should be used with this target.
Definition AArch64.cpp:1795
WindowsARM64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
Definition AArch64.cpp:1776
CallingConvCheckResult checkCallingConvention(CallingConv CC) const override
Determines whether a given calling convention is valid for the target.
Definition AArch64.cpp:1800
WindowsTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
Definition OSTargets.h:888
void getAppleMachOAArch64Defines(MacroBuilder &Builder, const LangOptions &Opts, const llvm::Triple &Triple)
Definition AArch64.cpp:1889
llvm::SmallDenseSet< StringRef, 32 > AArch64FeatureSet
Definition AArch64.h:59
static const unsigned ARM64AddrSpaceMap[]
Definition AArch64.h:27
The JSON file list parser is used to communicate input to InstallAPI.
LangAS
Defines the address space values used by the address space qualifier of QualType.
CallingConv
CallingConv - Specifies the calling convention that a function uses.
Definition Specifiers.h:279
Contains information gathered from parsing the contents of TargetAttr.
Definition TargetInfo.h:60