LLVM  14.0.0git
Functions | Variables
AArch64TargetMachine.cpp File Reference
#include "AArch64TargetMachine.h"
#include "AArch64.h"
#include "AArch64MachineFunctionInfo.h"
#include "AArch64MacroFusion.h"
#include "AArch64Subtarget.h"
#include "AArch64TargetObjectFile.h"
#include "AArch64TargetTransformInfo.h"
#include "MCTargetDesc/AArch64MCTargetDesc.h"
#include "TargetInfo/AArch64TargetInfo.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/CodeGen/CSEConfigBase.h"
#include "llvm/CodeGen/GlobalISel/IRTranslator.h"
#include "llvm/CodeGen/GlobalISel/InstructionSelect.h"
#include "llvm/CodeGen/GlobalISel/Legalizer.h"
#include "llvm/CodeGen/GlobalISel/Localizer.h"
#include "llvm/CodeGen/GlobalISel/RegBankSelect.h"
#include "llvm/CodeGen/MIRParser/MIParser.h"
#include "llvm/CodeGen/MachineScheduler.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/TargetPassConfig.h"
#include "llvm/IR/Attributes.h"
#include "llvm/IR/Function.h"
#include "llvm/InitializePasses.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCTargetOptions.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Pass.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Transforms/CFGuard.h"
#include "llvm/Transforms/Scalar.h"
#include <memory>
#include <string>
Include dependency graph for AArch64TargetMachine.cpp:

Go to the source code of this file.

Functions

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAArch64Target ()
 
static std::unique_ptr< TargetLoweringObjectFilecreateTLOF (const Triple &TT)
 
static std::string computeDataLayout (const Triple &TT, const MCTargetOptions &Options, bool LittleEndian)
 
static StringRef computeDefaultCPU (const Triple &TT, StringRef CPU)
 
static Reloc::Model getEffectiveRelocModel (const Triple &TT, Optional< Reloc::Model > RM)
 
static CodeModel::Model getEffectiveAArch64CodeModel (const Triple &TT, Optional< CodeModel::Model > CM, bool JIT)
 

Variables

static cl::opt< bool > EnableCCMP ("aarch64-enable-ccmp", cl::desc("Enable the CCMP formation pass"), cl::init(true), cl::Hidden)
 
static cl::opt< bool > EnableCondBrTuning ("aarch64-enable-cond-br-tune", cl::desc("Enable the conditional branch tuning pass"), cl::init(true), cl::Hidden)
 
static cl::opt< bool > EnableMCR ("aarch64-enable-mcr", cl::desc("Enable the machine combiner pass"), cl::init(true), cl::Hidden)
 
static cl::opt< bool > EnableStPairSuppress ("aarch64-enable-stp-suppress", cl::desc("Suppress STP for AArch64"), cl::init(true), cl::Hidden)
 
static cl::opt< bool > EnableAdvSIMDScalar ("aarch64-enable-simd-scalar", cl::desc("Enable use of AdvSIMD scalar integer instructions"), cl::init(false), cl::Hidden)
 
static cl::opt< bool > EnablePromoteConstant ("aarch64-enable-promote-const", cl::desc("Enable the promote constant pass"), cl::init(true), cl::Hidden)
 
static cl::opt< bool > EnableCollectLOH ("aarch64-enable-collect-loh", cl::desc("Enable the pass that emits the linker optimization hints (LOH)"), cl::init(true), cl::Hidden)
 
static cl::opt< bool > EnableDeadRegisterElimination ("aarch64-enable-dead-defs", cl::Hidden, cl::desc("Enable the pass that removes dead" " definitons and replaces stores to" " them with stores to the zero" " register"), cl::init(true))
 
static cl::opt< bool > EnableRedundantCopyElimination ("aarch64-enable-copyelim", cl::desc("Enable the redundant copy elimination pass"), cl::init(true), cl::Hidden)
 
static cl::opt< bool > EnableLoadStoreOpt ("aarch64-enable-ldst-opt", cl::desc("Enable the load/store pair" " optimization pass"), cl::init(true), cl::Hidden)
 
