LLVM 24.0.0git
ARMSubtarget.h
Go to the documentation of this file.
1//===-- ARMSubtarget.h - Define Subtarget for the ARM ----------*- 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 ARM specific subclass of TargetSubtargetInfo.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_LIB_TARGET_ARM_ARMSUBTARGET_H
14#define LLVM_LIB_TARGET_ARM_ARMSUBTARGET_H
15
16#include "ARMBaseInstrInfo.h"
17#include "ARMBaseRegisterInfo.h"
19#include "ARMFrameLowering.h"
20#include "ARMISelLowering.h"
22#include "ARMSelectionDAGInfo.h"
31#include "llvm/MC/MCSchedule.h"
36#include <bitset>
37#include <memory>
38#include <string>
39
40#define GET_SUBTARGETINFO_HEADER
41#include "ARMGenSubtargetInfo.inc"
42
43namespace llvm {
51
52// For controlling conversion of memcpy into Tail Predicated loop.
54} // namespace llvm
55
56#define OPTIONS_STRUCT_DECL
57#include "ARMOptions.inc"
58
59namespace llvm {
60
61class ARMBaseTargetMachine;
62class GlobalValue;
63class StringRef;
64
66protected:
69#define ARM_PROCESSOR_FAMILY(ENUM) ENUM,
70#include "ARMGenTargetDef.inc"
71#undef ARM_PROCESSOR_FAMILY
72 };
81#define ARM_ARCHITECTURE(ENUM) ENUM,
82#include "ARMGenTargetDef.inc"
83#undef ARM_ARCHITECTURE
84 };
85
86public:
87 /// What kind of timing do load multiple/store multiple instructions have.
89 /// Can load/store 2 registers/cycle.
91 /// Can load/store 2 registers/cycle, but needs an extra cycle if the access
92 /// is not 64-bit aligned.
94 /// Can load/store 1 register/cycle.
96 /// Can load/store 1 register/cycle, but needs an extra cycle for address
97 /// computation and potentially also for register writeback.
99 };
100
101 /// How the push and pop instructions of callee saved general-purpose
102 /// registers should be split.
104 /// All GPRs can be pushed in a single instruction.
105 /// push {r0-r12, lr}
106 /// vpush {d8-d15}
108
109 /// R7 and LR must be adjacent, because R7 is the frame pointer, and must
110 /// point to a frame record consisting of the previous frame pointer and the
111 /// return address.
112 /// push {r0-r7, lr}
113 /// push {r8-r12}
114 /// vpush {d8-d15}
115 /// Note that Thumb1 changes this layout when the frame pointer is R11,
116 /// using a longer sequence of instructions because R11 can't be used by a
117 /// Thumb1 push instruction. This doesn't currently have a separate enum
118 /// value, and is handled entriely within Thumb1FrameLowering::emitPrologue.
120
121 /// When the stack frame size is not known (because of variable-sized
122 /// objects or realignment), Windows SEH requires the callee-saved registers
123 /// to be stored in three regions, with R11 and LR below the floating-point
124 /// registers.
125 /// push {r0-r10, r12}
126 /// vpush {d8-d15}
127 /// push {r11, lr}
129
130 /// When generating AAPCS-compilant frame chains, R11 is the frame pointer,
131 /// and must be pushed adjacent to the return address (LR). Normally this
132 /// isn't a problem, because the only register between them is r12, which is
133 /// the intra-procedure-call scratch register, so doesn't need to be saved.
134 /// However, when PACBTI is in use, r12 contains the authentication code, so
135 /// does need to be saved. This means that we need a separate push for R11
136 /// and LR.
137 /// push {r0-r10, r12}
138 /// push {r11, lr}
139 /// vpush {d8-d15}
141 };
142
143protected:
144 const ARMOptions &CLOpts;
145
146// Bool members corresponding to the SubtargetFeatures defined in tablegen
147#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
148 bool ATTRIBUTE = DEFAULT;
149#include "ARMGenSubtargetInfo.inc"
150
151 /// ARMProcFamily - ARM processor family: Cortex-A8, Cortex-A9, and others.
153
154 /// ARMProcClass - ARM processor class: None, AClass, RClass or MClass.
156
157 /// ARMArch - ARM architecture
159
160 /// SupportsTailCall - True if the OS supports tail call. The dynamic linker
161 /// must be able to synthesize call stubs for interworking between ARM and
162 /// Thumb.
163 bool SupportsTailCall = false;
164
165 /// stackAlignment - The minimum alignment known to hold of the stack frame on
166 /// entry to the function and which must be maintained by every function.
168
169 /// CPUString - String name of used CPU.
170 std::string CPUString;
171
173
174 /// Clearance before partial register updates (in number of instructions)
176
177 /// What kind of timing do load multiple/store multiple have (double issue,
178 /// single issue etc).
180
181 /// The adjustment that we need to apply to get the operand latency from the
182 /// operand cycle returned by the itinerary data for pre-ISel operands.
184
185 /// What alignment is preferred for loop bodies and functions, in log2(bytes).
187
188 /// The cost factor for MVE instructions, representing the multiple beats an
189 // instruction can take. The default is 2, (set in initSubtargetFeatures so
190 // that we can use subtarget features less than 2).
192
193 /// OptMinSize - True if we're optimising for minimum code size, equal to
194 /// the function attribute.
195 bool OptMinSize = false;
196
197 /// IsLittle - The target is Little Endian
199
200 /// DM - Denormal mode
201 /// NEON and VFP RunFast mode are not IEEE 754 compliant,
202 /// use this field to determine whether to generate NEON/VFP
203 /// instructions in related function.
205
206 /// TargetTriple - What processor and OS we're targeting.
208
209 /// SchedModel - Processor specific instruction costs.
211
212 /// Selected instruction itineraries (one entry per itinerary class.)
214
215 /// Options passed via command line that could influence the target
217
219
220 /// The floating-point ABI in effect for this subtarget.
222
223 /// The ABI in effect.
225
226public:
227 /// This constructor initializes the data members to match that
228 /// of the specified triple.
229 ///
230 ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
231 const ARMBaseTargetMachine &TM, bool IsLittle,
233 bool MinSize = false, DenormalMode DM = DenormalMode::getIEEE());
234
235 const ARMOptions &getCLOpts() const { return CLOpts; }
236
237 /// getMaxInlineSizeThreshold - Returns the maximum memset / memcpy size
238 /// that still makes it profitable to inline the call.
239 unsigned getMaxInlineSizeThreshold() const {
240 return 64;
241 }
242
243 /// getMaxMemcpyTPInlineSizeThreshold - Returns the maximum size
244 /// that still makes it profitable to inline a llvm.memcpy as a Tail
245 /// Predicated loop.
246 /// This threshold should only be used for constant size inputs.
247 unsigned getMaxMemcpyTPInlineSizeThreshold() const { return 128; }
248
249 /// ParseSubtargetFeatures - Parses features string setting specified
250 /// subtarget options. Definition of function is auto generated by tblgen.
252
253 /// initializeSubtargetDependencies - Initializes using a CPU and feature string
254 /// so that we can use initializer lists for subtarget initialization.
256
257 const ARMSelectionDAGInfo *getSelectionDAGInfo() const override {
258 return &TSInfo;
259 }
260
261 const ARMBaseInstrInfo *getInstrInfo() const override {
262 return InstrInfo.get();
263 }
264
265 const ARMTargetLowering *getTargetLowering() const override {
266 return &TLInfo;
267 }
268
269 const ARMFrameLowering *getFrameLowering() const override {
270 return FrameLowering.get();
271 }
272
273 const ARMBaseRegisterInfo *getRegisterInfo() const override {
274 return &InstrInfo->getRegisterInfo();
275 }
276
277 const CallLowering *getCallLowering() const override;
279 const LegalizerInfo *getLegalizerInfo() const override;
280 const RegisterBankInfo *getRegBankInfo() const override;
281 void initLibcallLoweringInfo(LibcallLoweringInfo &Info) const override;
282
283private:
284 ARMSelectionDAGInfo TSInfo;
285 // Either Thumb1FrameLowering or ARMFrameLowering.
286 std::unique_ptr<ARMFrameLowering> FrameLowering;
287 // Either Thumb1InstrInfo or Thumb2InstrInfo.
288 std::unique_ptr<ARMBaseInstrInfo> InstrInfo;
289 ARMTargetLowering TLInfo;
290
291 /// GlobalISel related APIs.
292 std::unique_ptr<CallLowering> CallLoweringInfo;
293 std::unique_ptr<InstructionSelector> InstSelector;
294 std::unique_ptr<LegalizerInfo> Legalizer;
295 std::unique_ptr<RegisterBankInfo> RegBankInfo;
296
297 void initSubtargetFeatures(StringRef CPU, StringRef FS);
298 ARMFrameLowering *initializeFrameLowering(StringRef CPU, StringRef FS);
299
300 std::bitset<8> CoprocCDE = {};
301public:
302// Getters for SubtargetFeatures defined in tablegen
303#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
304 bool GETTER() const { return ATTRIBUTE; }
305#include "ARMGenSubtargetInfo.inc"
306
307 /// @{
308 /// These functions are obsolete, please consider adding subtarget features
309 /// or properties instead of calling them.
310 bool isCortexA5() const { return ARMProcFamily == CortexA5; }
311 bool isCortexA7() const { return ARMProcFamily == CortexA7; }
312 bool isCortexA8() const { return ARMProcFamily == CortexA8; }
313 bool isCortexA9() const { return ARMProcFamily == CortexA9; }
314 bool isCortexA15() const { return ARMProcFamily == CortexA15; }
315 bool isSwift() const { return ARMProcFamily == Swift; }
316 bool isCortexM3() const { return ARMProcFamily == CortexM3; }
317 bool isCortexM55() const { return ARMProcFamily == CortexM55; }
318 bool isCortexM7() const { return ARMProcFamily == CortexM7; }
319 bool isCortexM85() const { return ARMProcFamily == CortexM85; }
320 bool isLikeA9() const { return isCortexA9() || isCortexA15() || isKrait(); }
321 bool isCortexR5() const { return ARMProcFamily == CortexR5; }
322 bool isKrait() const { return ARMProcFamily == Krait; }
323 /// @}
324
325 bool hasARMOps() const { return !NoARM; }
326
328 return hasNEON() && hasNEONForFP();
329 }
330
331 bool hasVFP2Base() const { return hasVFPv2SP(); }
332 bool hasVFP3Base() const { return hasVFPv3D16SP(); }
333 bool hasVFP4Base() const { return hasVFPv4D16SP(); }
334 bool hasFPARMv8Base() const { return hasFPARMv8D16SP(); }
335
336 bool hasAnyDataBarrier() const {
337 return HasDataBarrier || (hasV6Ops() && !isThumb());
338 }
339
340 bool useMulOps() const { return CLOpts.use_mulops; }
341 bool useFPVMLx() const { return !SlowFPVMLx; }
342 bool useFPVFMx() const {
343 return !isTargetDarwin() && hasVFP4Base() && !SlowFPVFMx;
344 }
345 bool useFPVFMx16() const { return useFPVFMx() && hasFullFP16(); }
346 bool useFPVFMx64() const { return useFPVFMx() && hasFP64(); }
347 bool hasBaseDSP() const {
348 if (isThumb())
349 return hasThumb2() && hasDSP();
350 else
351 return hasV5TEOps();
352 }
353
354 /// Return true if the CPU supports any kind of instruction fusion.
355 bool hasFusion() const { return hasFuseAES() || hasFuseLiterals(); }
356
357 const Triple &getTargetTriple() const { return TargetTriple; }
358
359 /// @{
360 /// These properties are per-module, please use the TargetMachine
361 /// TargetTriple.
362 bool isTargetDarwin() const { return TargetTriple.isOSDarwin(); }
363 bool isTargetIOS() const { return TargetTriple.isiOS(); }
364 bool isTargetWatchOS() const { return TargetTriple.isWatchOS(); }
365 bool isTargetWatchABI() const { return TargetTriple.isWatchABI(); }
366 bool isTargetDriverKit() const { return TargetTriple.isDriverKit(); }
367 bool isTargetFuchsia() const { return TargetTriple.isOSFuchsia(); }
368 bool isTargetLinux() const { return TargetTriple.isOSLinux(); }
369 bool isTargetNetBSD() const { return TargetTriple.isOSNetBSD(); }
370 bool isTargetWindows() const { return TargetTriple.isOSWindows(); }
371
372 bool isTargetCOFF() const { return TargetTriple.isOSBinFormatCOFF(); }
373 bool isTargetELF() const { return TargetTriple.isOSBinFormatELF(); }
374 bool isTargetMachO() const { return TargetTriple.isOSBinFormatMachO(); }
375
376 bool isTargetAEABI() const { return TargetTriple.isTargetAEABI(); }
377
378 bool isTargetGNUAEABI() const { return TargetTriple.isTargetGNUAEABI(); }
379
380 bool isTargetMuslAEABI() const { return TargetTriple.isTargetMuslAEABI(); }
381
382 // ARM Targets that support EHABI exception handling standard
383 // Darwin uses SjLj. Other targets might need more checks.
385 return TargetTriple.isTargetEHABICompatible();
386 }
387 /// @}
388
389 /// Returns the floating-point ABI in effect for this subtarget.
391
392 /// Returns true if the subtarget uses the hard floating-point ABI.
394
395 bool isAPCS_ABI() const { return ABI == ARM::ARM_ABI_APCS; }
396 bool isAAPCS_ABI() const {
398 }
399 bool isAAPCS16_ABI() const { return ABI == ARM::ARM_ABI_AAPCS16; }
400
401 bool isReadTPSoft() const {
402 return !(isReadTPTPIDRURW() || isReadTPTPIDRURO() || isReadTPTPIDRPRW());
403 }
404
405 bool isTargetAndroid() const { return TargetTriple.isAndroid(); }
406
407 bool isXRaySupported() const override;
408
409 bool isROPI() const;
410 bool isRWPI() const;
411
412 bool useMachineScheduler() const { return UseMISched; }
413 bool useMachinePipeliner() const { return UseMIPipeliner; }
414 bool hasMinSize() const { return OptMinSize; }
415 bool isThumb1Only() const { return isThumb() && !hasThumb2(); }
416 bool isThumb2() const { return isThumb() && hasThumb2(); }
417 bool isMClass() const { return ARMProcClass == MClass; }
418 bool isRClass() const { return ARMProcClass == RClass; }
419 bool isAClass() const { return ARMProcClass == AClass; }
420
421 bool isR9Reserved() const {
422 return isTargetMachO() ? (ReserveR9 || !HasV6Ops) : ReserveR9;
423 }
424
426 if (isTargetDarwin() ||
427 (!isTargetWindows() && isThumb() && !createAAPCSFrameChain()))
428 return ARM::R7;
429 return ARM::R11;
430 }
431
434
435 bool useStride4VFPs() const;
436
437 bool useMovt() const;
438
439 bool supportsTailCall() const { return SupportsTailCall; }
440
441 bool allowsUnalignedMem() const { return !StrictAlign; }
442
443 bool restrictIT() const { return CLOpts.restrict_it; }
444
445 const std::string & getCPUString() const { return CPUString; }
446
447 bool isLittle() const { return IsLittle; }
448
449 /// Returns true if machine scheduler should be enabled.
450 bool enableMachineScheduler() const override;
451
452 /// Returns true if machine pipeliner should be enabled.
453 bool enableMachinePipeliner() const override;
454 bool useDFAforSMS() const override;
455
456 /// True for some subtargets at > -O0.
457 bool enablePostRAScheduler() const override;
458
459 /// True for some subtargets at > -O0.
460 bool enablePostRAMachineScheduler() const override;
461
462 /// Check whether this subtarget wants to use subregister liveness.
463 bool enableSubRegLiveness() const override;
464
465 /// Enable use of alias analysis during code generation (during MI
466 /// scheduling, DAGCombine, etc.).
467 bool useAA() const override { return true; }
468
469 /// getInstrItins - Return the instruction itineraries based on subtarget
470 /// selection.
472 return &InstrItins;
473 }
474
475 /// getStackAlignment - Returns the minimum alignment known to hold of the
476 /// stack frame on entry to the function and which must be maintained by every
477 /// function for this subtarget.
479
480 // Returns the required alignment for LDRD/STRD instructions
482 return Align(hasV7Ops() || allowsUnalignedMem() ? 4 : 8);
483 }
484
485 unsigned getMaxInterleaveFactor() const { return MaxInterleaveFactor; }
486
488
492
496
497 /// True if the GV will be accessed via an indirect symbol.
498 bool isGVIndirectSymbol(const GlobalValue *GV) const;
499
500 /// Returns the constant pool modifier needed to access the GV.
501 bool isGVInGOT(const GlobalValue *GV) const;
502
503 /// True if fast-isel is used.
504 bool useFastISel() const;
505
506 /// Returns the correct return opcode for the current feature set.
507 /// Use BX if available to allow mixing thumb/arm code, but fall back
508 /// to plain mov pc,lr on ARMv4.
509 unsigned getReturnOpcode() const {
510 if (isThumb())
511 return ARM::tBX_RET;
512 if (hasV4TOps())
513 return ARM::BX_RET;
514 return ARM::MOVPCLR;
515 }
516
517 /// Allow movt+movw for PIC global address calculation.
518 /// ELF does not have GOT relocations for movt+movw.
519 /// ROPI does not use GOT.
521 return isROPI() || !isTargetELF();
522 }
523
526 }
527
528 unsigned
530 if (CostKind == TargetTransformInfo::TCK_CodeSize)
531 return 1;
532 return MVEVectorCostFactor;
533 }
534
536 BitVector &Mask) const override;
537 unsigned getGPRAllocationOrder(const MachineFunction &MF) const;
538};
539
540} // end namespace llvm
541
542#endif // LLVM_LIB_TARGET_ARM_ARMSUBTARGET_H
static bool isThumb(const MCSubtargetInfo &STI)
This file describes how to lower LLVM calls to machine code calls.
DXIL Legalizer
Interface for Targets to specify which operations they can successfully select and how the others sho...
This pass exposes codegen information to IR-level passes.
bool useFastISel() const
True if fast-isel is used.
bool isTargetMachO() const
bool hasFusion() const
Return true if the CPU supports any kind of instruction fusion.
bool isCortexA7() const
bool IsLittle
IsLittle - The target is Little Endian.
FloatABI::ABIType FloatABIType
The floating-point ABI in effect for this subtarget.
bool isSwift() const
bool isTargetAEABI() const
bool enablePostRAScheduler() const override
True for some subtargets at > -O0.
ARMLdStMultipleTiming LdStMultipleTiming
What kind of timing do load multiple/store multiple have (double issue, single issue etc).
bool hasARMOps() const
bool supportsTailCall() const
ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS, const ARMBaseTargetMachine &TM, bool IsLittle, FloatABI::ABIType FloatABI, ARM::ARMABI ABI, bool MinSize=false, DenormalMode DM=DenormalMode::getIEEE())
This constructor initializes the data members to match that of the specified triple.
const Triple & getTargetTriple() const
bool hasVFP4Base() const
unsigned getGPRAllocationOrder(const MachineFunction &MF) const
const RegisterBankInfo * getRegBankInfo() const override
unsigned MaxInterleaveFactor
const ARMBaseTargetMachine & TM
FloatABI::ABIType getFloatABI() const
Returns the floating-point ABI in effect for this subtarget.
bool isRClass() const
ARMLdStMultipleTiming getLdStMultipleTiming() const
const ARMBaseInstrInfo * getInstrInfo() const override
bool useFPVMLx() const
bool isCortexM85() const
bool isThumb1Only() const
ARMProcFamilyEnum ARMProcFamily
ARMProcFamily - ARM processor family: Cortex-A8, Cortex-A9, and others.
bool useFPVFMx() const
ARMArchEnum ARMArch
ARMArch - ARM architecture.
void getCSRAllocationOrderMask(const MachineFunction &MF, BitVector &Mask) const override
bool isCortexM7() const
bool hasFPARMv8Base() const
bool isAClass() const
bool isThumb2() const
bool useDFAforSMS() const override
bool isReadTPSoft() const
ARMProcClassEnum ARMProcClass
ARMProcClass - ARM processor class: None, AClass, RClass or MClass.
MCPhysReg getFramePointerReg() const
DenormalMode DM
DM - Denormal mode NEON and VFP RunFast mode are not IEEE 754 compliant, use this field to determine ...
bool isTargetWindows() const
bool isTargetEHABICompatible() const
bool isCortexR5() const
bool enableSubRegLiveness() const override
Check whether this subtarget wants to use subregister liveness.
bool isGVIndirectSymbol(const GlobalValue *GV) const
True if the GV will be accessed via an indirect symbol.
unsigned MVEVectorCostFactor
The cost factor for MVE instructions, representing the multiple beats an.
bool hasBaseDSP() const
const ARMTargetLowering * getTargetLowering() const override
MCSchedModel SchedModel
SchedModel - Processor specific instruction costs.
std::string CPUString
CPUString - String name of used CPU.
unsigned PreferBranchLogAlignment
What alignment is preferred for loop bodies and functions, in log2(bytes).
const ARMOptions & CLOpts
bool isAPCS_ABI() const
void initLibcallLoweringInfo(LibcallLoweringInfo &Info) const override
Triple TargetTriple
TargetTriple - What processor and OS we're targeting.
bool enableMachineScheduler() const override
Returns true if machine scheduler should be enabled.
bool isCortexM55() const
bool isLikeA9() const
bool isTargetDarwin() const
const ARMBaseRegisterInfo * getRegisterInfo() const override
InstrItineraryData InstrItins
Selected instruction itineraries (one entry per itinerary class.)
bool isAAPCS_ABI() const
bool useStride4VFPs() const
bool OptMinSize
OptMinSize - True if we're optimising for minimum code size, equal to the function attribute.
unsigned getReturnOpcode() const
Returns the correct return opcode for the current feature set.
Align getStackAlignment() const
getStackAlignment - Returns the minimum alignment known to hold of the stack frame on entry to the fu...
bool isKrait() const
bool isCortexA5() const
bool hasVFP2Base() const
bool useAA() const override
Enable use of alias analysis during code generation (during MI scheduling, DAGCombine,...
bool isTargetAndroid() const
Align stackAlignment
stackAlignment - The minimum alignment known to hold of the stack frame on entry to the function and ...
unsigned getMaxMemcpyTPInlineSizeThreshold() const
getMaxMemcpyTPInlineSizeThreshold - Returns the maximum size that still makes it profitable to inline...
unsigned PartialUpdateClearance
Clearance before partial register updates (in number of instructions)
bool enableMachinePipeliner() const override
Returns true if machine pipeliner should be enabled.
bool enablePostRAMachineScheduler() const override
True for some subtargets at > -O0.
bool isTargetCOFF() const
unsigned getMaxInlineSizeThreshold() const
getMaxInlineSizeThreshold - Returns the maximum memset / memcpy size that still makes it profitable t...
bool isTargetGNUAEABI() const
const ARMSelectionDAGInfo * getSelectionDAGInfo() const override
const std::string & getCPUString() const
InstructionSelector * getInstructionSelector() const override
unsigned getMaxInterleaveFactor() const
bool hasVFP3Base() const
bool isR9Reserved() const
bool useFPVFMx64() const
unsigned getPartialUpdateClearance() const
bool isTargetNetBSD() const
bool isTargetWatchOS() const
bool isXRaySupported() const override
unsigned getPreferBranchLogAlignment() const
const CallLowering * getCallLowering() const override
const ARMOptions & getCLOpts() const
enum PushPopSplitVariation getPushPopSplitVariation(const MachineFunction &MF) const
bool hasMinSize() const
ARMSubtarget & initializeSubtargetDependencies(StringRef CPU, StringRef FS)
initializeSubtargetDependencies - Initializes using a CPU and feature string so that we can use initi...
PushPopSplitVariation
How the push and pop instructions of callee saved general-purpose registers should be split.
@ SplitR11WindowsSEH
When the stack frame size is not known (because of variable-sized objects or realignment),...
@ SplitR7
R7 and LR must be adjacent, because R7 is the frame pointer, and must point to a frame record consist...
@ SplitR11AAPCSSignRA
When generating AAPCS-compilant frame chains, R11 is the frame pointer, and must be pushed adjacent t...
@ NoSplit
All GPRs can be pushed in a single instruction.
bool isTargetIOS() const
bool isGVInGOT(const GlobalValue *GV) const
Returns the constant pool modifier needed to access the GV.
bool useNEONForSinglePrecisionFP() const
const InstrItineraryData * getInstrItineraryData() const override
getInstrItins - Return the instruction itineraries based on subtarget selection.
bool isCortexM3() const
bool isTargetWatchABI() const
const ARM::ARMABI ABI
The ABI in effect.
bool allowPositionIndependentMovt() const
Allow movt+movw for PIC global address calculation.
bool isCortexA8() const
const TargetOptions & Options
Options passed via command line that could influence the target.
ARMLdStMultipleTiming
What kind of timing do load multiple/store multiple instructions have.
@ DoubleIssueCheckUnalignedAccess
Can load/store 2 registers/cycle, but needs an extra cycle if the access is not 64-bit aligned.
@ SingleIssue
Can load/store 1 register/cycle.
@ DoubleIssue
Can load/store 2 registers/cycle.
@ SingleIssuePlusExtras
Can load/store 1 register/cycle, but needs an extra cycle for address computation and potentially als...
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
ParseSubtargetFeatures - Parses features string setting specified subtarget options.
bool hasAnyDataBarrier() const
bool useMachinePipeliner() const
bool isTargetHardFloat() const
Returns true if the subtarget uses the hard floating-point ABI.
bool isTargetDriverKit() const
int getPreISelOperandLatencyAdjustment() const
bool useMachineScheduler() const
bool isCortexA15() const
bool isLittle() const
bool allowsUnalignedMem() const
bool isTargetMuslAEABI() const
const LegalizerInfo * getLegalizerInfo() const override
bool isTargetLinux() const
bool isTargetFuchsia() const
bool isCortexA9() const
bool useFPVFMx16() const
bool isMClass() const
bool SupportsTailCall
SupportsTailCall - True if the OS supports tail call.
bool isAAPCS16_ABI() const
int PreISelOperandLatencyAdjustment
The adjustment that we need to apply to get the operand latency from the operand cycle returned by th...
bool useMulOps() const
bool isTargetELF() const
bool restrictIT() const
unsigned getMVEVectorCostFactor(TargetTransformInfo::TargetCostKind CostKind) const
const ARMFrameLowering * getFrameLowering() const override
Align getDualLoadStoreAlignment() const
Itinerary data supplied by a subtarget to be used by a target.
Tracks which library functions to use for a particular subtarget or function.
Holds all the information related to register banks.
Represent a constant reference to a string, i.e.
Definition StringRef.h:56
TargetCostKind
The kind of cost model.
@ TCK_CodeSize
Instruction code size.
Triple - Helper class for working with autoconf configuration names.
Definition Triple.h:48
This is an optimization pass for GlobalISel generic memory operations.
TailPredication
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
Definition MCRegister.h:21
TPLoopMemTransfer
@ Enabled
Convert any .debug_str_offsets tables to DWARF64 if needed.
Definition DWP.h:31
@ Disabled
Don't do any conversion of .debug_str_offsets tables.
Definition DWP.h:30
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition Alignment.h:39
Represent subnormal handling kind for floating point instruction inputs and outputs.
static constexpr DenormalMode getIEEE()
Machine model for scheduling, bundling, and heuristics.
Definition MCSchedule.h:268