LLVM  13.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"
18 #include "ARMConstantPoolValue.h"
19 #include "ARMFrameLowering.h"
20 #include "ARMISelLowering.h"
21 #include "ARMSelectionDAGInfo.h"
22 #include "llvm/ADT/Triple.h"
31 #include "llvm/MC/MCSchedule.h"
34 #include <memory>
35 #include <string>
36 
37 #define GET_SUBTARGETINFO_HEADER
38 #include "ARMGenSubtargetInfo.inc"
39 
40 namespace llvm {
41 
42 class ARMBaseTargetMachine;
43 class GlobalValue;
44 class StringRef;
45 
47 protected:
50 
85  };
88 
92  };
93  enum ARMArchEnum {
127  };
128 
129 public:
130  /// What kind of timing do load multiple/store multiple instructions have.
132  /// Can load/store 2 registers/cycle.
134  /// Can load/store 2 registers/cycle, but needs an extra cycle if the access
135  /// is not 64-bit aligned.
137  /// Can load/store 1 register/cycle.
139  /// Can load/store 1 register/cycle, but needs an extra cycle for address
140  /// computation and potentially also for register writeback.
142  };
143 
144 protected:
145  /// ARMProcFamily - ARM processor family: Cortex-A8, Cortex-A9, and others.
147 
148  /// ARMProcClass - ARM processor class: None, AClass, RClass or MClass.
150 
151  /// ARMArch - ARM architecture
153 
154  /// HasV4TOps, HasV5TOps, HasV5TEOps,
155  /// HasV6Ops, HasV6MOps, HasV6KOps, HasV6T2Ops, HasV7Ops, HasV8Ops -
156  /// Specify whether target support specific ARM ISA variants.
157  bool HasV4TOps = false;
158  bool HasV5TOps = false;
159  bool HasV5TEOps = false;
160  bool HasV6Ops = false;
161  bool HasV6MOps = false;
162  bool HasV6KOps = false;
163  bool HasV6T2Ops = false;
164  bool HasV7Ops = false;
165  bool HasV8Ops = false;
166  bool HasV8_1aOps = false;
167  bool HasV8_2aOps = false;
168  bool HasV8_3aOps = false;
169  bool HasV8_4aOps = false;
170  bool HasV8_5aOps = false;
171  bool HasV8_6aOps = false;
172  bool HasV8_7aOps = false;
173  bool HasV8MBaselineOps = false;
174  bool HasV8MMainlineOps = false;
175  bool HasV8_1MMainlineOps = false;
176  bool HasMVEIntegerOps = false;
177  bool HasMVEFloatOps = false;
178  bool HasCDEOps = false;
179 
180  /// HasVFPv2, HasVFPv3, HasVFPv4, HasFPARMv8, HasNEON - Specify what
181  /// floating point ISAs are supported.
182  bool HasVFPv2 = false;
183  bool HasVFPv3 = false;
184  bool HasVFPv4 = false;
185  bool HasFPARMv8 = false;
186  bool HasNEON = false;
187  bool HasFPRegs = false;
188  bool HasFPRegs16 = false;
189  bool HasFPRegs64 = false;
190 
191  /// Versions of the VFP flags restricted to single precision, or to
192  /// 16 d-registers, or both.
193  bool HasVFPv2SP = false;
194  bool HasVFPv3SP = false;
195  bool HasVFPv4SP = false;
196  bool HasFPARMv8SP = false;
197  bool HasVFPv3D16 = false;
198  bool HasVFPv4D16 = false;
199  bool HasFPARMv8D16 = false;
200  bool HasVFPv3D16SP = false;
201  bool HasVFPv4D16SP = false;
202  bool HasFPARMv8D16SP = false;
203 
204  /// HasDotProd - True if the ARMv8.2A dot product instructions are supported.
205  bool HasDotProd = false;
206 
207  /// UseNEONForSinglePrecisionFP - if the NEONFP attribute has been
208  /// specified. Use the method useNEONForSinglePrecisionFP() to
209  /// determine if NEON should actually be used.
211 
212  /// UseMulOps - True if non-microcoded fused integer multiply-add and
213  /// multiply-subtract instructions should be used.
214  bool UseMulOps = false;
215 
216  /// SlowFPVMLx - If the VFP2 / NEON instructions are available, indicates
217  /// whether the FP VML[AS] instructions are slow (if so, don't use them).
218  bool SlowFPVMLx = false;
219 
220  /// SlowFPVFMx - If the VFP4 / NEON instructions are available, indicates
221  /// whether the FP VFM[AS] instructions are slow (if so, don't use them).
222  bool SlowFPVFMx = false;
223 
224  /// HasVMLxForwarding - If true, NEON has special multiplier accumulator
225  /// forwarding to allow mul + mla being issued back to back.
226  bool HasVMLxForwarding = false;
227 
228  /// SlowFPBrcc - True if floating point compare + branch is slow.
229  bool SlowFPBrcc = false;
230 
231  /// InThumbMode - True if compiling for Thumb, false for ARM.
232  bool InThumbMode = false;
233 
234  /// UseSoftFloat - True if we're using software floating point features.
235  bool UseSoftFloat = false;
236 
237  /// UseMISched - True if MachineScheduler should be used for this subtarget.
238  bool UseMISched = false;
239 
240  /// DisablePostRAScheduler - False if scheduling should happen again after
241  /// register allocation.
243 
244  /// HasThumb2 - True if Thumb2 instructions are supported.
245  bool HasThumb2 = false;
246 
247  /// NoARM - True if subtarget does not support ARM mode execution.
248  bool NoARM = false;
249 
250  /// ReserveR9 - True if R9 is not available as a general purpose register.
251  bool ReserveR9 = false;
252 
253  /// NoMovt - True if MOVT / MOVW pairs are not used for materialization of
254  /// 32-bit imms (including global addresses).
255  bool NoMovt = false;
256 
257  /// SupportsTailCall - True if the OS supports tail call. The dynamic linker
258  /// must be able to synthesize call stubs for interworking between ARM and
259  /// Thumb.
260  bool SupportsTailCall = false;
261 
262  /// HasFP16 - True if subtarget supports half-precision FP conversions
263  bool HasFP16 = false;
264 
265  /// HasFullFP16 - True if subtarget supports half-precision FP operations
266  bool HasFullFP16 = false;
267 
268  /// HasFP16FML - True if subtarget supports half-precision FP fml operations
269  bool HasFP16FML = false;
270 
271  /// HasBF16 - True if subtarget supports BFloat16 floating point operations
272  bool HasBF16 = false;
273 
274  /// HasMatMulInt8 - True if subtarget supports 8-bit integer matrix multiply
275  bool HasMatMulInt8 = false;
276 
277  /// HasD32 - True if subtarget has the full 32 double precision
278  /// FP registers for VFPv3.
279  bool HasD32 = false;
280 
281  /// HasHardwareDivide - True if subtarget supports [su]div in Thumb mode
283 
284  /// HasHardwareDivideInARM - True if subtarget supports [su]div in ARM mode
286 
287  /// HasDataBarrier - True if the subtarget supports DMB / DSB data barrier
288  /// instructions.
289  bool HasDataBarrier = false;
290 
291  /// HasFullDataBarrier - True if the subtarget supports DFB data barrier
292  /// instruction.
293  bool HasFullDataBarrier = false;
294 
295  /// HasV7Clrex - True if the subtarget supports CLREX instructions
296  bool HasV7Clrex = false;
297 
298  /// HasAcquireRelease - True if the subtarget supports v8 atomics (LDA/LDAEX etc)
299  /// instructions
300  bool HasAcquireRelease = false;
301 
302  /// Pref32BitThumb - If true, codegen would prefer 32-bit Thumb instructions
303  /// over 16-bit ones.
304  bool Pref32BitThumb = false;
305 
306  /// AvoidCPSRPartialUpdate - If true, codegen would avoid using instructions
307  /// that partially update CPSR and add false dependency on the previous
308  /// CPSR setting instruction.
310 
311  /// CheapPredicableCPSRDef - If true, disable +1 predication cost
312  /// for instructions updating CPSR. Enabled for Cortex-A57.
314 
315  /// AvoidMOVsShifterOperand - If true, codegen should avoid using flag setting
316  /// movs with shifter operand (i.e. asr, lsl, lsr).
318 
319  /// HasRetAddrStack - Some processors perform return stack prediction. CodeGen should
320  /// avoid issue "normal" call instructions to callees which do not return.
321  bool HasRetAddrStack = false;
322 
323  /// HasBranchPredictor - True if the subtarget has a branch predictor. Having
324  /// a branch predictor or not changes the expected cost of taking a branch
325  /// which affects the choice of whether to use predicated instructions.
326  bool HasBranchPredictor = true;
327 
328  /// HasMPExtension - True if the subtarget supports Multiprocessing
329  /// extension (ARMv7 only).
330  bool HasMPExtension = false;
331 
332  /// HasVirtualization - True if the subtarget supports the Virtualization
333  /// extension.
334  bool HasVirtualization = false;
335 
336  /// HasFP64 - If true, the floating point unit supports double
337  /// precision.
338  bool HasFP64 = false;
339 
340  /// If true, the processor supports the Performance Monitor Extensions. These
341  /// include a generic cycle-counter as well as more fine-grained (often
342  /// implementation-specific) events.
343  bool HasPerfMon = false;
344 
345  /// HasTrustZone - if true, processor supports TrustZone security extensions
346  bool HasTrustZone = false;
347 
348  /// Has8MSecExt - if true, processor supports ARMv8-M Security Extensions
349  bool Has8MSecExt = false;
350 
351  /// HasSHA2 - if true, processor supports SHA1 and SHA256
352  bool HasSHA2 = false;
353 
354  /// HasAES - if true, processor supports AES
355  bool HasAES = false;
356 
357  /// HasCrypto - if true, processor supports Cryptography extensions
358  bool HasCrypto = false;
359 
360  /// HasCRC - if true, processor supports CRC instructions
361  bool HasCRC = false;
362 
363  /// HasRAS - if true, the processor supports RAS extensions
364  bool HasRAS = false;
365 
366  /// HasLOB - if true, the processor supports the Low Overhead Branch extension
367  bool HasLOB = false;
368 
369  /// If true, the instructions "vmov.i32 d0, #0" and "vmov.i32 q0, #0" are
370  /// particularly effective at zeroing a VFP register.
371  bool HasZeroCycleZeroing = false;
372 
373  /// HasFPAO - if true, processor does positive address offset computation faster
374  bool HasFPAO = false;
375 
376  /// HasFuseAES - if true, processor executes back to back AES instruction
377  /// pairs faster.
378  bool HasFuseAES = false;
379 
380  /// HasFuseLiterals - if true, processor executes back to back
381  /// bottom and top halves of literal generation faster.
382  bool HasFuseLiterals = false;
383 
384  /// If true, if conversion may decide to leave some instructions unpredicated.
386 
387  /// If true, VMOV will be favored over VGETLNi32.
388  bool HasSlowVGETLNi32 = false;
389 
390  /// If true, VMOV will be favored over VDUP.
391  bool HasSlowVDUP32 = false;
392 
393  /// If true, VMOVSR will be favored over VMOVDRR.
394  bool PreferVMOVSR = false;
395 
396  /// If true, ISHST barriers will be used for Release semantics.
397  bool PreferISHST = false;
398 
399  /// If true, a VLDM/VSTM starting with an odd register number is considered to
400  /// take more microops than single VLDRS/VSTRS.
401  bool SlowOddRegister = false;
402 
403  /// If true, loading into a D subregister will be penalized.
404  bool SlowLoadDSubregister = false;
405 
406  /// If true, use a wider stride when allocating VFP registers.
407  bool UseWideStrideVFP = false;
408 
409  /// If true, the AGU and NEON/FPU units are multiplexed.
410  bool HasMuxedUnits = false;
411 
412  /// If true, VMOVS will never be widened to VMOVD.
413  bool DontWidenVMOVS = false;
414 
415  /// If true, splat a register between VFP and NEON instructions.
416  bool SplatVFPToNeon = false;
417 
418  /// If true, run the MLx expansion pass.
419  bool ExpandMLx = false;
420 
421  /// If true, VFP/NEON VMLA/VMLS have special RAW hazards.
422  bool HasVMLxHazards = false;
423 
424  // If true, read thread pointer from coprocessor register.
425  bool ReadTPHard = false;
426 
427  /// If true, VMOVRS, VMOVSR and VMOVS will be converted from VFP to NEON.
428  bool UseNEONForFPMovs = false;
429 
430  /// If true, VLDn instructions take an extra cycle for unaligned accesses.
431  bool CheckVLDnAlign = false;
432 
433  /// If true, VFP instructions are not pipelined.
434  bool NonpipelinedVFP = false;
435 
436  /// StrictAlign - If true, the subtarget disallows unaligned memory
437  /// accesses for some types. For details, see
438  /// ARMTargetLowering::allowsMisalignedMemoryAccesses().
439  bool StrictAlign = false;
440 
441  /// RestrictIT - If true, the subtarget disallows generation of deprecated IT
442  /// blocks to conform to ARMv8 rule.
443  bool RestrictIT = false;
444 
445  /// HasDSP - If true, the subtarget supports the DSP (saturating arith
446  /// and such) instructions.
447  bool HasDSP = false;
448 
449  /// NaCl TRAP instruction is generated instead of the regular TRAP.
450  bool UseNaClTrap = false;
451 
452  /// Generate calls via indirect call instructions.
453  bool GenLongCalls = false;
454 
455  /// Generate code that does not contain data access to code sections.
456  bool GenExecuteOnly = false;
457 
458  /// Target machine allowed unsafe FP math (such as use of NEON fp)
459  bool UnsafeFPMath = false;
460 
461  /// UseSjLjEH - If true, the target uses SjLj exception handling (e.g. iOS).
462  bool UseSjLjEH = false;
463 
464  /// Has speculation barrier
465  bool HasSB = false;
466 
467  /// Implicitly convert an instruction to a different one if its immediates
468  /// cannot be encoded. For example, ADD r0, r1, #FFFFFFFF -> SUB r0, r1, #1.
469  bool NegativeImmediates = true;
470 
471  /// Harden against Straight Line Speculation for Returns and Indirect
472  /// Branches.
473  bool HardenSlsRetBr = false;
474 
475  /// Harden against Straight Line Speculation for indirect calls.
476  bool HardenSlsBlr = false;
477 
478  /// stackAlignment - The minimum alignment known to hold of the stack frame on
479  /// entry to the function and which must be maintained by every function.
481 
482  /// CPUString - String name of used CPU.
483  std::string CPUString;
484 
485  unsigned MaxInterleaveFactor = 1;
486 
487  /// Clearance before partial register updates (in number of instructions)
489 
490  /// What kind of timing do load multiple/store multiple have (double issue,
491  /// single issue etc).
493 
494  /// The adjustment that we need to apply to get the operand latency from the
495  /// operand cycle returned by the itinerary data for pre-ISel operands.
497 
498  /// What alignment is preferred for loop bodies, in log2(bytes).
499  unsigned PrefLoopLogAlignment = 0;
500 
501  /// The cost factor for MVE instructions, representing the multiple beats an
502  // instruction can take. The default is 2, (set in initSubtargetFeatures so
503  // that we can use subtarget features less than 2).
504  unsigned MVEVectorCostFactor = 0;
505 
506  /// OptMinSize - True if we're optimising for minimum code size, equal to
507  /// the function attribute.
508  bool OptMinSize = false;
509 
510  /// IsLittle - The target is Little Endian
511  bool IsLittle;
512 
513  /// TargetTriple - What processor and OS we're targeting.
515 
516  /// SchedModel - Processor specific instruction costs.
518 
519  /// Selected instruction itineraries (one entry per itinerary class.)
521 
522  /// Options passed via command line that could influence the target
524 
526 
527 public:
528  /// This constructor initializes the data members to match that
529  /// of the specified triple.
530  ///
531  ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
532  const ARMBaseTargetMachine &TM, bool IsLittle,
533  bool MinSize = false);
534 
535  /// getMaxInlineSizeThreshold - Returns the maximum memset / memcpy size
536  /// that still makes it profitable to inline the call.
537  unsigned getMaxInlineSizeThreshold() const {
538  return 64;
539  }
540 
541  /// ParseSubtargetFeatures - Parses features string setting specified
542  /// subtarget options. Definition of function is auto generated by tblgen.
544 
545  /// initializeSubtargetDependencies - Initializes using a CPU and feature string
546  /// so that we can use initializer lists for subtarget initialization.
548 
549  const ARMSelectionDAGInfo *getSelectionDAGInfo() const override {
550  return &TSInfo;
551  }
552 
553  const ARMBaseInstrInfo *getInstrInfo() const override {
554  return InstrInfo.get();
555  }
556 
557  const ARMTargetLowering *getTargetLowering() const override {
558  return &TLInfo;
559  }
560 
561  const ARMFrameLowering *getFrameLowering() const override {
562  return FrameLowering.get();
563  }
564 
565  const ARMBaseRegisterInfo *getRegisterInfo() const override {
566  return &InstrInfo->getRegisterInfo();
567  }
568 
569  const CallLowering *getCallLowering() const override;
571  const LegalizerInfo *getLegalizerInfo() const override;
572  const RegisterBankInfo *getRegBankInfo() const override;
573 
574 private:
575  ARMSelectionDAGInfo TSInfo;
576  // Either Thumb1FrameLowering or ARMFrameLowering.
577  std::unique_ptr<ARMFrameLowering> FrameLowering;
578  // Either Thumb1InstrInfo or Thumb2InstrInfo.
579  std::unique_ptr<ARMBaseInstrInfo> InstrInfo;
580  ARMTargetLowering TLInfo;
581 
582  /// GlobalISel related APIs.
583  std::unique_ptr<CallLowering> CallLoweringInfo;
584  std::unique_ptr<InstructionSelector> InstSelector;
585  std::unique_ptr<LegalizerInfo> Legalizer;
586  std::unique_ptr<RegisterBankInfo> RegBankInfo;
587 
588  void initializeEnvironment();
589  void initSubtargetFeatures(StringRef CPU, StringRef FS);
590  ARMFrameLowering *initializeFrameLowering(StringRef CPU, StringRef FS);
591 
592  std::bitset<8> CoprocCDE = {};
593 public:
594  void computeIssueWidth();
595 
596  bool hasV4TOps() const { return HasV4TOps; }
597  bool hasV5TOps() const { return HasV5TOps; }
598  bool hasV5TEOps() const { return HasV5TEOps; }
599  bool hasV6Ops() const { return HasV6Ops; }
600  bool hasV6MOps() const { return HasV6MOps; }
601  bool hasV6KOps() const { return HasV6KOps; }
602  bool hasV6T2Ops() const { return HasV6T2Ops; }
603  bool hasV7Ops() const { return HasV7Ops; }
604  bool hasV8Ops() const { return HasV8Ops; }
605  bool hasV8_1aOps() const { return HasV8_1aOps; }
606  bool hasV8_2aOps() const { return HasV8_2aOps; }
607  bool hasV8_3aOps() const { return HasV8_3aOps; }
608  bool hasV8_4aOps() const { return HasV8_4aOps; }
609  bool hasV8_5aOps() const { return HasV8_5aOps; }
610  bool hasV8_6aOps() const { return HasV8_6aOps; }
611  bool hasV8_7aOps() const { return HasV8_7aOps; }
612  bool hasV8MBaselineOps() const { return HasV8MBaselineOps; }
613  bool hasV8MMainlineOps() const { return HasV8MMainlineOps; }
614  bool hasV8_1MMainlineOps() const { return HasV8_1MMainlineOps; }
615  bool hasMVEIntegerOps() const { return HasMVEIntegerOps; }
616  bool hasMVEFloatOps() const { return HasMVEFloatOps; }
617  bool hasCDEOps() const { return HasCDEOps; }
618  bool hasFPRegs() const { return HasFPRegs; }
619  bool hasFPRegs16() const { return HasFPRegs16; }
620  bool hasFPRegs64() const { return HasFPRegs64; }
621 
622  /// @{
623  /// These functions are obsolete, please consider adding subtarget features
624  /// or properties instead of calling them.
625  bool isCortexA5() const { return ARMProcFamily == CortexA5; }
626  bool isCortexA7() const { return ARMProcFamily == CortexA7; }
627  bool isCortexA8() const { return ARMProcFamily == CortexA8; }
628  bool isCortexA9() const { return ARMProcFamily == CortexA9; }
629  bool isCortexA15() const { return ARMProcFamily == CortexA15; }
630  bool isSwift() const { return ARMProcFamily == Swift; }
631  bool isCortexM3() const { return ARMProcFamily == CortexM3; }
632  bool isCortexM7() const { return ARMProcFamily == CortexM7; }
633  bool isLikeA9() const { return isCortexA9() || isCortexA15() || isKrait(); }
634  bool isCortexR5() const { return ARMProcFamily == CortexR5; }
635  bool isKrait() const { return ARMProcFamily == Krait; }
636  /// @}
637 
638  bool hasARMOps() const { return !NoARM; }
639 
640  bool hasVFP2Base() const { return HasVFPv2SP; }
641  bool hasVFP3Base() const { return HasVFPv3D16SP; }
642  bool hasVFP4Base() const { return HasVFPv4D16SP; }
643  bool hasFPARMv8Base() const { return HasFPARMv8D16SP; }
644  bool hasNEON() const { return HasNEON; }
645  bool hasSHA2() const { return HasSHA2; }
646  bool hasAES() const { return HasAES; }
647  bool hasCrypto() const { return HasCrypto; }
648  bool hasDotProd() const { return HasDotProd; }
649  bool hasCRC() const { return HasCRC; }
650  bool hasRAS() const { return HasRAS; }
651  bool hasLOB() const { return HasLOB; }
652  bool hasVirtualization() const { return HasVirtualization; }
653 
656  }
657 
660  bool hasDataBarrier() const { return HasDataBarrier; }
661  bool hasFullDataBarrier() const { return HasFullDataBarrier; }
662  bool hasV7Clrex() const { return HasV7Clrex; }
663  bool hasAcquireRelease() const { return HasAcquireRelease; }
664 
665  bool hasAnyDataBarrier() const {
666  return HasDataBarrier || (hasV6Ops() && !isThumb());
667  }
668 
669  bool useMulOps() const { return UseMulOps; }
670  bool useFPVMLx() const { return !SlowFPVMLx; }
671  bool useFPVFMx() const {
672  return !isTargetDarwin() && hasVFP4Base() && !SlowFPVFMx;
673  }
674  bool useFPVFMx16() const { return useFPVFMx() && hasFullFP16(); }
675  bool useFPVFMx64() const { return useFPVFMx() && hasFP64(); }
676  bool hasVMLxForwarding() const { return HasVMLxForwarding; }
677  bool isFPBrccSlow() const { return SlowFPBrcc; }
678  bool hasFP64() const { return HasFP64; }
679  bool hasPerfMon() const { return HasPerfMon; }
680  bool hasTrustZone() const { return HasTrustZone; }
681  bool has8MSecExt() const { return Has8MSecExt; }
682  bool hasZeroCycleZeroing() const { return HasZeroCycleZeroing; }
683  bool hasFPAO() const { return HasFPAO; }
685  bool hasSlowVGETLNi32() const { return HasSlowVGETLNi32; }
686  bool hasSlowVDUP32() const { return HasSlowVDUP32; }
687  bool preferVMOVSR() const { return PreferVMOVSR; }
688  bool preferISHSTBarriers() const { return PreferISHST; }
689  bool expandMLx() const { return ExpandMLx; }
690  bool hasVMLxHazards() const { return HasVMLxHazards; }
691  bool hasSlowOddRegister() const { return SlowOddRegister; }
693  bool useWideStrideVFP() const { return UseWideStrideVFP; }
694  bool hasMuxedUnits() const { return HasMuxedUnits; }
695  bool dontWidenVMOVS() const { return DontWidenVMOVS; }
696  bool useSplatVFPToNeon() const { return SplatVFPToNeon; }
697  bool useNEONForFPMovs() const { return UseNEONForFPMovs; }
698  bool checkVLDnAccessAlignment() const { return CheckVLDnAlign; }
699  bool nonpipelinedVFP() const { return NonpipelinedVFP; }
700  bool prefers32BitThumb() const { return Pref32BitThumb; }
704  bool hasRetAddrStack() const { return HasRetAddrStack; }
705  bool hasBranchPredictor() const { return HasBranchPredictor; }
706  bool hasMPExtension() const { return HasMPExtension; }
707  bool hasDSP() const { return HasDSP; }
708  bool useNaClTrap() const { return UseNaClTrap; }
709  bool useSjLjEH() const { return UseSjLjEH; }
710  bool hasSB() const { return HasSB; }
711  bool genLongCalls() const { return GenLongCalls; }
712  bool genExecuteOnly() const { return GenExecuteOnly; }
713  bool hasBaseDSP() const {
714  if (isThumb())
715  return hasDSP();
716  else
717  return hasV5TEOps();
718  }
719 
720  bool hasFP16() const { return HasFP16; }
721  bool hasD32() const { return HasD32; }
722  bool hasFullFP16() const { return HasFullFP16; }
723  bool hasFP16FML() const { return HasFP16FML; }
724  bool hasBF16() const { return HasBF16; }
725 
726  bool hasFuseAES() const { return HasFuseAES; }
727  bool hasFuseLiterals() const { return HasFuseLiterals; }
728  /// Return true if the CPU supports any kind of instruction fusion.
729  bool hasFusion() const { return hasFuseAES() || hasFuseLiterals(); }
730 
731  bool hasMatMulInt8() const { return HasMatMulInt8; }
732 
733  const Triple &getTargetTriple() const { return TargetTriple; }
734 
735  bool isTargetDarwin() const { return TargetTriple.isOSDarwin(); }
736  bool isTargetIOS() const { return TargetTriple.isiOS(); }
737  bool isTargetWatchOS() const { return TargetTriple.isWatchOS(); }
738  bool isTargetWatchABI() const { return TargetTriple.isWatchABI(); }
739  bool isTargetLinux() const { return TargetTriple.isOSLinux(); }
740  bool isTargetNaCl() const { return TargetTriple.isOSNaCl(); }
741  bool isTargetNetBSD() const { return TargetTriple.isOSNetBSD(); }
742  bool isTargetWindows() const { return TargetTriple.isOSWindows(); }
743 
744  bool isTargetCOFF() const { return TargetTriple.isOSBinFormatCOFF(); }
745  bool isTargetELF() const { return TargetTriple.isOSBinFormatELF(); }
746  bool isTargetMachO() const { return TargetTriple.isOSBinFormatMachO(); }
747 
748  // ARM EABI is the bare-metal EABI described in ARM ABI documents and
749  // can be accessed via -target arm-none-eabi. This is NOT GNUEABI.
750  // FIXME: Add a flag for bare-metal for that target and set Triple::EABI
751  // even for GNUEABI, so we can make a distinction here and still conform to
752  // the EABI on GNU (and Android) mode. This requires change in Clang, too.
753  // FIXME: The Darwin exception is temporary, while we move users to
754  // "*-*-*-macho" triples as quickly as possible.
755  bool isTargetAEABI() const {
759  }
760  bool isTargetGNUAEABI() const {
764  }
765  bool isTargetMuslAEABI() const {
769  }
770 
771  // ARM Targets that support EHABI exception handling standard
772  // Darwin uses SjLj. Other targets might need more checks.
773  bool isTargetEHABICompatible() const {
780  isTargetAndroid()) &&
782  }
783 
784  bool isTargetHardFloat() const;
785 
786  bool isTargetAndroid() const { return TargetTriple.isAndroid(); }
787 
788  bool isXRaySupported() const override;
789 
790  bool isAPCS_ABI() const;
791  bool isAAPCS_ABI() const;
792  bool isAAPCS16_ABI() const;
793 
794  bool isROPI() const;
795  bool isRWPI() const;
796 
797  bool useMachineScheduler() const { return UseMISched; }
799  bool useSoftFloat() const { return UseSoftFloat; }
800  bool isThumb() const { return InThumbMode; }
801  bool hasMinSize() const { return OptMinSize; }
802  bool isThumb1Only() const { return InThumbMode && !HasThumb2; }
803  bool isThumb2() const { return InThumbMode && HasThumb2; }
804  bool hasThumb2() const { return HasThumb2; }
805  bool isMClass() const { return ARMProcClass == MClass; }
806  bool isRClass() const { return ARMProcClass == RClass; }
807  bool isAClass() const { return ARMProcClass == AClass; }
808  bool isReadTPHard() const { return ReadTPHard; }
809 
810  bool isR9Reserved() const {
811  return isTargetMachO() ? (ReserveR9 || !HasV6Ops) : ReserveR9;
812  }
813 
814  bool useR7AsFramePointer() const {
815  return isTargetDarwin() || (!isTargetWindows() && isThumb());
816  }
817 
818  /// Returns true if the frame setup is split into two separate pushes (first
819  /// r0-r7,lr then r8-r11), principally so that the frame pointer is adjacent
820  /// to lr. This is always required on Thumb1-only targets, as the push and
821  /// pop instructions can't access the high registers.
822  bool splitFramePushPop(const MachineFunction &MF) const {
823  return (useR7AsFramePointer() &&
825  isThumb1Only();
826  }
827 
828  bool useStride4VFPs() const;
829 
830  bool useMovt() const;
831 
832  bool supportsTailCall() const { return SupportsTailCall; }
833 
834  bool allowsUnalignedMem() const { return !StrictAlign; }
835 
836  bool restrictIT() const { return RestrictIT; }
837 
838  const std::string & getCPUString() const { return CPUString; }
839 
840  bool isLittle() const { return IsLittle; }
841 
842  unsigned getMispredictionPenalty() const;
843 
844  /// Returns true if machine scheduler should be enabled.
845  bool enableMachineScheduler() const override;
846 
847  /// True for some subtargets at > -O0.
848  bool enablePostRAScheduler() const override;
849 
850  /// True for some subtargets at > -O0.
851  bool enablePostRAMachineScheduler() const override;
852 
853  /// Check whether this subtarget wants to use subregister liveness.
854  bool enableSubRegLiveness() const override;
855 
856  /// Enable use of alias analysis during code generation (during MI
857  /// scheduling, DAGCombine, etc.).
858  bool useAA() const override { return true; }
859 
860  // enableAtomicExpand- True if we need to expand our atomics.
861  bool enableAtomicExpand() const override;
862 
863  /// getInstrItins - Return the instruction itineraries based on subtarget
864  /// selection.
865  const InstrItineraryData *getInstrItineraryData() const override {
866  return &InstrItins;
867  }
868 
869  /// getStackAlignment - Returns the minimum alignment known to hold of the
870  /// stack frame on entry to the function and which must be maintained by every
871  /// function for this subtarget.
873 
874  unsigned getMaxInterleaveFactor() const { return MaxInterleaveFactor; }
875 
877 
879  return LdStMultipleTiming;
880  }
881 
884  }
885 
886  /// True if the GV will be accessed via an indirect symbol.
887  bool isGVIndirectSymbol(const GlobalValue *GV) const;
888 
889  /// Returns the constant pool modifier needed to access the GV.
890  bool isGVInGOT(const GlobalValue *GV) const;
891 
892  /// True if fast-isel is used.
893  bool useFastISel() const;
894 
895  /// Returns the correct return opcode for the current feature set.
896  /// Use BX if available to allow mixing thumb/arm code, but fall back
897  /// to plain mov pc,lr on ARMv4.
898  unsigned getReturnOpcode() const {
899  if (isThumb())
900  return ARM::tBX_RET;
901  if (hasV4TOps())
902  return ARM::BX_RET;
903  return ARM::MOVPCLR;
904  }
905 
906  /// Allow movt+movw for PIC global address calculation.
907  /// ELF does not have GOT relocations for movt+movw.
908  /// ROPI does not use GOT.
910  return isROPI() || !isTargetELF();
911  }
912 
913  unsigned getPrefLoopLogAlignment() const { return PrefLoopLogAlignment; }
914 
915  unsigned
918  return 1;
919  return MVEVectorCostFactor;
920  }
921 
923  unsigned PhysReg) const override;
924  unsigned getGPRAllocationOrder(const MachineFunction &MF) const;
925 
926  bool hardenSlsRetBr() const { return HardenSlsRetBr; }
927  bool hardenSlsBlr() const { return HardenSlsBlr; }
928 };
929 
930 } // end namespace llvm
931 
932 #endif // LLVM_LIB_TARGET_ARM_ARMSUBTARGET_H
llvm::ARMSubtarget::HasCDEOps
bool HasCDEOps
Definition: ARMSubtarget.h:178
llvm::ARMSubtarget::HasV8_3aOps
bool HasV8_3aOps
Definition: ARMSubtarget.h:168
llvm::ARMSubtarget::SupportsTailCall
bool SupportsTailCall
SupportsTailCall - True if the OS supports tail call.
Definition: ARMSubtarget.h:260
llvm::ARMSubtarget::CortexA17
@ CortexA17
Definition: ARMSubtarget.h:53
llvm::ARMSubtarget::HasV5TEOps
bool HasV5TEOps
Definition: ARMSubtarget.h:159
llvm::ARMSubtarget::UseSjLjEH
bool UseSjLjEH
UseSjLjEH - If true, the target uses SjLj exception handling (e.g. iOS).
Definition: ARMSubtarget.h:462
llvm::ARMSubtarget::useSjLjEH
bool useSjLjEH() const
Definition: ARMSubtarget.h:709
llvm::ARMSubtarget::hasBaseDSP
bool hasBaseDSP() const
Definition: ARMSubtarget.h:713
llvm::ARMSubtarget::TM
const ARMBaseTargetMachine & TM
Definition: ARMSubtarget.h:525
llvm::ARMSubtarget::CortexR7
@ CortexR7
Definition: ARMSubtarget.h:76
llvm::ARMSubtarget::hasRAS
bool hasRAS() const
Definition: ARMSubtarget.h:650
llvm::ARMSubtarget::enableSubRegLiveness
bool enableSubRegLiveness() const override
Check whether this subtarget wants to use subregister liveness.
Definition: ARMSubtarget.cpp:392
llvm::TargetTransformInfo::TargetCostKind
TargetCostKind
The kind of cost model.
Definition: TargetTransformInfo.h:210
llvm::ARMSubtarget::HasVFPv3SP
bool HasVFPv3SP
Definition: ARMSubtarget.h:194
llvm::ARMSubtarget::HasCrypto
bool HasCrypto
HasCrypto - if true, processor supports Cryptography extensions.
Definition: ARMSubtarget.h:358
llvm::ARMSubtarget::hardenSlsRetBr
bool hardenSlsRetBr() const
Definition: ARMSubtarget.h:926
llvm::ARMSubtarget::hasV6MOps
bool hasV6MOps() const
Definition: ARMSubtarget.h:600
llvm::ARMSubtarget::HasAcquireRelease
bool HasAcquireRelease
HasAcquireRelease - True if the subtarget supports v8 atomics (LDA/LDAEX etc) instructions.
Definition: ARMSubtarget.h:300
llvm::ARMSubtarget::genLongCalls
bool genLongCalls() const
Definition: ARMSubtarget.h:711
llvm::ARMBaseTargetMachine
Definition: ARMTargetMachine.h:27
llvm::ARMSubtarget::hasV8_5aOps
bool hasV8_5aOps() const
Definition: ARMSubtarget.h:609
llvm::ARMSubtarget::hasSB
bool hasSB() const
Definition: ARMSubtarget.h:710
llvm::ARMSubtarget::hasV5TOps
bool hasV5TOps() const
Definition: ARMSubtarget.h:597
llvm
Definition: AllocatorList.h:23
llvm::ARMSubtarget::ARMProcFamilyEnum
ARMProcFamilyEnum
Definition: ARMSubtarget.h:48
llvm::ARMSubtarget::SlowFPBrcc
bool SlowFPBrcc
SlowFPBrcc - True if floating point compare + branch is slow.
Definition: ARMSubtarget.h:229
llvm::ARMSubtarget::hasFusion
bool hasFusion() const
Return true if the CPU supports any kind of instruction fusion.
Definition: ARMSubtarget.h:729
llvm::ARMSubtarget::hasMVEFloatOps
bool hasMVEFloatOps() const
Definition: ARMSubtarget.h:616
llvm::ARMSubtarget::hasARMOps
bool hasARMOps() const
Definition: ARMSubtarget.h:638
llvm::ARMSubtarget::isTargetAndroid
bool isTargetAndroid() const
Definition: ARMSubtarget.h:786
llvm::ARMSubtarget::computeIssueWidth
void computeIssueWidth()
llvm::ARMSubtarget::HasSlowVDUP32
bool HasSlowVDUP32
If true, VMOV will be favored over VDUP.
Definition: ARMSubtarget.h:391
llvm::ARMSubtarget::getLegalizerInfo
const LegalizerInfo * getLegalizerInfo() const override
Definition: ARMSubtarget.cpp:135
llvm::ARMSubtarget::HasVMLxForwarding
bool HasVMLxForwarding
HasVMLxForwarding - If true, NEON has special multiplier accumulator forwarding to allow mul + mla be...
Definition: ARMSubtarget.h:226
llvm::ARMSubtarget::HasVirtualization
bool HasVirtualization
HasVirtualization - True if the subtarget supports the Virtualization extension.
Definition: ARMSubtarget.h:334
llvm::ARMSubtarget::enableMachineScheduler
bool enableMachineScheduler() const override
Returns true if machine scheduler should be enabled.
Definition: ARMSubtarget.cpp:379
llvm::ARMSubtarget::NoARM
bool NoARM
NoARM - True if subtarget does not support ARM mode execution.
Definition: ARMSubtarget.h:248
CallLowering.h
llvm::ARMSubtarget::HasV8_1MMainlineOps
bool HasV8_1MMainlineOps
Definition: ARMSubtarget.h:175
llvm::ARMSubtarget::CortexA57
@ CortexA57
Definition: ARMSubtarget.h:59
ARMGenSubtargetInfo
llvm::TargetOptions
Definition: TargetOptions.h:119
llvm::ARMSubtarget::HasVFPv2
bool HasVFPv2
HasVFPv2, HasVFPv3, HasVFPv4, HasFPARMv8, HasNEON - Specify what floating point ISAs are supported.
Definition: ARMSubtarget.h:182
llvm::Triple::isOSBinFormatCOFF
bool isOSBinFormatCOFF() const
Tests whether the OS uses the COFF binary format.
Definition: Triple.h:637
llvm::ARMSubtarget::GenLongCalls
bool GenLongCalls
Generate calls via indirect call instructions.
Definition: ARMSubtarget.h:453
llvm::ARMSubtarget
Definition: ARMSubtarget.h:46
llvm::ARMSubtarget::ARMv7m
@ ARMv7m
Definition: ARMSubtarget.h:112
llvm::ARMSubtarget::HasTrustZone
bool HasTrustZone
HasTrustZone - if true, processor supports TrustZone security extensions.
Definition: ARMSubtarget.h:346
llvm::ARMSubtarget::hasVMLxForwarding
bool hasVMLxForwarding() const
Definition: ARMSubtarget.h:676
llvm::ARMSubtarget::HasNEON
bool HasNEON
Definition: ARMSubtarget.h:186
llvm::ARMSubtarget::isAClass
bool isAClass() const
Definition: ARMSubtarget.h:807
llvm::ARMSubtarget::hasFPRegs64
bool hasFPRegs64() const
Definition: ARMSubtarget.h:620
llvm::ARMSubtarget::HasFPARMv8SP
bool HasFPARMv8SP
Definition: ARMSubtarget.h:196
llvm::ARMSubtarget::isTargetWatchOS
bool isTargetWatchOS() const
Definition: ARMSubtarget.h:737
llvm::ARMSubtarget::getMispredictionPenalty
unsigned getMispredictionPenalty() const
Definition: ARMSubtarget.cpp:375
llvm::ARMSubtarget::HasFullDataBarrier
bool HasFullDataBarrier
HasFullDataBarrier - True if the subtarget supports DFB data barrier instruction.
Definition: ARMSubtarget.h:293
llvm::ARMSubtarget::HasThumb2
bool HasThumb2
HasThumb2 - True if Thumb2 instructions are supported.
Definition: ARMSubtarget.h:245
llvm::ARMSubtarget::getPartialUpdateClearance
unsigned getPartialUpdateClearance() const
Definition: ARMSubtarget.h:876
llvm::ARMSubtarget::isCortexM3
bool isCortexM3() const
Definition: ARMSubtarget.h:631
llvm::ARMSubtarget::Has8MSecExt
bool Has8MSecExt
Has8MSecExt - if true, processor supports ARMv8-M Security Extensions.
Definition: ARMSubtarget.h:349
llvm::ARMSubtarget::Pref32BitThumb
bool Pref32BitThumb
Pref32BitThumb - If true, codegen would prefer 32-bit Thumb instructions over 16-bit ones.
Definition: ARMSubtarget.h:304
llvm::ARMSubtarget::hasFPARMv8Base
bool hasFPARMv8Base() const
Definition: ARMSubtarget.h:643
llvm::ARMSubtarget::StrictAlign
bool StrictAlign
StrictAlign - If true, the subtarget disallows unaligned memory accesses for some types.
Definition: ARMSubtarget.h:439
llvm::ARMSubtarget::ARMProcFamily
ARMProcFamilyEnum ARMProcFamily
ARMProcFamily - ARM processor family: Cortex-A8, Cortex-A9, and others.
Definition: ARMSubtarget.h:146
llvm::ARMSubtarget::hasSHA2
bool hasSHA2() const
Definition: ARMSubtarget.h:645
llvm::ARMSubtarget::isReadTPHard
bool isReadTPHard() const
Definition: ARMSubtarget.h:808
llvm::Triple::MuslEABIHF
@ MuslEABIHF
Definition: Triple.h:220
llvm::ARMSubtarget::hasFP16FML
bool hasFP16FML() const
Definition: ARMSubtarget.h:723
RegisterBankInfo.h
llvm::Triple
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:45
llvm::ARMSubtarget::useFPVFMx
bool useFPVFMx() const
Definition: ARMSubtarget.h:671
llvm::ARMSubtarget::HasFPARMv8D16
bool HasFPARMv8D16
Definition: ARMSubtarget.h:199
llvm::ARMSubtarget::hasBF16
bool hasBF16() const
Definition: ARMSubtarget.h:724
llvm::TargetTransformInfo::TCK_CodeSize
@ TCK_CodeSize
Instruction code size.
Definition: TargetTransformInfo.h:213
llvm::ARMSubtarget::hasV6T2Ops
bool hasV6T2Ops() const
Definition: ARMSubtarget.h:602
llvm::ARMSubtarget::getTargetTriple
const Triple & getTargetTriple() const
Definition: ARMSubtarget.h:733
llvm::ARMSubtarget::HasV8MMainlineOps
bool HasV8MMainlineOps
Definition: ARMSubtarget.h:174
llvm::ARMSubtarget::isRWPI
bool isRWPI() const
Definition: ARMSubtarget.cpp:351
llvm::ARMSubtarget::HardenSlsBlr
bool HardenSlsBlr
Harden against Straight Line Speculation for indirect calls.
Definition: ARMSubtarget.h:476
llvm::ARMSubtarget::ParseSubtargetFeatures
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
ParseSubtargetFeatures - Parses features string setting specified subtarget options.
llvm::ARMSubtarget::ARMv7r
@ ARMv7r
Definition: ARMSubtarget.h:113
llvm::ARMSubtarget::getPreISelOperandLatencyAdjustment
int getPreISelOperandLatencyAdjustment() const
Definition: ARMSubtarget.h:882
llvm::ARMSubtarget::hasV8_3aOps
bool hasV8_3aOps() const
Definition: ARMSubtarget.h:607
llvm::ARMSubtarget::HasRAS
bool HasRAS
HasRAS - if true, the processor supports RAS extensions.
Definition: ARMSubtarget.h:364
llvm::ARMTargetLowering
Definition: ARMISelLowering.h:368
llvm::ARMSubtarget::getInstrItineraryData
const InstrItineraryData * getInstrItineraryData() const override
getInstrItins - Return the instruction itineraries based on subtarget selection.
Definition: ARMSubtarget.h:865
llvm::ARMSubtarget::HasFuseAES
bool HasFuseAES
HasFuseAES - if true, processor executes back to back AES instruction pairs faster.
Definition: ARMSubtarget.h:378
llvm::ARMSubtarget::hasThumb2
bool hasThumb2() const
Definition: ARMSubtarget.h:804
llvm::ARMSubtarget::getTargetLowering
const ARMTargetLowering * getTargetLowering() const override
Definition: ARMSubtarget.h:557
llvm::ARMSubtarget::NegativeImmediates
bool NegativeImmediates
Implicitly convert an instruction to a different one if its immediates cannot be encoded.
Definition: ARMSubtarget.h:469
llvm::ARMSubtarget::ARMv83a
@ ARMv83a
Definition: ARMSubtarget.h:117
llvm::ARMSubtarget::HasRetAddrStack
bool HasRetAddrStack
HasRetAddrStack - Some processors perform return stack prediction.
Definition: ARMSubtarget.h:321
llvm::ARMSubtarget::hasDivideInARMMode
bool hasDivideInARMMode() const
Definition: ARMSubtarget.h:659
llvm::ARMSubtarget::getInstrInfo
const ARMBaseInstrInfo * getInstrInfo() const override
Definition: ARMSubtarget.h:553
llvm::ARMSubtarget::hasAES
bool hasAES() const
Definition: ARMSubtarget.h:646
llvm::ARMSubtarget::CortexM7
@ CortexM7
Definition: ARMSubtarget.h:71
llvm::ARMSubtarget::HasVFPv4SP
bool HasVFPv4SP
Definition: ARMSubtarget.h:195
llvm::ARMSubtarget::hasMVEIntegerOps
bool hasMVEIntegerOps() const
Definition: ARMSubtarget.h:615
llvm::Triple::isOSLinux
bool isOSLinux() const
Tests whether the OS is Linux.
Definition: Triple.h:595
llvm::ARMSubtarget::getSelectionDAGInfo
const ARMSelectionDAGInfo * getSelectionDAGInfo() const override
Definition: ARMSubtarget.h:549
llvm::ARMSubtarget::HasVMLxHazards
bool HasVMLxHazards
If true, VFP/NEON VMLA/VMLS have special RAW hazards.
Definition: ARMSubtarget.h:422
llvm::ARMSubtarget::ARMv7a
@ ARMv7a
Definition: ARMSubtarget.h:110
llvm::ARMSubtarget::getStackAlignment
Align getStackAlignment() const
getStackAlignment - Returns the minimum alignment known to hold of the stack frame on entry to the fu...
Definition: ARMSubtarget.h:872
llvm::ARMSubtarget::hasSlowVGETLNi32
bool hasSlowVGETLNi32() const
Definition: ARMSubtarget.h:685
llvm::ARMSubtarget::HasBF16
bool HasBF16
HasBF16 - True if subtarget supports BFloat16 floating point operations.
Definition: ARMSubtarget.h:272
llvm::ARMSubtarget::expandMLx
bool expandMLx() const
Definition: ARMSubtarget.h:689
llvm::ARMSubtarget::hasV8_6aOps
bool hasV8_6aOps() const
Definition: ARMSubtarget.h:610
llvm::ARMSubtarget::HasV8_1aOps
bool HasV8_1aOps
Definition: ARMSubtarget.h:166
llvm::ARMSubtarget::isTargetLinux
bool isTargetLinux() const
Definition: ARMSubtarget.h:739
llvm::ARMSubtarget::supportsTailCall
bool supportsTailCall() const
Definition: ARMSubtarget.h:832
llvm::ARMSubtarget::useNEONForFPMovs
bool useNEONForFPMovs() const
Definition: ARMSubtarget.h:697
llvm::X86AS::FS
@ FS
Definition: X86.h:183
llvm::ARMSubtarget::getMaxInlineSizeThreshold
unsigned getMaxInlineSizeThreshold() const
getMaxInlineSizeThreshold - Returns the maximum memset / memcpy size that still makes it profitable t...
Definition: ARMSubtarget.h:537
llvm::ARMSubtarget::ARMLdStMultipleTiming
ARMLdStMultipleTiming
What kind of timing do load multiple/store multiple instructions have.
Definition: ARMSubtarget.h:131
llvm::ARMSubtarget::useR7AsFramePointer
bool useR7AsFramePointer() const
Definition: ARMSubtarget.h:814
llvm::ARMSubtarget::UseMISched
bool UseMISched
UseMISched - True if MachineScheduler should be used for this subtarget.
Definition: ARMSubtarget.h:238
LegalizerInfo.h
llvm::ARMSubtarget::hasSlowVDUP32
bool hasSlowVDUP32() const
Definition: ARMSubtarget.h:686
llvm::ARMSubtarget::RClass
@ RClass
Definition: ARMSubtarget.h:91
llvm::ARMSubtarget::HasMVEFloatOps
bool HasMVEFloatOps
Definition: ARMSubtarget.h:177
llvm::ARMSubtarget::PreferISHST
bool PreferISHST
If true, ISHST barriers will be used for Release semantics.
Definition: ARMSubtarget.h:397
llvm::ARMSubtarget::Kryo
@ Kryo
Definition: ARMSubtarget.h:80
llvm::ARMSubtarget::isTargetWatchABI
bool isTargetWatchABI() const
Definition: ARMSubtarget.h:738
llvm::ARMSubtarget::ARMv2
@ ARMv2
Definition: ARMSubtarget.h:94
llvm::Triple::GNUEABI
@ GNUEABI
Definition: Triple.h:210
llvm::ARMSubtarget::OptMinSize
bool OptMinSize
OptMinSize - True if we're optimising for minimum code size, equal to the function attribute.
Definition: ARMSubtarget.h:508
llvm::ARMSubtarget::HasAES
bool HasAES
HasAES - if true, processor supports AES.
Definition: ARMSubtarget.h:355
llvm::ARMSubtarget::ARMv84a
@ ARMv84a
Definition: ARMSubtarget.h:118
llvm::ARMSubtarget::HasVFPv2SP
bool HasVFPv2SP
Versions of the VFP flags restricted to single precision, or to 16 d-registers, or both.
Definition: ARMSubtarget.h:193
llvm::ARMSubtarget::HasV6KOps
bool HasV6KOps
Definition: ARMSubtarget.h:162
llvm::ARMSubtarget::hasDSP
bool hasDSP() const
Definition: ARMSubtarget.h:707
llvm::ARMSubtarget::hasD32
bool hasD32() const
Definition: ARMSubtarget.h:721
llvm::ARMSubtarget::HasVFPv4D16
bool HasVFPv4D16
Definition: ARMSubtarget.h:198
llvm::ARMSubtarget::avoidMOVsShifterOperand
bool avoidMOVsShifterOperand() const
Definition: ARMSubtarget.h:703
llvm::ARMSubtarget::preferVMOVSR
bool preferVMOVSR() const
Definition: ARMSubtarget.h:687
llvm::ARMSubtarget::NeoverseN1
@ NeoverseN1
Definition: ARMSubtarget.h:81
llvm::ARMSubtarget::splitFramePushPop
bool splitFramePushPop(const MachineFunction &MF) const
Returns true if the frame setup is split into two separate pushes (first r0-r7,lr then r8-r11),...
Definition: ARMSubtarget.h:822
llvm::ARMSubtarget::hasLOB
bool hasLOB() const
Definition: ARMSubtarget.h:651
llvm::ARMSubtarget::isTargetMuslAEABI
bool isTargetMuslAEABI() const
Definition: ARMSubtarget.h:765
ARMConstantPoolValue.h
llvm::ARMSubtarget::HasZeroCycleZeroing
bool HasZeroCycleZeroing
If true, the instructions "vmov.i32 d0, #0" and "vmov.i32 q0, #0" are particularly effective at zeroi...
Definition: ARMSubtarget.h:371
llvm::ARMSubtarget::ARMv6sm
@ ARMv6sm
Definition: ARMSubtarget.h:108
llvm::ARMSubtarget::ARMv7ve
@ ARMv7ve
Definition: ARMSubtarget.h:114
llvm::Triple::isAndroid
bool isAndroid() const
Tests whether the target is Android.
Definition: Triple.h:673
llvm::ARMSubtarget::hasMPExtension
bool hasMPExtension() const
Definition: ARMSubtarget.h:706
MCInstrItineraries.h
llvm::ARMSubtarget::CortexA73
@ CortexA73
Definition: ARMSubtarget.h:62
llvm::Triple::isOSBinFormatELF
bool isOSBinFormatELF() const
Tests whether the OS uses the ELF binary format.
Definition: Triple.h:632
llvm::ARMSubtarget::ARMv6
@ ARMv6
Definition: ARMSubtarget.h:104
TargetMachine.h
llvm::ARMSubtarget::useSoftFloat
bool useSoftFloat() const
Definition: ARMSubtarget.h:799
llvm::ARMSubtarget::CortexR5
@ CortexR5
Definition: ARMSubtarget.h:74
llvm::ARMSubtarget::NeoverseN2
@ NeoverseN2
Definition: ARMSubtarget.h:82
llvm::ARMSubtarget::AClass
@ AClass
Definition: ARMSubtarget.h:89
llvm::ARMSubtarget::IsLittle
bool IsLittle
IsLittle - The target is Little Endian.
Definition: ARMSubtarget.h:511
llvm::ARMSubtarget::useAA
bool useAA() const override
Enable use of alias analysis during code generation (during MI scheduling, DAGCombine,...
Definition: ARMSubtarget.h:858
llvm::ARMSubtarget::useFPVMLx
bool useFPVMLx() const
Definition: ARMSubtarget.h:670
llvm::ARMSubtarget::isFPBrccSlow
bool isFPBrccSlow() const
Definition: ARMSubtarget.h:677
llvm::ARMSubtarget::isLikeA9
bool isLikeA9() const
Definition: ARMSubtarget.h:633
llvm::ARMSubtarget::SchedModel
MCSchedModel SchedModel
SchedModel - Processor specific instruction costs.
Definition: ARMSubtarget.h:517
llvm::ARMSubtarget::ARMv8r
@ ARMv8r
Definition: ARMSubtarget.h:125
llvm::Triple::isOSDarwin
bool isOSDarwin() const
isOSDarwin - Is this a "Darwin" OS (macOS, iOS, tvOS or watchOS).
Definition: Triple.h:484
llvm::ARMSubtarget::disablePostRAScheduler
bool disablePostRAScheduler() const
Definition: ARMSubtarget.h:798
llvm::ARMSubtarget::HasVFPv3
bool HasVFPv3
Definition: ARMSubtarget.h:183
llvm::ARMSubtarget::enableAtomicExpand
bool enableAtomicExpand() const override
Definition: ARMSubtarget.cpp:412
llvm::ARMSubtarget::MaxInterleaveFactor
unsigned MaxInterleaveFactor
Definition: ARMSubtarget.h:485
llvm::ARMSubtarget::isCortexM7
bool isCortexM7() const
Definition: ARMSubtarget.h:632
llvm::Legalizer
Definition: Legalizer.h:31
llvm::ARMSubtarget::isCortexA5
bool isCortexA5() const
Definition: ARMSubtarget.h:625
llvm::ARMSubtarget::HasV4TOps
bool HasV4TOps
HasV4TOps, HasV5TOps, HasV5TEOps, HasV6Ops, HasV6MOps, HasV6KOps, HasV6T2Ops, HasV7Ops,...
Definition: ARMSubtarget.h:157
llvm::ARMSubtarget::CortexA72
@ CortexA72
Definition: ARMSubtarget.h:61
llvm::ARMSubtarget::hasV6KOps
bool hasV6KOps() const
Definition: ARMSubtarget.h:601
llvm::ARMSubtarget::DisablePostRAScheduler
bool DisablePostRAScheduler
DisablePostRAScheduler - False if scheduling should happen again after register allocation.
Definition: ARMSubtarget.h:242
llvm::ARMSubtarget::hasBranchPredictor
bool hasBranchPredictor() const
Definition: ARMSubtarget.h:705
llvm::ARMSubtarget::checkVLDnAccessAlignment
bool checkVLDnAccessAlignment() const
Definition: ARMSubtarget.h:698
llvm::ARMSubtarget::useMulOps
bool useMulOps() const
Definition: ARMSubtarget.h:669
llvm::ARMSubtarget::DoubleIssue
@ DoubleIssue
Can load/store 2 registers/cycle.
Definition: ARMSubtarget.h:133
llvm::ARMSubtarget::useMovt
bool useMovt() const
Definition: ARMSubtarget.cpp:422
llvm::ARMSubtarget::isCortexA15
bool isCortexA15() const
Definition: ARMSubtarget.h:629
llvm::ARMSubtarget::hasCrypto
bool hasCrypto() const
Definition: ARMSubtarget.h:647
llvm::ARMSubtarget::isTargetHardFloat
bool isTargetHardFloat() const
Definition: ARMSubtarget.cpp:331
llvm::ARMSubtarget::nonpipelinedVFP
bool nonpipelinedVFP() const
Definition: ARMSubtarget.h:699
llvm::ARMSubtarget::ARMArchEnum
ARMArchEnum
Definition: ARMSubtarget.h:93
llvm::ARMSubtarget::ReadTPHard
bool ReadTPHard
Definition: ARMSubtarget.h:425
llvm::ARMSubtarget::isAAPCS16_ABI
bool isAAPCS16_ABI() const
Definition: ARMSubtarget.cpp:342
llvm::ARMSubtarget::CortexA55
@ CortexA55
Definition: ARMSubtarget.h:58
llvm::ARMSubtarget::HasHardwareDivideInARM
bool HasHardwareDivideInARM
HasHardwareDivideInARM - True if subtarget supports [su]div in ARM mode.
Definition: ARMSubtarget.h:285
llvm::ARMSubtarget::CheckVLDnAlign
bool CheckVLDnAlign
If true, VLDn instructions take an extra cycle for unaligned accesses.
Definition: ARMSubtarget.h:431
llvm::ARMSubtarget::HasSHA2
bool HasSHA2
HasSHA2 - if true, processor supports SHA1 and SHA256.
Definition: ARMSubtarget.h:352
llvm::ARMSubtarget::ARMv5
@ ARMv5
Definition: ARMSubtarget.h:100
llvm::ARMSubtarget::HasDSP
bool HasDSP
HasDSP - If true, the subtarget supports the DSP (saturating arith and such) instructions.
Definition: ARMSubtarget.h:447
llvm::ARMSubtarget::ExpandMLx
bool ExpandMLx
If true, run the MLx expansion pass.
Definition: ARMSubtarget.h:419
llvm::ARMSubtarget::DoubleIssueCheckUnalignedAccess
@ DoubleIssueCheckUnalignedAccess
Can load/store 2 registers/cycle, but needs an extra cycle if the access is not 64-bit aligned.
Definition: ARMSubtarget.h:136
llvm::Triple::isOSBinFormatMachO
bool isOSBinFormatMachO() const
Tests whether the environment is MachO.
Definition: Triple.h:645
llvm::ARMSubtarget::UseSoftFloat
bool UseSoftFloat
UseSoftFloat - True if we're using software floating point features.
Definition: ARMSubtarget.h:235
llvm::ARMSubtarget::HasFP16
bool HasFP16
HasFP16 - True if subtarget supports half-precision FP conversions.
Definition: ARMSubtarget.h:263
llvm::ARMSubtarget::ARMv81a
@ ARMv81a
Definition: ARMSubtarget.h:115
llvm::ARMSubtarget::DontWidenVMOVS
bool DontWidenVMOVS
If true, VMOVS will never be widened to VMOVD.
Definition: ARMSubtarget.h:413
llvm::ARMSubtarget::ARMv5tej
@ ARMv5tej
Definition: ARMSubtarget.h:103
llvm::ARMSubtarget::isTargetAEABI
bool isTargetAEABI() const
Definition: ARMSubtarget.h:755
llvm::ARMSubtarget::HasV6Ops
bool HasV6Ops
Definition: ARMSubtarget.h:160
llvm::ARMSubtarget::hasSlowOddRegister
bool hasSlowOddRegister() const
Definition: ARMSubtarget.h:691
llvm::ARMSubtarget::PrefLoopLogAlignment
unsigned PrefLoopLogAlignment
What alignment is preferred for loop bodies, in log2(bytes).
Definition: ARMSubtarget.h:499
llvm::ARMSubtarget::HasDotProd
bool HasDotProd
HasDotProd - True if the ARMv8.2A dot product instructions are supported.
Definition: ARMSubtarget.h:205
llvm::ARMSubtarget::CortexA78C
@ CortexA78C
Definition: ARMSubtarget.h:67
llvm::ARMSubtarget::ARMv4
@ ARMv4
Definition: ARMSubtarget.h:98
llvm::ARMSubtarget::enablePostRAScheduler
bool enablePostRAScheduler() const override
True for some subtargets at > -O0.
Definition: ARMSubtarget.cpp:395
llvm::ARMSubtarget::isKrait
bool isKrait() const
Definition: ARMSubtarget.h:635
llvm::ARMSubtarget::hasV6Ops
bool hasV6Ops() const
Definition: ARMSubtarget.h:599
llvm::Triple::MuslEABI
@ MuslEABI
Definition: Triple.h:219
llvm::ARMSubtarget::has8MSecExt
bool has8MSecExt() const
Definition: ARMSubtarget.h:681
Align
uint64_t Align
Definition: ELFObjHandler.cpp:83
llvm::ARMSubtarget::hasCDEOps
bool hasCDEOps() const
Definition: ARMSubtarget.h:617
llvm::ARMSubtarget::hasFP64
bool hasFP64() const
Definition: ARMSubtarget.h:678
llvm::ARMSubtarget::HasMVEIntegerOps
bool HasMVEIntegerOps
Definition: ARMSubtarget.h:176
llvm::Align
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition: Alignment.h:39
llvm::ARMSubtarget::ARMv8a
@ ARMv8a
Definition: ARMSubtarget.h:122
llvm::ARMSubtarget::HasFPARMv8
bool HasFPARMv8
Definition: ARMSubtarget.h:185
llvm::ARMSubtarget::CortexA7
@ CortexA7
Definition: ARMSubtarget.h:60
llvm::ARMSubtarget::ARMv8mBaseline
@ ARMv8mBaseline
Definition: ARMSubtarget.h:123
llvm::ARMSubtarget::HasFuseLiterals
bool HasFuseLiterals
HasFuseLiterals - if true, processor executes back to back bottom and top halves of literal generatio...
Definition: ARMSubtarget.h:382
llvm::ARMSubtarget::getMVEVectorCostFactor
unsigned getMVEVectorCostFactor(TargetTransformInfo::TargetCostKind CostKind) const
Definition: ARMSubtarget.h:916
llvm::Triple::isOSNaCl
bool isOSNaCl() const
Tests whether the OS is NaCl (Native Client)
Definition: Triple.h:590
llvm::ARMSubtarget::ARMv3
@ ARMv3
Definition: ARMSubtarget.h:96
llvm::ARMSubtarget::getRegBankInfo
const RegisterBankInfo * getRegBankInfo() const override
Definition: ARMSubtarget.cpp:139
llvm::ARMSubtarget::hasVFP3Base
bool hasVFP3Base() const
Definition: ARMSubtarget.h:641
llvm::ARMSubtarget::hasFP16
bool hasFP16() const
Definition: ARMSubtarget.h:720
llvm::ARMSubtarget::isSwift
bool isSwift() const
Definition: ARMSubtarget.h:630
llvm::ARMSubtarget::HasV6T2Ops
bool HasV6T2Ops
Definition: ARMSubtarget.h:163
llvm::ARMSubtarget::HasSlowVGETLNi32
bool HasSlowVGETLNi32
If true, VMOV will be favored over VGETLNi32.
Definition: ARMSubtarget.h:388
llvm::ARMSubtarget::ARMProcClassEnum
ARMProcClassEnum
Definition: ARMSubtarget.h:86
llvm::ARMSubtarget::HasFullFP16
bool HasFullFP16
HasFullFP16 - True if subtarget supports half-precision FP operations.
Definition: ARMSubtarget.h:266
llvm::ARMSubtarget::HasV8Ops
bool HasV8Ops
Definition: ARMSubtarget.h:165
llvm::ARMSubtarget::TargetTriple
Triple TargetTriple
TargetTriple - What processor and OS we're targeting.
Definition: ARMSubtarget.h:514
llvm::ARMSubtarget::ARMv6t2
@ ARMv6t2
Definition: ARMSubtarget.h:109
InstructionSelector.h
llvm::TargetOptions::DisableFramePointerElim
bool DisableFramePointerElim(const MachineFunction &MF) const
DisableFramePointerElim - This returns true if frame pointer elimination optimization should be disab...
Definition: TargetOptionsImpl.cpp:24
ARMSelectionDAGInfo.h
llvm::ARMSubtarget::SlowLoadDSubregister
bool SlowLoadDSubregister
If true, loading into a D subregister will be penalized.
Definition: ARMSubtarget.h:404
llvm::ARMSubtarget::hasV8_4aOps
bool hasV8_4aOps() const
Definition: ARMSubtarget.h:608
llvm::ARMSubtarget::CortexA9
@ CortexA9
Definition: ARMSubtarget.h:69
llvm::ARMSubtarget::PreferVMOVSR
bool PreferVMOVSR
If true, VMOVSR will be favored over VMOVDRR.
Definition: ARMSubtarget.h:394
llvm::ARMSubtarget::hasFPRegs16
bool hasFPRegs16() const
Definition: ARMSubtarget.h:619
llvm::ARMSubtarget::HasFPRegs16
bool HasFPRegs16
Definition: ARMSubtarget.h:188
llvm::ARMSubtarget::hardenSlsBlr
bool hardenSlsBlr() const
Definition: ARMSubtarget.h:927
llvm::ARMSubtarget::hasTrustZone
bool hasTrustZone() const
Definition: ARMSubtarget.h:680
llvm::RegisterBankInfo
Holds all the information related to register banks.
Definition: RegisterBankInfo.h:39
llvm::GlobalValue
Definition: GlobalValue.h:44
llvm::InstructionSelector
Provides the logic to select generic machine instructions.
Definition: InstructionSelector.h:423
llvm::ARMSubtarget::CheapPredicableCPSRDef
bool CheapPredicableCPSRDef
CheapPredicableCPSRDef - If true, disable +1 predication cost for instructions updating CPSR.
Definition: ARMSubtarget.h:313
ARMBaseRegisterInfo.h
MCSchedule.h
llvm::ARMSubtarget::isThumb1Only
bool isThumb1Only() const
Definition: ARMSubtarget.h:802
llvm::ARMSubtarget::getCPUString
const std::string & getCPUString() const
Definition: ARMSubtarget.h:838
llvm::ARMSubtarget::cheapPredicableCPSRDef
bool cheapPredicableCPSRDef() const
Definition: ARMSubtarget.h:702
llvm::ARMSubtarget::allowPositionIndependentMovt
bool allowPositionIndependentMovt() const
Allow movt+movw for PIC global address calculation.
Definition: ARMSubtarget.h:909
llvm::ARMSubtarget::isRClass
bool isRClass() const
Definition: ARMSubtarget.h:806
llvm::ARMSubtarget::hasMuxedUnits
bool hasMuxedUnits() const
Definition: ARMSubtarget.h:694
llvm::ARMSubtarget::preferISHSTBarriers
bool preferISHSTBarriers() const
Definition: ARMSubtarget.h:688
llvm::ARMSubtarget::InstrItins
InstrItineraryData InstrItins
Selected instruction itineraries (one entry per itinerary class.)
Definition: ARMSubtarget.h:520
llvm::ARMSubtarget::hasZeroCycleZeroing
bool hasZeroCycleZeroing() const
Definition: ARMSubtarget.h:682
llvm::ARMSubtarget::LdStMultipleTiming
ARMLdStMultipleTiming LdStMultipleTiming
What kind of timing do load multiple/store multiple have (double issue, single issue etc).
Definition: ARMSubtarget.h:492
llvm::ARMSubtarget::ARMv82a
@ ARMv82a
Definition: ARMSubtarget.h:116
llvm::ARMSubtarget::hasPerfMon
bool hasPerfMon() const
Definition: ARMSubtarget.h:679
llvm::ARMSubtarget::prefers32BitThumb
bool prefers32BitThumb() const
Definition: ARMSubtarget.h:700
llvm::ARMSubtarget::hasFPAO
bool hasFPAO() const
Definition: ARMSubtarget.h:683
llvm::ARMSubtarget::HasV8_6aOps
bool HasV8_6aOps
Definition: ARMSubtarget.h:171
llvm::ARMSubtarget::ARMSubtarget
ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS, const ARMBaseTargetMachine &TM, bool IsLittle, bool MinSize=false)
This constructor initializes the data members to match that of the specified triple.
Definition: ARMSubtarget.cpp:96
llvm::ARMSubtarget::isR9Reserved
bool isR9Reserved() const
Definition: ARMSubtarget.h:810
llvm::ARMSubtarget::getLdStMultipleTiming
ARMLdStMultipleTiming getLdStMultipleTiming() const
Definition: ARMSubtarget.h:878
llvm::ARMSubtarget::CortexA75
@ CortexA75
Definition: ARMSubtarget.h:63
llvm::ARMSubtarget::GenExecuteOnly
bool GenExecuteOnly
Generate code that does not contain data access to code sections.
Definition: ARMSubtarget.h:456
llvm::ARMSubtarget::isTargetNetBSD
bool isTargetNetBSD() const
Definition: ARMSubtarget.h:741
llvm::ARMSubtarget::isMClass
bool isMClass() const
Definition: ARMSubtarget.h:805
llvm::ARMSubtarget::stackAlignment
Align stackAlignment
stackAlignment - The minimum alignment known to hold of the stack frame on entry to the function and ...
Definition: ARMSubtarget.h:480
llvm::ARMSubtarget::HasV6MOps
bool HasV6MOps
Definition: ARMSubtarget.h:161
llvm::ARMSubtarget::avoidCPSRPartialUpdate
bool avoidCPSRPartialUpdate() const
Definition: ARMSubtarget.h:701
llvm::ARMSubtarget::HasBranchPredictor
bool HasBranchPredictor
HasBranchPredictor - True if the subtarget has a branch predictor.
Definition: ARMSubtarget.h:326
llvm::ARMSubtarget::initializeSubtargetDependencies
ARMSubtarget & initializeSubtargetDependencies(StringRef CPU, StringRef FS)
initializeSubtargetDependencies - Initializes using a CPU and feature string so that we can use initi...
Definition: ARMSubtarget.cpp:80
llvm::ARMSubtarget::InThumbMode
bool InThumbMode
InThumbMode - True if compiling for Thumb, false for ARM.
Definition: ARMSubtarget.h:232
llvm::ARMSubtarget::SlowFPVFMx
bool SlowFPVFMx
SlowFPVFMx - If the VFP4 / NEON instructions are available, indicates whether the FP VFM[AS] instruct...
Definition: ARMSubtarget.h:222
llvm::ARMSubtarget::isProfitableToUnpredicate
bool isProfitableToUnpredicate() const
Definition: ARMSubtarget.h:684
llvm::ARMSubtarget::HasHardwareDivideInThumb
bool HasHardwareDivideInThumb
HasHardwareDivide - True if subtarget supports [su]div in Thumb mode.
Definition: ARMSubtarget.h:282
llvm::ARMBaseInstrInfo
Definition: ARMBaseInstrInfo.h:37
llvm::ARMSubtarget::isTargetIOS
bool isTargetIOS() const
Definition: ARMSubtarget.h:736
llvm::ARMSubtarget::dontWidenVMOVS
bool dontWidenVMOVS() const
Definition: ARMSubtarget.h:695
llvm::Triple::isWatchABI
bool isWatchABI() const
Definition: Triple.h:477
llvm::ARMSubtarget::CPUString
std::string CPUString
CPUString - String name of used CPU.
Definition: ARMSubtarget.h:483
llvm::ARMSubtarget::isTargetELF
bool isTargetELF() const
Definition: ARMSubtarget.h:745
llvm::ARMSubtarget::hasV7Ops
bool hasV7Ops() const
Definition: ARMSubtarget.h:603
llvm::ARMSubtarget::NoMovt
bool NoMovt
NoMovt - True if MOVT / MOVW pairs are not used for materialization of 32-bit imms (including global ...
Definition: ARMSubtarget.h:255
llvm::ARMSubtarget::useSplatVFPToNeon
bool useSplatVFPToNeon() const
Definition: ARMSubtarget.h:696
llvm::ARMSubtarget::MVEVectorCostFactor
unsigned MVEVectorCostFactor
The cost factor for MVE instructions, representing the multiple beats an.
Definition: ARMSubtarget.h:504
llvm::ARMSubtarget::Options
const TargetOptions & Options
Options passed via command line that could influence the target.
Definition: ARMSubtarget.h:523
llvm::ARMSubtarget::RestrictIT
bool RestrictIT
RestrictIT - If true, the subtarget disallows generation of deprecated IT blocks to conform to ARMv8 ...
Definition: ARMSubtarget.h:443
llvm::ARMSubtarget::hasDataBarrier
bool hasDataBarrier() const
Definition: ARMSubtarget.h:660
llvm::ARMSubtarget::getFrameLowering
const ARMFrameLowering * getFrameLowering() const override
Definition: ARMSubtarget.h:561
llvm::ARMSubtarget::isTargetCOFF
bool isTargetCOFF() const
Definition: ARMSubtarget.h:744
llvm::TargetMachine::Options
TargetOptions Options
Definition: TargetMachine.h:115
llvm::ARMSubtarget::isROPI
bool isROPI() const
Definition: ARMSubtarget.cpp:347
llvm::ARMSubtarget::useNaClTrap
bool useNaClTrap() const
Definition: ARMSubtarget.h:708
llvm::ARMFrameLowering
Definition: ARMFrameLowering.h:21
llvm::ARMSubtarget::CortexA77
@ CortexA77
Definition: ARMSubtarget.h:65
llvm::ARMSubtarget::hasSlowLoadDSubregister
bool hasSlowLoadDSubregister() const
Definition: ARMSubtarget.h:692
ARMBaseInstrInfo.h
llvm::ARMSubtarget::ARMv4t
@ ARMv4t
Definition: ARMSubtarget.h:99
llvm::ARMSubtarget::hasFullFP16
bool hasFullFP16() const
Definition: ARMSubtarget.h:722
llvm::ARMSubtarget::enablePostRAMachineScheduler
bool enablePostRAMachineScheduler() const override
True for some subtargets at > -O0.
Definition: ARMSubtarget.cpp:404
llvm::ARMSubtarget::allowsUnalignedMem
bool allowsUnalignedMem() const
Definition: ARMSubtarget.h:834
llvm::ARMSubtarget::CortexM3
@ CortexM3
Definition: ARMSubtarget.h:70
llvm::ARMSubtarget::ARMv7em
@ ARMv7em
Definition: ARMSubtarget.h:111
llvm::ARMSubtarget::useNEONForSinglePrecisionFP
bool useNEONForSinglePrecisionFP() const
Definition: ARMSubtarget.h:654
llvm::ARMSubtarget::isLittle
bool isLittle() const
Definition: ARMSubtarget.h:840
llvm::ARMSubtarget::ARMv81mMainline
@ ARMv81mMainline
Definition: ARMSubtarget.h:126
llvm::ARMSubtarget::useFastISel
bool useFastISel() const
True if fast-isel is used.
Definition: ARMSubtarget.cpp:430
llvm::ARMSubtarget::ARMv3m
@ ARMv3m
Definition: ARMSubtarget.h:97
llvm::ARMSubtarget::UnsafeFPMath
bool UnsafeFPMath
Target machine allowed unsafe FP math (such as use of NEON fp)
Definition: ARMSubtarget.h:459
llvm::ARMSubtarget::HasFP64
bool HasFP64
HasFP64 - If true, the floating point unit supports double precision.
Definition: ARMSubtarget.h:338
llvm::MachineFunction
Definition: MachineFunction.h:230
llvm::ARMSubtarget::Exynos
@ Exynos
Definition: ARMSubtarget.h:78
llvm::ARMSubtarget::HasV8_7aOps
bool HasV8_7aOps
Definition: ARMSubtarget.h:172
llvm::ARMSubtarget::None
@ None
Definition: ARMSubtarget.h:87
llvm::ARMSubtarget::hasV7Clrex
bool hasV7Clrex() const
Definition: ARMSubtarget.h:662
Triple.h
llvm::ARMSubtarget::hasV8_2aOps
bool hasV8_2aOps() const
Definition: ARMSubtarget.h:606
llvm::ARMSubtarget::HasCRC
bool HasCRC
HasCRC - if true, processor supports CRC instructions.
Definition: ARMSubtarget.h:361
llvm::ARMSubtarget::ARMv6k
@ ARMv6k
Definition: ARMSubtarget.h:105
llvm::ARMSubtarget::HasFP16FML
bool HasFP16FML
HasFP16FML - True if subtarget supports half-precision FP fml operations.
Definition: ARMSubtarget.h:269
llvm::ARMSubtarget::hasDotProd
bool hasDotProd() const
Definition: ARMSubtarget.h:648
TargetOptions.h
llvm::ARMSubtarget::NonpipelinedVFP
bool NonpipelinedVFP
If true, VFP instructions are not pipelined.
Definition: ARMSubtarget.h:434
llvm::ARMSubtarget::getCallLowering
const CallLowering * getCallLowering() const override
Definition: ARMSubtarget.cpp:127
llvm::ARMSubtarget::SlowFPVMLx
bool SlowFPVMLx
SlowFPVMLx - If the VFP2 / NEON instructions are available, indicates whether the FP VML[AS] instruct...
Definition: ARMSubtarget.h:218
llvm::ARMSubtarget::hasNEON
bool hasNEON() const
Definition: ARMSubtarget.h:644
llvm::ARMSubtarget::getRegisterInfo
const ARMBaseRegisterInfo * getRegisterInfo() const override
Definition: ARMSubtarget.h:565
llvm::ARMSubtarget::hasMatMulInt8
bool hasMatMulInt8() const
Definition: ARMSubtarget.h:731
llvm::ARMSubtarget::hasVMLxHazards
bool hasVMLxHazards() const
Definition: ARMSubtarget.h:690
llvm::ARMSubtarget::CortexR4F
@ CortexR4F
Definition: ARMSubtarget.h:73
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:57
llvm::ARMSubtarget::useMachineScheduler
bool useMachineScheduler() const
Definition: ARMSubtarget.h:797
llvm::ARMSubtarget::hasCRC
bool hasCRC() const
Definition: ARMSubtarget.h:649
llvm::ARMSubtarget::ARMv87a
@ ARMv87a
Definition: ARMSubtarget.h:121
llvm::ARMSubtarget::hasRetAddrStack
bool hasRetAddrStack() const
Definition: ARMSubtarget.h:704
llvm::ARMSubtarget::HasVFPv3D16SP
bool HasVFPv3D16SP
Definition: ARMSubtarget.h:200
llvm::ARMSubtarget::PartialUpdateClearance
unsigned PartialUpdateClearance
Clearance before partial register updates (in number of instructions)
Definition: ARMSubtarget.h:488
CostKind
static cl::opt< TargetTransformInfo::TargetCostKind > CostKind("cost-kind", cl::desc("Target cost kind"), cl::init(TargetTransformInfo::TCK_RecipThroughput), cl::values(clEnumValN(TargetTransformInfo::TCK_RecipThroughput, "throughput", "Reciprocal throughput"), clEnumValN(TargetTransformInfo::TCK_Latency, "latency", "Instruction latency"), clEnumValN(TargetTransformInfo::TCK_CodeSize, "code-size", "Code size"), clEnumValN(TargetTransformInfo::TCK_SizeAndLatency, "size-latency", "Code size and latency")))
llvm::ARMSubtarget::ARMv2a
@ ARMv2a
Definition: ARMSubtarget.h:95
TargetSubtargetInfo.h
llvm::ARMSubtarget::getInstructionSelector
InstructionSelector * getInstructionSelector() const override
Definition: ARMSubtarget.cpp:131
llvm::ARMSubtarget::UseNEONForSinglePrecisionFP
bool UseNEONForSinglePrecisionFP
UseNEONForSinglePrecisionFP - if the NEONFP attribute has been specified.
Definition: ARMSubtarget.h:210
llvm::ARMSubtarget::useFPVFMx64
bool useFPVFMx64() const
Definition: ARMSubtarget.h:675
llvm::Triple::isiOS
bool isiOS() const
Is this an iOS triple.
Definition: Triple.h:463
llvm::ARMSubtarget::getMaxInterleaveFactor
unsigned getMaxInterleaveFactor() const
Definition: ARMSubtarget.h:874
llvm::ARMSubtarget::isCortexA7
bool isCortexA7() const
Definition: ARMSubtarget.h:626
llvm::ARMSubtarget::ARMProcClass
ARMProcClassEnum ARMProcClass
ARMProcClass - ARM processor class: None, AClass, RClass or MClass.
Definition: ARMSubtarget.h:149
llvm::ARMSubtarget::HasV8_2aOps
bool HasV8_2aOps
Definition: ARMSubtarget.h:167
llvm::ARMSubtarget::hasVirtualization
bool hasVirtualization() const
Definition: ARMSubtarget.h:652
llvm::ARMSubtarget::CortexA15
@ CortexA15
Definition: ARMSubtarget.h:52
llvm::ARMSubtarget::hasV4TOps
bool hasV4TOps() const
Definition: ARMSubtarget.h:596
llvm::ARMSubtarget::ARMv86a
@ ARMv86a
Definition: ARMSubtarget.h:120
llvm::Triple::isWatchOS
bool isWatchOS() const
Is this an Apple watchOS triple.
Definition: Triple.h:473
llvm::ARMSelectionDAGInfo
Definition: ARMSelectionDAGInfo.h:38
llvm::ARMSubtarget::PreISelOperandLatencyAdjustment
int PreISelOperandLatencyAdjustment
The adjustment that we need to apply to get the operand latency from the operand cycle returned by th...
Definition: ARMSubtarget.h:496
llvm::ARMSubtarget::isCortexA9
bool isCortexA9() const
Definition: ARMSubtarget.h:628
llvm::ARMSubtarget::isTargetWindows
bool isTargetWindows() const
Definition: ARMSubtarget.h:742
llvm::ARMSubtarget::HasD32
bool HasD32
HasD32 - True if subtarget has the full 32 double precision FP registers for VFPv3.
Definition: ARMSubtarget.h:279
llvm::ARMSubtarget::isGVInGOT
bool isGVInGOT(const GlobalValue *GV) const
Returns the constant pool modifier needed to access the GV.
Definition: ARMSubtarget.cpp:370
llvm::ARMSubtarget::ARMv5t
@ ARMv5t
Definition: ARMSubtarget.h:101
llvm::ARMBaseRegisterInfo
Definition: ARMBaseRegisterInfo.h:100
llvm::Triple::isOSWindows
bool isOSWindows() const
Tests whether the OS is Windows.
Definition: Triple.h:547
llvm::ARMSubtarget::ignoreCSRForAllocationOrder
bool ignoreCSRForAllocationOrder(const MachineFunction &MF, unsigned PhysReg) const override
Definition: ARMSubtarget.cpp:476
llvm::ARMSubtarget::AvoidMOVsShifterOperand
bool AvoidMOVsShifterOperand
AvoidMOVsShifterOperand - If true, codegen should avoid using flag setting movs with shifter operand ...
Definition: ARMSubtarget.h:317
llvm::ARMSubtarget::Swift
@ Swift
Definition: ARMSubtarget.h:84
llvm::ARMSubtarget::CortexR4
@ CortexR4
Definition: ARMSubtarget.h:72
llvm::ARMSubtarget::CortexR52
@ CortexR52
Definition: ARMSubtarget.h:75
llvm::ARMSubtarget::UseMulOps
bool UseMulOps
UseMulOps - True if non-microcoded fused integer multiply-add and multiply-subtract instructions shou...
Definition: ARMSubtarget.h:214
llvm::ARMSubtarget::ARMv8mMainline
@ ARMv8mMainline
Definition: ARMSubtarget.h:124
llvm::ARMSubtarget::ARMArch
ARMArchEnum ARMArch
ARMArch - ARM architecture.
Definition: ARMSubtarget.h:152
llvm::ARMSubtarget::hasFPRegs
bool hasFPRegs() const
Definition: ARMSubtarget.h:618
ARMFrameLowering.h
llvm::ARMSubtarget::isTargetDarwin
bool isTargetDarwin() const
Definition: ARMSubtarget.h:735
llvm::ARMSubtarget::Krait
@ Krait
Definition: ARMSubtarget.h:79
llvm::ARMSubtarget::UseWideStrideVFP
bool UseWideStrideVFP
If true, use a wider stride when allocating VFP registers.
Definition: ARMSubtarget.h:407
llvm::MachineFunction::getTarget
const LLVMTargetMachine & getTarget() const
getTarget - Return the target machine this machine code is compiled with
Definition: MachineFunction.h:554
llvm::ARMSubtarget::HasV8_4aOps
bool HasV8_4aOps
Definition: ARMSubtarget.h:169
llvm::ARMSubtarget::isCortexR5
bool isCortexR5() const
Definition: ARMSubtarget.h:634
llvm::ARMSubtarget::isAPCS_ABI
bool isAPCS_ABI() const
Definition: ARMSubtarget.cpp:333
llvm::ARMSubtarget::SingleIssue
@ SingleIssue
Can load/store 1 register/cycle.
Definition: ARMSubtarget.h:138
llvm::ARMSubtarget::isTargetMachO
bool isTargetMachO() const
Definition: ARMSubtarget.h:746
llvm::ARMSubtarget::HasV7Clrex
bool HasV7Clrex
HasV7Clrex - True if the subtarget supports CLREX instructions.
Definition: ARMSubtarget.h:296
llvm::ARMSubtarget::useFPVFMx16
bool useFPVFMx16() const
Definition: ARMSubtarget.h:674
llvm::ARMSubtarget::HasFPAO
bool HasFPAO
HasFPAO - if true, processor does positive address offset computation faster.
Definition: ARMSubtarget.h:374
llvm::ARMSubtarget::AvoidCPSRPartialUpdate
bool AvoidCPSRPartialUpdate
AvoidCPSRPartialUpdate - If true, codegen would avoid using instructions that partially update CPSR a...
Definition: ARMSubtarget.h:309
llvm::ARMSubtarget::isAAPCS_ABI
bool isAAPCS_ABI() const
Definition: ARMSubtarget.cpp:337
llvm::ARMSubtarget::NeoverseV1
@ NeoverseV1
Definition: ARMSubtarget.h:83
llvm::ARMSubtarget::Others
@ Others
Definition: ARMSubtarget.h:49
llvm::ARMSubtarget::HasMPExtension
bool HasMPExtension
HasMPExtension - True if the subtarget supports Multiprocessing extension (ARMv7 only).
Definition: ARMSubtarget.h:330
llvm::MCSchedModel
Machine model for scheduling, bundling, and heuristics.
Definition: MCSchedule.h:245
llvm::ARMSubtarget::HasVFPv4
bool HasVFPv4
Definition: ARMSubtarget.h:184
llvm::ARMSubtarget::CortexX1
@ CortexX1
Definition: ARMSubtarget.h:77
llvm::ARMSubtarget::hasV8_1MMainlineOps
bool hasV8_1MMainlineOps() const
Definition: ARMSubtarget.h:614
llvm::ARMSubtarget::HasVFPv4D16SP
bool HasVFPv4D16SP
Definition: ARMSubtarget.h:201
llvm::ARMSubtarget::hasV8_1aOps
bool hasV8_1aOps() const
Definition: ARMSubtarget.h:605
llvm::ARMSubtarget::SingleIssuePlusExtras
@ SingleIssuePlusExtras
Can load/store 1 register/cycle, but needs an extra cycle for address computation and potentially als...
Definition: ARMSubtarget.h:141
llvm::ARMSubtarget::UseNEONForFPMovs
bool UseNEONForFPMovs
If true, VMOVRS, VMOVSR and VMOVS will be converted from VFP to NEON.
Definition: ARMSubtarget.h:428
llvm::ARMSubtarget::hasVFP4Base
bool hasVFP4Base() const
Definition: ARMSubtarget.h:642
llvm::ARMSubtarget::HasMuxedUnits
bool HasMuxedUnits
If true, the AGU and NEON/FPU units are multiplexed.
Definition: ARMSubtarget.h:410
llvm::ARMSubtarget::ARMv6m
@ ARMv6m
Definition: ARMSubtarget.h:107
llvm::ARMSubtarget::MClass
@ MClass
Definition: ARMSubtarget.h:90
llvm::ARMSubtarget::CortexA8
@ CortexA8
Definition: ARMSubtarget.h:68
llvm::ARMSubtarget::HasV8_5aOps
bool HasV8_5aOps
Definition: ARMSubtarget.h:170
llvm::ARMSubtarget::HardenSlsRetBr
bool HardenSlsRetBr
Harden against Straight Line Speculation for Returns and Indirect Branches.
Definition: ARMSubtarget.h:473
ARMISelLowering.h
llvm::ARMSubtarget::ARMv5te
@ ARMv5te
Definition: ARMSubtarget.h:102
llvm::ARMSubtarget::CortexA12
@ CortexA12
Definition: ARMSubtarget.h:51
llvm::ARMSubtarget::hasV8MMainlineOps
bool hasV8MMainlineOps() const
Definition: ARMSubtarget.h:613
llvm::ARMSubtarget::HasVFPv3D16
bool HasVFPv3D16
Definition: ARMSubtarget.h:197
llvm::ARMSubtarget::CortexA76
@ CortexA76
Definition: ARMSubtarget.h:64
llvm::Triple::isOSNetBSD
bool isOSNetBSD() const
Definition: Triple.h:502
llvm::ARMSubtarget::IsProfitableToUnpredicate
bool IsProfitableToUnpredicate
If true, if conversion may decide to leave some instructions unpredicated.
Definition: ARMSubtarget.h:385
llvm::ARMSubtarget::ReserveR9
bool ReserveR9
ReserveR9 - True if R9 is not available as a general purpose register.
Definition: ARMSubtarget.h:251
llvm::ARMSubtarget::isTargetEHABICompatible
bool isTargetEHABICompatible() const
Definition: ARMSubtarget.h:773
llvm::ARMSubtarget::CortexA35
@ CortexA35
Definition: ARMSubtarget.h:55
llvm::ARMSubtarget::HasDataBarrier
bool HasDataBarrier
HasDataBarrier - True if the subtarget supports DMB / DSB data barrier instructions.
Definition: ARMSubtarget.h:289
llvm::ARMSubtarget::CortexA78
@ CortexA78
Definition: ARMSubtarget.h:66
llvm::ARMSubtarget::hasMinSize
bool hasMinSize() const
Definition: ARMSubtarget.h:801
llvm::ARMSubtarget::CortexA53
@ CortexA53
Definition: ARMSubtarget.h:57
TargetTransformInfo.h
llvm::ARMSubtarget::hasAcquireRelease
bool hasAcquireRelease() const
Definition: ARMSubtarget.h:663
llvm::ARMSubtarget::SlowOddRegister
bool SlowOddRegister
If true, a VLDM/VSTM starting with an odd register number is considered to take more microops than si...
Definition: ARMSubtarget.h:401
llvm::ARMSubtarget::restrictIT
bool restrictIT() const
Definition: ARMSubtarget.h:836
llvm::ARMSubtarget::isGVIndirectSymbol
bool isGVIndirectSymbol(const GlobalValue *GV) const
True if the GV will be accessed via an indirect symbol.
Definition: ARMSubtarget.cpp:356
llvm::ARMSubtarget::hasV8MBaselineOps
bool hasV8MBaselineOps() const
Definition: ARMSubtarget.h:612
llvm::Triple::getEnvironment
EnvironmentType getEnvironment() const
getEnvironment - Get the parsed environment type of this triple.
Definition: Triple.h:325
llvm::ARMSubtarget::ARMv85a
@ ARMv85a
Definition: ARMSubtarget.h:119
llvm::Triple::EABIHF
@ EABIHF
Definition: Triple.h:216
llvm::ARMSubtarget::CortexA5
@ CortexA5
Definition: ARMSubtarget.h:56
llvm::LegalizerInfo
Definition: LegalizerInfo.h:1041
llvm::Triple::GNUEABIHF
@ GNUEABIHF
Definition: Triple.h:211
llvm::ARMSubtarget::UseNaClTrap
bool UseNaClTrap
NaCl TRAP instruction is generated instead of the regular TRAP.
Definition: ARMSubtarget.h:450
llvm::ARMSubtarget::HasFPRegs
bool HasFPRegs
Definition: ARMSubtarget.h:187
llvm::ARMSubtarget::CortexA32
@ CortexA32
Definition: ARMSubtarget.h:54
llvm::ARMSubtarget::isThumb2
bool isThumb2() const
Definition: ARMSubtarget.h:803
llvm::ARMSubtarget::hasFuseAES
bool hasFuseAES() const
Definition: ARMSubtarget.h:726
llvm::ARMSubtarget::getPrefLoopLogAlignment
unsigned getPrefLoopLogAlignment() const
Definition: ARMSubtarget.h:913
llvm::ARMSubtarget::getGPRAllocationOrder
unsigned getGPRAllocationOrder(const MachineFunction &MF) const
Definition: ARMSubtarget.cpp:445
llvm::ARMSubtarget::HasMatMulInt8
bool HasMatMulInt8
HasMatMulInt8 - True if subtarget supports 8-bit integer matrix multiply.
Definition: ARMSubtarget.h:275
llvm::ARMSubtarget::HasV7Ops
bool HasV7Ops
Definition: ARMSubtarget.h:164
llvm::ARMSubtarget::useWideStrideVFP
bool useWideStrideVFP() const
Definition: ARMSubtarget.h:693
llvm::ARMSubtarget::HasPerfMon
bool HasPerfMon
If true, the processor supports the Performance Monitor Extensions.
Definition: ARMSubtarget.h:343
MachineFunction.h
llvm::ARMSubtarget::hasV5TEOps
bool hasV5TEOps() const
Definition: ARMSubtarget.h:598
llvm::ARMSubtarget::hasV8_7aOps
bool hasV8_7aOps() const
Definition: ARMSubtarget.h:611
llvm::Triple::EABI
@ EABI
Definition: Triple.h:215
llvm::ARMSubtarget::hasDivideInThumbMode
bool hasDivideInThumbMode() const
Definition: ARMSubtarget.h:658
llvm::CallLowering
Definition: CallLowering.h:43
llvm::ARMSubtarget::isTargetNaCl
bool isTargetNaCl() const
Definition: ARMSubtarget.h:740
llvm::ARMSubtarget::HasFPARMv8D16SP
bool HasFPARMv8D16SP
Definition: ARMSubtarget.h:202
llvm::ARMSubtarget::isXRaySupported
bool isXRaySupported() const override
Definition: ARMSubtarget.cpp:143
llvm::InstrItineraryData
Itinerary data supplied by a subtarget to be used by a target.
Definition: MCInstrItineraries.h:109
llvm::ARMSubtarget::isCortexA8
bool isCortexA8() const
Definition: ARMSubtarget.h:627
llvm::ARMSubtarget::SplatVFPToNeon
bool SplatVFPToNeon
If true, splat a register between VFP and NEON instructions.
Definition: ARMSubtarget.h:416
llvm::ARMSubtarget::isTargetGNUAEABI
bool isTargetGNUAEABI() const
Definition: ARMSubtarget.h:760
llvm::ARMSubtarget::hasAnyDataBarrier
bool hasAnyDataBarrier() const
Definition: ARMSubtarget.h:665
llvm::ARMSubtarget::hasFullDataBarrier
bool hasFullDataBarrier() const
Definition: ARMSubtarget.h:661
llvm::ARMSubtarget::HasSB
bool HasSB
Has speculation barrier.
Definition: ARMSubtarget.h:465
llvm::ARMSubtarget::useStride4VFPs
bool useStride4VFPs() const
Definition: ARMSubtarget.cpp:414
llvm::ARMSubtarget::hasFuseLiterals
bool hasFuseLiterals() const
Definition: ARMSubtarget.h:727
llvm::ARMSubtarget::hasVFP2Base
bool hasVFP2Base() const
Definition: ARMSubtarget.h:640
llvm::ARMSubtarget::getReturnOpcode
unsigned getReturnOpcode() const
Returns the correct return opcode for the current feature set.
Definition: ARMSubtarget.h:898
llvm::ARMSubtarget::genExecuteOnly
bool genExecuteOnly() const
Definition: ARMSubtarget.h:712
llvm::ARMSubtarget::HasLOB
bool HasLOB
HasLOB - if true, the processor supports the Low Overhead Branch extension.
Definition: ARMSubtarget.h:367
llvm::ARMSubtarget::isThumb
bool isThumb() const
Definition: ARMSubtarget.h:800
llvm::ARMSubtarget::hasV8Ops
bool hasV8Ops() const
Definition: ARMSubtarget.h:604
llvm::ARMSubtarget::HasFPRegs64
bool HasFPRegs64
Definition: ARMSubtarget.h:189
llvm::ARMSubtarget::HasV5TOps
bool HasV5TOps
Definition: ARMSubtarget.h:158
llvm::ARMSubtarget::HasV8MBaselineOps
bool HasV8MBaselineOps
Definition: ARMSubtarget.h:173
llvm::ARMSubtarget::ARMv6kz
@ ARMv6kz
Definition: ARMSubtarget.h:106