static cl::opt< bool > EnableAtomicTidy ("aarch64-enable-atomic-cfg-tidy", cl::Hidden, cl::desc("Run SimplifyCFG after expanding atomic operations" " to make use of cmpxchg flow-based information"), cl::init(true))
 
static cl::opt< bool > EnableEarlyIfConversion ("aarch64-enable-early-ifcvt", cl::Hidden, cl::desc("Run early if-conversion"), cl::init(true))
 
static cl::opt< bool > EnableCondOpt ("aarch64-enable-condopt", cl::desc("Enable the condition optimizer pass"), cl::init(true), cl::Hidden)
 
static cl::opt< bool > EnableA53Fix835769 ("aarch64-fix-cortex-a53-835769", cl::Hidden, cl::desc("Work around Cortex-A53 erratum 835769"), cl::init(false))
 
static cl::opt< bool > EnableGEPOpt ("aarch64-enable-gep-opt", cl::Hidden, cl::desc("Enable optimizations on complex GEPs"), cl::init(false))
 
static cl::opt< bool > BranchRelaxation ("aarch64-enable-branch-relax", cl::Hidden, cl::init(true), cl::desc("Relax out of range conditional branches"))
 
static cl::opt< bool > EnableCompressJumpTables ("aarch64-enable-compress-jump-tables", cl::Hidden, cl::init(true), cl::desc("Use smallest entry possible for jump tables"))
 
static cl::opt< cl::boolOrDefaultEnableGlobalMerge ("aarch64-enable-global-merge", cl::Hidden, cl::desc("Enable the global merge pass"))
 
static cl::opt< bool > EnableLoopDataPrefetch ("aarch64-enable-loop-data-prefetch", cl::Hidden, cl::desc("Enable the loop data prefetch pass"), cl::init(true))
 
static cl::opt< intEnableGlobalISelAtO ("aarch64-enable-global-isel-at-O", cl::Hidden, cl::desc("Enable GlobalISel at or below an opt level (-1 to disable)"), cl::init(0))
 
static cl::opt< bool > EnableSVEIntrinsicOpts ("aarch64-enable-sve-intrinsic-opts", cl::Hidden, cl::desc("Enable SVE intrinsic opts"), cl::init(true))
 
static cl::opt< bool > EnableFalkorHWPFFix ("aarch64-enable-falkor-hwpf-fix", cl::init(true), cl::Hidden)
 
static cl::opt< bool > EnableBranchTargets ("aarch64-enable-branch-targets", cl::Hidden, cl::desc("Enable the AArch64 branch target pass"), cl::init(true))
 
static cl::opt< unsigned > SVEVectorBitsMaxOpt ("aarch64-sve-vector-bits-max", cl::desc("Assume SVE vector registers are at most this big, " "with zero meaning no maximum size is assumed."), cl::init(0), cl::Hidden)
 
static cl::opt< unsigned > SVEVectorBitsMinOpt ("aarch64-sve-vector-bits-min", cl::desc("Assume SVE vector registers are at least this big, " "with zero meaning no minimum size is assumed."), cl::init(0), cl::Hidden)
 
cl::opt< bool > EnableHomogeneousPrologEpilog
 

Function Documentation

◆ computeDataLayout()

static std::string computeDataLayout ( const Triple TT,
const MCTargetOptions Options,
bool  LittleEndian 
)
static

Definition at line 232 of file AArch64TargetMachine.cpp.

References llvm::Triple::aarch64_32, and llvm::Triple::GNUILP32.

◆ computeDefaultCPU()

static StringRef computeDefaultCPU ( const Triple TT,
StringRef  CPU 
)
static

Definition at line 248 of file AArch64TargetMachine.cpp.

References llvm::StringRef::empty().

◆ createTLOF()

static std::unique_ptr<TargetLoweringObjectFile> createTLOF ( const Triple TT)
static

Definition at line 222 of file AArch64TargetMachine.cpp.

◆ getEffectiveAArch64CodeModel()

static CodeModel::Model getEffectiveAArch64CodeModel ( const Triple TT,
Optional< CodeModel::Model CM,
bool  JIT 
)
static

◆ getEffectiveRelocModel()

static Reloc::Model getEffectiveRelocModel ( const Triple TT,
Optional< Reloc::Model RM 
)
static

