LLVM 24.0.0git
AArch64Subtarget.h
Go to the documentation of this file.
1//===--- AArch64Subtarget.h - Define Subtarget for the AArch64 -*- 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 the AArch64 specific subclass of TargetSubtarget.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_LIB_TARGET_AARCH64_AARCH64SUBTARGET_H
14#define LLVM_LIB_TARGET_AARCH64_AARCH64SUBTARGET_H
15
17#include "AArch64ISelLowering.h"
18#include "AArch64InstrInfo.h"
19#include "AArch64PointerAuth.h"
20#include "AArch64RegisterInfo.h"
28#include "llvm/IR/DataLayout.h"
30#include <optional>
31
32namespace llvm::AArch64 {
33// Mode for selecting how to insert frame record info into the stack ring
34// buffer.
36 // Do not record frame record info.
38
39 // Insert instructions into the prologue for storing into the stack ring
40 // buffer directly.
42};
43
45} // namespace llvm::AArch64
46
47#define OPTIONS_STRUCT_DECL
48#include "AArch64Options.inc"
49
50#define GET_SUBTARGETINFO_HEADER
51#include "AArch64GenSubtargetInfo.inc"
52
53namespace llvm {
54class GlobalValue;
55class StringRef;
56
58 const AArch64Options &CLOpts;
59
60public:
63#define ARM_PROCESSOR_FAMILY(ENUM) ENUM,
64#include "llvm/TargetParser/AArch64TargetParserDef.inc"
65#undef ARM_PROCESSOR_FAMILY
66 };
67
68protected:
69 /// ARMProcFamily - ARM processor family: Cortex-A53, Cortex-A57, and others.
71
72 // Enable 64-bit vectorization in SLP.
74
75// Bool members corresponding to the SubtargetFeatures defined in tablegen
76#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
77 bool ATTRIBUTE = DEFAULT;
78#include "AArch64GenSubtargetInfo.inc"
79
84 // Default scatter/gather overhead.
85 unsigned ScatterOverhead = 10;
86 unsigned GatherOverhead = 10;
89 unsigned MaxPrefetchIterationsAhead = UINT_MAX;
94 unsigned MaxJumpTableSize = 0;
95 unsigned FixedLoadLatency = 0;
96
97 // ReserveXRegister[i] - X#i is not available as a general purpose register.
99
100 // ReserveXRegisterForRA[i] - X#i is not available for register allocator.
102
103 // CustomCallUsedXRegister[i] - X#i call saved.
105
107
113 unsigned VScaleForTuning = 1;
115
117
118 /// TargetTriple - What processor and OS we're targeting.
120
125
126 /// GlobalISel related APIs.
127 std::unique_ptr<CallLowering> CallLoweringInfo;
128 std::unique_ptr<InlineAsmLowering> InlineAsmLoweringInfo;
129 std::unique_ptr<InstructionSelector> InstSelector;
130 std::unique_ptr<LegalizerInfo> Legalizer;
131 std::unique_ptr<RegisterBankInfo> RegBankInfo;
132
133private:
134 /// initializeSubtargetDependencies - Initializes using CPUString and the
135 /// passed in feature string so that we can use initializer lists for
136 /// subtarget initialization.
137 AArch64Subtarget &initializeSubtargetDependencies(StringRef FS,
138 StringRef CPUString,
139 StringRef TuneCPUString,
140 bool HasMinSize);
141
142 /// Initialize properties based on the selected processor family.
143 void initializeProperties(bool HasMinSize);
144
145public:
146 /// This constructor initializes the data members to match that
147 /// of the specified triple.
148 AArch64Subtarget(const Triple &TT, StringRef CPU, StringRef TuneCPU,
149 StringRef FS, const TargetMachine &TM, bool LittleEndian,
150 unsigned MinSVEVectorSizeInBitsOverride = 0,
151 unsigned MaxSVEVectorSizeInBitsOverride = 0,
152 bool IsStreaming = false, bool IsStreamingCompatible = false,
153 bool HasMinSize = false,
155
156 const AArch64Options &getCLOpts() const { return CLOpts; }
157
158// Getters for SubtargetFeatures defined in tablegen
159#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
160 bool GETTER() const { return ATTRIBUTE; }
161#include "AArch64GenSubtargetInfo.inc"
162
164 return &TSInfo;
165 }
166 const AArch64FrameLowering *getFrameLowering() const override {
167 return &FrameLowering;
168 }
169 const AArch64TargetLowering *getTargetLowering() const override {
170 return &TLInfo;
171 }
172 const AArch64InstrInfo *getInstrInfo() const override { return &InstrInfo; }
173 const AArch64RegisterInfo *getRegisterInfo() const override {
174 return &getInstrInfo()->getRegisterInfo();
175 }
176 const CallLowering *getCallLowering() const override;
177 const InlineAsmLowering *getInlineAsmLowering() const override;
179 const LegalizerInfo *getLegalizerInfo() const override;
180 const RegisterBankInfo *getRegBankInfo() const override;
181 const Triple &getTargetTriple() const { return TargetTriple; }
182 bool enableMachineScheduler() const override { return true; }
183 bool enablePostRAScheduler() const override { return usePostRAScheduler(); }
184 bool enableSubRegLiveness() const override { return EnableSubregLiveness; }
185
186 bool enableMachinePipeliner() const override;
187 bool useDFAforSMS() const override { return false; }
188
189 /// Returns ARM processor family.
190 /// Avoid this function! CPU specifics should be kept local to this class
191 /// and preferably modeled with SubtargetFeatures or properties in
192 /// initializeProperties().
194 return ARMProcFamily;
195 }
196
197 /// Returns true if the processor is an Apple M-series or aligned A-series
198 /// (A14 or newer).
199 bool isAppleMLike() const {
200 switch (ARMProcFamily) {
201 case AppleA14:
202 case AppleA15:
203 case AppleA16:
204 case AppleA17:
205 case AppleM4:
206 case AppleM5:
207 return true;
208 default:
209 return false;
210 }
211 }
212
213 bool isXRaySupported() const override { return true; }
214
215 /// Returns true if the function has a streaming body.
216 bool isStreaming() const { return IsStreaming; }
217
218 /// Returns true if the function has a streaming-compatible body.
220
221 /// Returns the size of memory region that if accessed by both the CPU and
222 /// the SME unit could result in a hazard. 0 = disabled.
223 unsigned getStreamingHazardSize() const {
224 return CLOpts.streaming_hazard_size.value_or(
225 !hasSMEFA64() && hasSME() && hasSVE() ? 1024 : 0);
226 }
227
228 /// Returns true if the target has NEON and the function at runtime is known
229 /// to have NEON enabled (e.g. the function is known not to be in streaming-SVE
230 /// mode, which disables NEON instructions).
231 bool isNeonAvailable() const {
232 return hasNEON() &&
233 (hasSMEFA64() || (!isStreaming() && !isStreamingCompatible()));
234 }
235
236 /// Returns true if the target has SVE and can use the full range of SVE
237 /// instructions, for example because it knows the function is known not to be
238 /// in streaming-SVE mode or when the target has FEAT_FA64 enabled.
239 bool isSVEAvailable() const {
240 return hasSVE() &&
241 (hasSMEFA64() || (!isStreaming() && !isStreamingCompatible()));
242 }
243
244 /// Returns true if the target has access to the streaming-compatible subset
245 /// of SVE instructions.
246 bool isStreamingSVEAvailable() const { return hasSME() && isStreaming(); }
247
248 /// Returns true if the target has access to either the full range of SVE
249 /// instructions, or the streaming-compatible subset of SVE instructions.
251 return hasSVE() || isStreamingSVEAvailable();
252 }
253
254 /// Returns true if the target has access to either the full range of SVE
255 /// instructions, or the streaming-compatible subset of SVE instructions
256 /// available to SME2.
258 return isSVEAvailable() || (isSVEorStreamingSVEAvailable() && hasSME2());
259 }
260
261 /// Returns true if SVE bit-permute instructions (bext/bdep/bgrp) can be
262 /// emitted.
264 return hasSVEBitPerm() &&
265 (isSVEAvailable() ||
266 (isSVEorStreamingSVEAvailable() && hasSSVE_BitPerm()));
267 }
268
270 // Don't assume any minimum vector size when PSTATE.SM may not be 0, because
271 // we don't yet support streaming-compatible codegen support that we trust
272 // is safe for functions that may be executed in streaming-SVE mode.
273 // By returning '0' here, we disable vectorization.
274 if (!isSVEAvailable() && !isNeonAvailable())
275 return 0;
277 }
278
279 bool isXRegisterReserved(size_t i) const { return ReserveXRegister[i]; }
280 bool isXRegisterReservedForRA(size_t i) const { return ReserveXRegisterForRA[i]; }
281 unsigned getNumXRegisterReserved() const {
282 BitVector AllReservedX(AArch64::GPR64commonRegClass.getNumRegs());
283 AllReservedX |= ReserveXRegister;
284 AllReservedX |= ReserveXRegisterForRA;
285 return AllReservedX.count();
286 }
287 bool isLRReservedForRA() const { return ReserveLRForRA; }
288 bool isXRegCustomCalleeSaved(size_t i) const {
289 return CustomCallSavedXRegs[i];
290 }
291 bool hasCustomCallingConv() const { return CustomCallSavedXRegs.any(); }
292
293 /// Return true if the CPU supports any kind of instruction fusion.
294 bool hasFusion() const {
295 return hasArithmeticBccFusion() || hasArithmeticCbzFusion() ||
296 hasFuseAES() || hasFuseArithmeticLogic() || hasFuseCmpCSel() ||
297 hasFuseFCmpFCSel() || hasFuseCmpCSet() || hasFuseAdrpAdd() ||
298 hasFuseLiterals() || hasFuseAppleSMECompute() || hasFuseFMinFMax();
299 }
300
301 /// Return true if the subtarget fuses this pair of move immediate
302 /// instructions.
303 bool fusesMOVImmPair(unsigned FirstOpc, unsigned FirstShift,
304 unsigned SecondOpc, unsigned SecondShift) const;
305
306 /// Return true if the subtarget fuses this pair of move immediate
307 /// instructions. The 1st instruction is a wildcard when it is nullptr, which
308 /// tells whether the 2nd one can be fused at all.
309 bool fusesMOVImmPair(const MachineInstr *FirstMI,
310 const MachineInstr &SecondMI) const;
311
314 }
315 unsigned getMaxInterleaveFactor() const { return MaxInterleaveFactor; }
316 unsigned getVectorInsertExtractBaseCost() const;
317 unsigned getCacheLineSize() const override { return CacheLineSize; }
318 unsigned getScatterOverhead() const { return ScatterOverhead; }
319 unsigned getGatherOverhead() const { return GatherOverhead; }
320 unsigned getPrefetchDistance() const override { return PrefetchDistance; }
321 unsigned getMinPrefetchStride(unsigned NumMemAccesses,
322 unsigned NumStridedMemAccesses,
323 unsigned NumPrefetches,
324 bool HasCall) const override {
325 return MinPrefetchStride;
326 }
327 unsigned getMaxPrefetchIterationsAhead() const override {
329 }
334
337 }
338
339 unsigned getMaximumJumpTableSize() const { return MaxJumpTableSize; }
340 unsigned getMinimumJumpTableEntries() const {
342 }
343
344 unsigned getFixedLoadLatency() const { return FixedLoadLatency; }
345
346 /// CPU has TBI (top byte of addresses is ignored during HW address
347 /// translation) and OS enables it.
349
350 bool isLittleEndian() const { return IsLittle; }
351
352 bool isTargetDarwin() const { return TargetTriple.isOSDarwin(); }
353 bool isTargetIOS() const { return TargetTriple.isiOS(); }
354 bool isTargetLinux() const { return TargetTriple.isOSLinux(); }
355 bool isTargetWindows() const { return TargetTriple.isOSWindows(); }
356 bool isTargetUEFI() const { return TargetTriple.isUEFI(); }
357 /// UEFI follows the Windows ARM64 ABI and produces PE/COFF images, so most
358 /// of the Windows specific ABI handling (calling convention, callee saved
359 /// registers, frame chain, stack probing and unwind info) applies to it.
361 return TargetTriple.isOSWindowsOrUEFI();
362 }
363 bool isTargetAndroid() const { return TargetTriple.isAndroid(); }
364 bool isTargetFuchsia() const { return TargetTriple.isOSFuchsia(); }
365 bool isWindowsArm64EC() const { return TargetTriple.isWindowsArm64EC(); }
366 bool isLFI() const { return TargetTriple.isLFI(); }
367
368 bool isTargetCOFF() const { return TargetTriple.isOSBinFormatCOFF(); }
369 bool isTargetELF() const { return TargetTriple.isOSBinFormatELF(); }
370 bool isTargetMachO() const { return TargetTriple.isOSBinFormatMachO(); }
371
372 bool isTargetILP32() const {
373 return TargetTriple.isArch32Bit() ||
374 TargetTriple.getEnvironment() == Triple::GNUILP32;
375 }
376
377 bool useAA() const override;
378
379 bool addrSinkUsingGEPs() const override {
380 // Keeping GEPs inbounds is important for exploiting AArch64
381 // addressing-modes in ILP32 mode.
382 return useAA() || isTargetILP32();
383 }
384
385 bool useSmallAddressing() const {
386 switch (TLInfo.getTargetMachine().getCodeModel()) {
388 // Kernel is currently allowed only for Fuchsia targets,
389 // where it is the same as Small for almost all purposes.
390 case CodeModel::Small:
391 return true;
392 default:
393 return false;
394 }
395 }
396
397 /// Returns whether the operating system makes it safer to store sensitive
398 /// values in x16 and x17 as opposed to other registers.
399 bool isX16X17Safer() const;
400
401 /// ParseSubtargetFeatures - Parses features string setting specified
402 /// subtarget options. Definition of function is auto generated by tblgen.
404
405 /// ClassifyGlobalReference - Find the target operand flags that describe
406 /// how a global value should be referenced for the current subtarget.
407 unsigned ClassifyGlobalReference(const GlobalValue *GV,
408 const TargetMachine &TM) const;
409
411 const TargetMachine &TM) const;
412
413 /// This function is design to compatible with the function def in other
414 /// targets and escape build error about the virtual function def in base
415 /// class TargetSubtargetInfo. Updeate me if AArch64 target need to use it.
416 unsigned char
418 return 0;
419 }
420
422 const SchedRegion &Region) const override;
423
424 void adjustSchedDependency(SUnit *Def, int DefOpIdx, SUnit *Use, int UseOpIdx,
425 SDep &Dep,
426 const TargetSchedModel *SchedModel) const override;
427
428 bool enableEarlyIfConversion() const override;
429
430 std::unique_ptr<PBQPRAConstraint> getCustomPBQPConstraints() const override;
431
432 bool isCallingConvWin64(CallingConv::ID CC, bool IsVarArg) const {
433 switch (CC) {
434 case CallingConv::C:
438 return isTargetWindowsOrUEFI();
440 return IsVarArg && isTargetWindowsOrUEFI();
442 return true;
443 default:
444 return false;
445 }
446 }
447
448 /// Return whether FrameLowering should always set the "extended frame
449 /// present" bit in FP, or set it based on a symbol in the runtime.
451 // Older OS versions (particularly system unwinders) are confused by the
452 // Swift extended frame, so when building code that might be run on them we
453 // must dynamically query the concurrency library to determine whether
454 // extended frames should be flagged as present.
455 const Triple &TT = getTargetTriple();
456
457 unsigned Major = TT.getOSVersion().getMajor();
458 switch(TT.getOS()) {
459 default:
460 return false;
461 case Triple::IOS:
462 case Triple::TvOS:
463 return Major < 15;
464 case Triple::WatchOS:
465 return Major < 8;
466 case Triple::MacOSX:
467 case Triple::Darwin:
468 return Major < 12;
469 }
470 }
471
472 void mirFileLoaded(MachineFunction &MF) const override;
473
474 // Return the known range for the bit length of SVE data registers. A value
475 // of 0 means nothing is known about that particular limit beyond what's
476 // implied by the architecture.
477 unsigned getMaxSVEVectorSizeInBits() const {
479 "Tried to get SVE vector length without SVE support!");
481 }
482
483 unsigned getMinSVEVectorSizeInBits() const {
485 "Tried to get SVE vector length without SVE support!");
487 }
488
489 // Return the known bit length of SVE data registers. A value of 0 means the
490 // length is unknown beyond what's implied by the architecture.
491 unsigned getSVEVectorSizeInBits() const {
493 "Tried to get SVE vector length without SVE support!");
496 return 0;
497 }
498
499 // Return the known bit length of SVE predicate registers. A value of 0 means
500 // the length is unknown beyond what's implied by the architecture.
501 unsigned getSVEPredicateSizeInBits() const {
502 return getSVEVectorSizeInBits() / 8;
503 }
504
507 return false;
508
509 // Prefer NEON unless larger SVE registers are available.
510 return !isNeonAvailable() || getMinSVEVectorSizeInBits() >= 256;
511 }
512
515 return false;
518 }
519
520 unsigned getVScaleForTuning() const { return VScaleForTuning; }
521
525
526 /// Returns true to use the addvl/inc/dec instructions, as opposed to separate
527 /// add + cnt instructions.
528 bool useScalarIncVL() const;
529
533
534 /// Choose a method of checking LR before performing a tail call.
537
538 /// Compute the integer discriminator for a given BlockAddress constant, if
539 /// blockaddress signing is enabled, or std::nullopt otherwise.
540 /// Blockaddress signing is controlled by the function attribute
541 /// "ptrauth-indirect-gotos" on the parent function.
542 /// Note that this assumes the discriminator is independent of the indirect
543 /// goto branch site itself, i.e., it's the same for all BlockAddresses in
544 /// a function.
545 std::optional<uint16_t>
547
548 bool enableAggressiveInterleaving() const { return AggressiveInterleaving; }
549};
550} // End llvm namespace
551
552#endif
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
This file describes how to lower LLVM calls to machine code calls.
This file describes how to lower LLVM inline asm to machine code INLINEASM.
Interface for Targets to specify which operations they can successfully select and how the others sho...
RISCVCC::CondCode CC
const AArch64RegisterInfo & getRegisterInfo() const
getRegisterInfo - TargetInstrInfo is a superset of MRegister info.
const AArch64SelectionDAGInfo * getSelectionDAGInfo() const override
const CallLowering * getCallLowering() const override
const AArch64RegisterInfo * getRegisterInfo() const override
bool enableSRLTSubregToRegMitigation() const
bool isNeonAvailable() const
Returns true if the target has NEON and the function at runtime is known to have NEON enabled (e....
TailFoldingOpts DefaultSVETFOpts
unsigned getMinPrefetchStride(unsigned NumMemAccesses, unsigned NumStridedMemAccesses, unsigned NumPrefetches, bool HasCall) const override
bool addrSinkUsingGEPs() const override
std::unique_ptr< InstructionSelector > InstSelector
bool enableAggressiveInterleaving() const
ARMProcFamilyEnum ARMProcFamily
ARMProcFamily - ARM processor family: Cortex-A53, Cortex-A57, and others.
unsigned getMinimumJumpTableEntries() const
std::unique_ptr< RegisterBankInfo > RegBankInfo
bool useSVEForFixedLengthVectors(EVT VT) const
const AArch64InstrInfo * getInstrInfo() const override
bool hasFusion() const
Return true if the CPU supports any kind of instruction fusion.
AArch64SelectionDAGInfo TSInfo
unsigned getMaximumJumpTableSize() const
AArch64FrameLowering FrameLowering
bool enableEarlyIfConversion() const override
const InlineAsmLowering * getInlineAsmLowering() const override
const AArch64Options & getCLOpts() const
unsigned getCacheLineSize() const override
unsigned getFixedLoadLatency() const
unsigned getVectorInsertExtractBaseCost() const
bool enableMachinePipeliner() const override
ARMProcFamilyEnum getProcFamily() const
Returns ARM processor family.
std::unique_ptr< CallLowering > CallLoweringInfo
GlobalISel related APIs.
std::optional< uint16_t > getPtrAuthBlockAddressDiscriminatorIfEnabled(const Function &ParentFn) const
Compute the integer discriminator for a given BlockAddress constant, if blockaddress signing is enabl...
unsigned getGatherOverhead() const
bool isXRegisterReservedForRA(size_t i) const
unsigned getNumXRegisterReserved() const
unsigned classifyGlobalFunctionReference(const GlobalValue *GV, const TargetMachine &TM) const
bool useAA() const override
bool fusesMOVImmPair(unsigned FirstOpc, unsigned FirstShift, unsigned SecondOpc, unsigned SecondShift) const
Return true if the subtarget fuses this pair of move immediate instructions.
bool isStreamingSVEAvailable() const
Returns true if the target has access to the streaming-compatible subset of SVE instructions.
const AArch64TargetLowering * getTargetLowering() const override
Align getPrefLoopAlignment() const
Align getPrefFunctionAlignment() const
unsigned getMaxBytesForLoopAlignment() const
bool isNonStreamingSVEorSME2Available() const
Returns true if the target has access to either the full range of SVE instructions,...
bool supportsAddressTopByteIgnored() const
CPU has TBI (top byte of addresses is ignored during HW address translation) and OS enables it.
unsigned getMaxInterleaveFactor() const
void overrideSchedPolicy(MachineSchedPolicy &Policy, const SchedRegion &Region) const override
unsigned char classifyGlobalFunctionReference(const GlobalValue *GV) const override
This function is design to compatible with the function def in other targets and escape build error a...
const Triple & getTargetTriple() const
unsigned getStreamingHazardSize() const
Returns the size of memory region that if accessed by both the CPU and the SME unit could result in a...
bool isStreamingCompatible() const
Returns true if the function has a streaming-compatible body.
bool isSVEBitPermAvailable() const
Returns true if SVE bit-permute instructions (bext/bdep/bgrp) can be emitted.
bool isXRegCustomCalleeSaved(size_t i) const
void adjustSchedDependency(SUnit *Def, int DefOpIdx, SUnit *Use, int UseOpIdx, SDep &Dep, const TargetSchedModel *SchedModel) const override
void mirFileLoaded(MachineFunction &MF) const override
Triple TargetTriple
TargetTriple - What processor and OS we're targeting.
InstructionSelector * getInstructionSelector() const override
bool isSVEorStreamingSVEAvailable() const
Returns true if the target has access to either the full range of SVE instructions,...
bool enableSubRegLiveness() const override
TailFoldingOpts getSVETailFoldingDefaultOpts() const
bool useSVEForFixedLengthVectors() const
unsigned ClassifyGlobalReference(const GlobalValue *GV, const TargetMachine &TM) const
ClassifyGlobalReference - Find the target operand flags that describe how a global value should be re...
bool isTargetWindowsOrUEFI() const
UEFI follows the Windows ARM64 ABI and produces PE/COFF images, so most of the Windows specific ABI h...
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
ParseSubtargetFeatures - Parses features string setting specified subtarget options.
unsigned getSVEPredicateSizeInBits() const
unsigned getMinVectorRegisterBitWidth() const
bool isStreaming() const
Returns true if the function has a streaming body.
bool isX16X17Safer() const
Returns whether the operating system makes it safer to store sensitive values in x16 and x17 as oppos...
unsigned getSVEVectorSizeInBits() const
bool isXRegisterReserved(size_t i) const
unsigned getMaxPrefetchIterationsAhead() const override
bool useScalarIncVL() const
Returns true to use the addvl/inc/dec instructions, as opposed to separate add + cnt instructions.
bool useDFAforSMS() const override
const LegalizerInfo * getLegalizerInfo() const override
bool enableMachineScheduler() const override
unsigned getScatterOverhead() const
bool enablePostRAScheduler() const override
AArch64Subtarget(const Triple &TT, StringRef CPU, StringRef TuneCPU, StringRef FS, const TargetMachine &TM, bool LittleEndian, unsigned MinSVEVectorSizeInBitsOverride=0, unsigned MaxSVEVectorSizeInBitsOverride=0, bool IsStreaming=false, bool IsStreamingCompatible=false, bool HasMinSize=false, bool EnableSRLTSubregToRegMitigation=false)
This constructor initializes the data members to match that of the specified triple.
std::unique_ptr< PBQPRAConstraint > getCustomPBQPConstraints() const override
unsigned getEpilogueVectorizationMinVF() const
unsigned getMaxSVEVectorSizeInBits() const
bool isCallingConvWin64(CallingConv::ID CC, bool IsVarArg) const
unsigned getVScaleForTuning() const
unsigned getMinSVEVectorSizeInBits() const
AArch64PAuth::AuthCheckMethod getAuthenticatedLRCheckMethod(const MachineFunction &MF) const
Choose a method of checking LR before performing a tail call.
AArch64InstrInfo InstrInfo
AArch64TargetLowering TLInfo
const RegisterBankInfo * getRegBankInfo() const override
std::unique_ptr< LegalizerInfo > Legalizer
std::unique_ptr< InlineAsmLowering > InlineAsmLoweringInfo
bool isAppleMLike() const
Returns true if the processor is an Apple M-series or aligned A-series (A14 or newer).
bool isXRaySupported() const override
bool isSVEAvailable() const
Returns true if the target has SVE and can use the full range of SVE instructions,...
bool hasCustomCallingConv() const
const AArch64FrameLowering * getFrameLowering() const override
bool swiftAsyncContextIsDynamicallySet() const
Return whether FrameLowering should always set the "extended framepresent" bit in FP,...
unsigned getPrefetchDistance() const override
size_type count() const
Returns the number of bits which are set.
Definition BitVector.h:181
Representation of each machine instruction.
Holds all the information related to register banks.
Scheduling dependency.
Definition ScheduleDAG.h:54
Scheduling unit. This is a node in the scheduling DAG.
Represent a constant reference to a string, i.e.
Definition StringRef.h:56
Primary interface to the complete machine description for the target machine.
Provide an instruction scheduling machine model to CodeGen passes.
Triple - Helper class for working with autoconf configuration names.
Definition Triple.h:48
A Use represents the edge between a Value definition and its users.
Definition Use.h:35
AuthCheckMethod
Variants of check performed on an authenticated pointer.
static constexpr unsigned SVEBitsPerBlock
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
Definition CallingConv.h:24
@ Swift
Calling convention for Swift.
Definition CallingConv.h:69
@ Fast
Attempts to make calls as fast as possible (e.g.
Definition CallingConv.h:41
@ PreserveNone
Used for runtime calls that preserves none general registers.
Definition CallingConv.h:90
@ Win64
The C convention as implemented on Windows/x86-64 and AArch64.
@ SwiftTail
This follows the Swift calling convention in how arguments are passed but guarantees tail calls will ...
Definition CallingConv.h:87
@ C
The default llvm calling convention, compatible with C.
Definition CallingConv.h:34
This is an optimization pass for GlobalISel generic memory operations.
TailFoldingOpts
An enum to describe what types of loops we should attempt to tail-fold: Disabled: None Reductions: Lo...
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition Alignment.h:39
Extended Value Type.
Definition ValueTypes.h:35
uint64_t getFixedSizeInBits() const
Return the size of the specified fixed width value type in bits.
Definition ValueTypes.h:404
bool isFixedLengthVector() const
Definition ValueTypes.h:199
Define a generic scheduling policy for targets that don't provide their own MachineSchedStrategy.
A region of an MBB for scheduling.