◆ LLVMInitializeAArch64Target()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAArch64Target ( )

Definition at line 178 of file AArch64TargetMachine.cpp.

References llvm::PassRegistry::getPassRegistry(), llvm::getTheAArch64_32Target(), llvm::getTheAArch64beTarget(), llvm::getTheAArch64leTarget(), llvm::getTheARM64_32Target(), llvm::getTheARM64Target(), llvm::initializeAArch64A53Fix835769Pass(), llvm::initializeAArch64A57FPLoadBalancingPass(), llvm::initializeAArch64AdvSIMDScalarPass(), llvm::initializeAArch64BranchTargetsPass(), llvm::initializeAArch64CollectLOHPass(), llvm::initializeAArch64CompressJumpTablesPass(), llvm::initializeAArch64ConditionalComparesPass(), llvm::initializeAArch64ConditionOptimizerPass(), llvm::initializeAArch64DeadRegisterDefinitionsPass(), llvm::initializeAArch64ExpandPseudoPass(), llvm::initializeAArch64LoadStoreOptPass(), llvm::initializeAArch64LowerHomogeneousPrologEpilogPass(), llvm::initializeAArch64MIPeepholeOptPass(), llvm::initializeAArch64O0PreLegalizerCombinerPass(), llvm::initializeAArch64PostLegalizerCombinerPass(), llvm::initializeAArch64PostLegalizerLoweringPass(), llvm::initializeAArch64PostSelectOptimizePass(), llvm::initializeAArch64PreLegalizerCombinerPass(), llvm::initializeAArch64PromoteConstantPass(), llvm::initializeAArch64RedundantCopyEliminationPass(), llvm::initializeAArch64SIMDInstrOptPass(), llvm::initializeAArch64SLSHardeningPass(), llvm::initializeAArch64SpeculationHardeningPass(), llvm::initializeAArch64StackTaggingPass(), llvm::initializeAArch64StackTaggingPreRAPass(), llvm::initializeAArch64StorePairSuppressPass(), llvm::initializeFalkorHWPFFixPass(), llvm::initializeFalkorMarkStridedAccessesLegacyPass(), llvm::initializeGlobalISel(), llvm::initializeLDTLSCleanupPass(), llvm::initializeSVEIntrinsicOptsPass(), llvm::RISCVFenceField::W, X, and Y.

Variable Documentation

◆ BranchRelaxation

cl::opt<bool> BranchRelaxation("aarch64-enable-branch-relax", cl::Hidden, cl::init(true), cl::desc("Relax out of range conditional branches"))
static

◆ EnableA53Fix835769

cl::opt<bool> EnableA53Fix835769("aarch64-fix-cortex-a53-835769", cl::Hidden, cl::desc("Work around Cortex-A53 erratum 835769"), cl::init(false))
static

◆ EnableAdvSIMDScalar

cl::opt<bool> EnableAdvSIMDScalar("aarch64-enable-simd-scalar", cl::desc("Enable use of AdvSIMD scalar integer instructions"), cl::init(false), cl::Hidden)
static

◆ EnableAtomicTidy

cl::opt<bool> EnableAtomicTidy("aarch64-enable-atomic-cfg-tidy", cl::Hidden, cl::desc("Run SimplifyCFG after expanding atomic operations" " to make use of cmpxchg flow-based information"), cl::init(true))
static

◆ EnableBranchTargets

cl::opt<bool> EnableBranchTargets("aarch64-enable-branch-targets", cl::Hidden, cl::desc("Enable the AArch64 branch target pass"), cl::init(true))
static

◆ EnableCCMP

cl::opt<bool> EnableCCMP("aarch64-enable-ccmp", cl::desc("Enable the CCMP formation pass"), cl::init(true), cl::Hidden)
static

◆ EnableCollectLOH

cl::opt<bool> EnableCollectLOH("aarch64-enable-collect-loh", cl::desc("Enable the pass that emits the linker optimization hints (LOH)"), cl::init(true), cl::Hidden)
static

◆ EnableCompressJumpTables

cl::opt<bool> EnableCompressJumpTables("aarch64-enable-compress-jump-tables", cl::Hidden, cl::init(true), cl::desc("Use smallest entry possible for jump tables"))
static

◆ EnableCondBrTuning

cl::opt<bool> EnableCondBrTuning("aarch64-enable-cond-br-tune", cl::desc("Enable the conditional branch tuning pass"), cl::init(true), cl::Hidden)
static

◆ EnableCondOpt

cl::opt<bool> EnableCondOpt("aarch64-enable-condopt", cl::desc("Enable the condition optimizer pass"), cl::init(true), cl::Hidden)
static

◆ EnableDeadRegisterElimination

cl::opt<bool> EnableDeadRegisterElimination("aarch64-enable-dead-defs", cl::Hidden, cl::desc("Enable the pass that removes dead" " definitons and replaces stores to" " them with stores to the zero" " register"), cl::init(true))
static

◆ EnableEarlyIfConversion

cl::opt<bool> EnableEarlyIfConversion("aarch64-enable-early-ifcvt", cl::Hidden, cl::desc("Run early if-conversion"), cl::init(true))
static

◆ EnableFalkorHWPFFix

cl::opt<bool> EnableFalkorHWPFFix("aarch64-enable-falkor-hwpf-fix", cl::init(true), cl::Hidden)
static

◆ EnableGEPOpt

cl::opt<bool> EnableGEPOpt("aarch64-enable-gep-opt", cl::Hidden, cl::desc("Enable optimizations on complex GEPs"), cl::init(false))
static

◆ EnableGlobalISelAtO

cl::opt<int> EnableGlobalISelAtO("aarch64-enable-global-isel-at-O", cl::Hidden, cl::desc("Enable GlobalISel at or below an opt level (-1 to disable)"), cl::init(0))
static

◆ EnableGlobalMerge

cl::opt<cl::boolOrDefault> EnableGlobalMerge("aarch64-enable-global-merge", cl::Hidden, cl::desc("Enable the global merge pass"))
static

◆ EnableHomogeneousPrologEpilog

cl::opt<bool> EnableHomogeneousPrologEpilog

◆ EnableLoadStoreOpt

cl::opt<bool> EnableLoadStoreOpt("aarch64-enable-ldst-opt", cl::desc("Enable the load/store pair" " optimization pass"), cl::init(true), cl::Hidden)
static

◆ EnableLoopDataPrefetch

cl::opt<bool> EnableLoopDataPrefetch("aarch64-enable-loop-data-prefetch", cl::Hidden, cl::desc("Enable the loop data prefetch pass"), cl::init(true))
static

◆ EnableMCR

cl::opt<bool> EnableMCR("aarch64-enable-mcr", cl::desc("Enable the machine combiner pass"), cl::init(true), cl::Hidden)
static

◆ EnablePromoteConstant

cl::opt<bool> EnablePromoteConstant("aarch64-enable-promote-const", cl::desc("Enable the promote constant pass"), cl::init(true), cl::Hidden)
static

◆ EnableRedundantCopyElimination

cl::opt<bool> EnableRedundantCopyElimination("aarch64-enable-copyelim", cl::desc("Enable the redundant copy elimination pass"), cl::init(true), cl::Hidden)
static

◆ EnableStPairSuppress

cl::opt<bool> EnableStPairSuppress("aarch64-enable-stp-suppress", cl::desc("Suppress STP for AArch64"), cl::init(true), cl::Hidden)
static

◆ EnableSVEIntrinsicOpts

cl::opt<bool> EnableSVEIntrinsicOpts("aarch64-enable-sve-intrinsic-opts", cl::Hidden, cl::desc("Enable SVE intrinsic opts"), cl::init(true))
static

◆ SVEVectorBitsMaxOpt

cl::opt<unsigned> SVEVectorBitsMaxOpt("aarch64-sve-vector-bits-max", cl::desc("Assume SVE vector registers are at most this big, " "with zero meaning no maximum size is assumed."), cl::init(0), cl::Hidden)
static

◆ SVEVectorBitsMinOpt

cl::opt<unsigned> SVEVectorBitsMinOpt("aarch64-sve-vector-bits-min", cl::desc("Assume SVE vector registers are at least this big, " "with zero meaning no minimum size is assumed."), cl::init(0), cl::Hidden)
static