LLVM 20.0.0git
|
#include "llvm/Support/CodeGen.h"
#include "llvm/Support/Discriminator.h"
#include "llvm/CodeGen/RegAllocCommon.h"
#include <functional>
#include <string>
Go to the source code of this file.
Namespaces | |
namespace | llvm |
This is an optimization pass for GlobalISel generic memory operations. | |
namespace | llvm::vfs |
Functions | |
FunctionPass * | llvm::createAtomicExpandLegacyPass () |
AtomicExpandPass - At IR level this pass replace atomic instructions with __atomic_* library calls, or target specific instruction which implement the same semantics in a way which better fits the target backend. | |
FunctionPass * | llvm::createUnreachableBlockEliminationPass () |
createUnreachableBlockEliminationPass - The LLVM code generator does not work well with unreachable basic blocks (what live ranges make sense for a block that cannot be reached?). | |
MachineFunctionPass * | llvm::createGCEmptyBasicBlocksPass () |
createGCEmptyBasicblocksPass - Empty basic blocks (basic blocks without real code) appear as the result of optimization passes removing instructions. | |
MachineFunctionPass * | llvm::createBasicBlockSectionsPass () |
createBasicBlockSections Pass - This pass assigns sections to machine basic blocks and is enabled with -fbasic-block-sections. | |
MachineFunctionPass * | llvm::createBasicBlockPathCloningPass () |
MachineFunctionPass * | llvm::createMachineFunctionSplitterPass () |
createMachineFunctionSplitterPass - This pass splits machine functions using profile information. | |
MachineFunctionPass * | llvm::createMachineFunctionPrinterPass (raw_ostream &OS, const std::string &Banner="") |
MachineFunctionPrinter pass - This pass prints out the machine function to the given stream as a debugging tool. | |
MachineFunctionPass * | llvm::createStackFrameLayoutAnalysisPass () |
StackFramePrinter pass - This pass prints out the machine function's stack frame to the given stream as a debugging tool. | |
MachineFunctionPass * | llvm::createPrintMIRPass (raw_ostream &OS) |
MIRPrinting pass - this pass prints out the LLVM IR into the given stream using the MIR serialization format. | |
MachineFunctionPass * | llvm::createResetMachineFunctionPass (bool EmitFallbackDiag, bool AbortOnFailedISel) |
This pass resets a MachineFunction when it has the FailedISel property as if it was just created. | |
FunctionPass * | llvm::createCodeGenPrepareLegacyPass () |
createCodeGenPrepareLegacyPass - Transform the code to expose more pattern matching during instruction selection. | |
FunctionPass * | llvm::createComplexDeinterleavingPass (const TargetMachine *TM) |
This pass implements generation of target-specific intrinsics to support handling of complex number arithmetic. | |
FunctionPass * | llvm::createVirtRegRewriter (bool ClearVirtRegs=true) |
FunctionPass * | llvm::createFastRegisterAllocator () |
FastRegisterAllocation Pass - This pass register allocates as fast as possible. | |
FunctionPass * | llvm::createFastRegisterAllocator (RegAllocFilterFunc F, bool ClearVirtRegs) |
FunctionPass * | llvm::createBasicRegisterAllocator () |
BasicRegisterAllocation Pass - This pass implements a degenerate global register allocator using the basic regalloc framework. | |
FunctionPass * | llvm::createBasicRegisterAllocator (RegAllocFilterFunc F) |
FunctionPass * | llvm::createGreedyRegisterAllocator () |
Greedy register allocation pass - This pass implements a global register allocator for optimized builds. | |
FunctionPass * | llvm::createGreedyRegisterAllocator (RegAllocFilterFunc F) |
FunctionPass * | llvm::createDefaultPBQPRegisterAllocator () |
PBQPRegisterAllocation Pass - This pass implements the Partitioned Boolean Quadratic Prograaming (PBQP) based register allocator. | |
MachineFunctionPass * | llvm::createPrologEpilogInserterPass () |
FunctionPass * | llvm::createIfConverter (std::function< bool(const MachineFunction &)> Ftor) |
FunctionPass * | llvm::createGCLoweringPass () |
GCLowering Pass - Used by gc.root to perform its default lowering operations. | |
FunctionPass * | llvm::createShadowStackGCLoweringPass () |
ShadowStackGCLowering - Implements the custom lowering mechanism used by the shadow stack GC. | |
MachineFunctionPass * | llvm::createMachineCopyPropagationPass (bool UseCopyInstr) |
FunctionPass * | llvm::createStackProtectorPass () |
createStackProtectorPass - This pass adds stack protectors to functions. | |
FunctionPass * | llvm::createMachineVerifierPass (const std::string &Banner) |
createMachineVerifierPass - This pass verifies cenerated machine code instructions for correctness. | |
FunctionPass * | llvm::createDwarfEHPass (CodeGenOptLevel OptLevel) |
createDwarfEHPass - This pass mulches exception handling code into a form adapted to code generation. | |
FunctionPass * | llvm::createWinEHPass (bool DemoteCatchSwitchPHIOnly=false) |
createWinEHPass - Prepares personality functions used by MSVC on Windows, in addition to the Itanium LSDA based personalities. | |
FunctionPass * | llvm::createSjLjEHPreparePass (const TargetMachine *TM) |
createSjLjEHPreparePass - This pass adapts exception handling code to use the GCC-style builtin setjmp/longjmp (sjlj) to handling EH control flow. | |
FunctionPass * | llvm::createWasmEHPass () |
createWasmEHPass - This pass adapts exception handling code to use WebAssembly's exception handling scheme. | |
FunctionPass * | llvm::createUnpackMachineBundles (std::function< bool(const MachineFunction &)> Ftor) |
FunctionPass * | llvm::createInterleavedAccessPass () |
InterleavedAccess Pass - This pass identifies and matches interleaved memory accesses to target specific intrinsics. | |
FunctionPass * | llvm::createInterleavedLoadCombinePass () |
InterleavedLoadCombines Pass - This pass identifies interleaved loads and combines them into wide loads detectable by InterleavedAccessPass. | |
ModulePass * | llvm::createLowerEmuTLSPass () |
LowerEmuTLS - This pass generates __emutls_[vt].xyz variables for all TLS variables for the emulated TLS model. | |
ModulePass * | llvm::createPreISelIntrinsicLoweringPass () |
This pass lowers the @llvm.load.relative and @llvm.objc. | |
Pass * | llvm::createGlobalMergePass (const TargetMachine *TM, unsigned MaximalOffset, bool OnlyOptimizeForSize=false, bool MergeExternalByDefault=false, bool MergeConstantByDefault=false) |
GlobalMerge - This pass merges internal (by default) globals into structs to enable reuse of a base pointer by indexed addressing modes. | |
FunctionPass * | llvm::createSafeStackPass () |
This pass splits the stack into a safe stack and an unsafe stack to protect against stack-based overflow vulnerabilities. | |
FunctionPass * | llvm::createRegUsageInfoCollector () |
This pass is executed POST-RA to collect which physical registers are preserved by given machine function. | |
FunctionPass * | llvm::createRegUsageInfoPropPass () |
Return a MachineFunction pass that identifies call sites and propagates register usage information of callee to caller if available with PysicalRegisterUsageInfo pass. | |
FunctionPass * | llvm::createFreeMachineFunctionPass () |
This pass frees the memory occupied by the MachineFunction. | |
ModulePass * | llvm::createMachineOutlinerPass (bool RunOnAllFunctions=true) |
This pass performs outlining on machine instructions directly before printing assembly. | |
FunctionPass * | llvm::createExpandReductionsPass () |
This pass expands the reduction intrinsics into sequences of shuffles. | |
FunctionPass * | llvm::createReplaceWithVeclibLegacyPass () |
FunctionPass * | llvm::createExpandLargeDivRemPass () |
FunctionPass * | llvm::createExpandLargeFpConvertPass () |
FunctionPass * | llvm::createExpandMemCmpLegacyPass () |
FunctionPass * | llvm::createBreakFalseDeps () |
Creates Break False Dependencies pass. | |
FunctionPass * | llvm::createIndirectBrExpandPass () |
FunctionPass * | llvm::createCFIFixup () |
Creates CFI Fixup pass. | |
FunctionPass * | llvm::createCFIInstrInserter () |
Creates CFI Instruction Inserter pass. | |
FunctionPass * | llvm::createCFGuardLongjmpPass () |
Creates CFGuard longjmp target identification pass. | |
FunctionPass * | llvm::createEHContGuardCatchretPass () |
Creates EHContGuard catchret target identification pass. | |
FunctionPass * | llvm::createHardwareLoopsLegacyPass () |
Create Hardware Loop pass. | |
FunctionPass * | llvm::createPseudoProbeInserter () |
This pass inserts pseudo probe annotation for callsite profiling. | |
FunctionPass * | llvm::createTypePromotionLegacyPass () |
Create IR Type Promotion pass. | |
FunctionPass * | llvm::createMIRAddFSDiscriminatorsPass (sampleprof::FSDiscriminatorPass P) |
Add Flow Sensitive Discriminators. | |
FunctionPass * | llvm::createMIRProfileLoaderPass (std::string File, std::string RemappingFile, sampleprof::FSDiscriminatorPass P, IntrusiveRefCntPtr< vfs::FileSystem > FS) |
Read Flow Sensitive Profile. | |
ModulePass * | llvm::createDebugifyMachineModulePass () |
Creates MIR Debugify pass. | |
ModulePass * | llvm::createStripDebugMachineModulePass (bool OnlyDebugified) |
Creates MIR Strip Debug pass. | |
ModulePass * | llvm::createCheckDebugMachineModulePass () |
Creates MIR Check Debug pass. | |
FunctionPass * | llvm::createX86LowerAMXTypePass () |
The pass transforms load/store <256 x i32> to AMX load/store intrinsics or split the data to two <128 x i32>. | |
FunctionPass * | llvm::createX86LowerAMXIntrinsicsPass () |
The pass transforms amx intrinsics to scalar operation if the function has optnone attribute or it is O0. | |
FunctionPass * | llvm::createRegAllocScoringPass () |
When learning an eviction policy, extract score(reward) information, otherwise this does nothing. | |
ModulePass * | llvm::createJMCInstrumenterPass () |
JMC instrument pass. | |
FunctionPass * | llvm::createSelectOptimizePass () |
This pass converts conditional moves to conditional jumps when profitable. | |
FunctionPass * | llvm::createCallBrPass () |
FunctionPass * | llvm::createKCFIPass () |
Lowers KCFI operand bundles for indirect calls. | |
Variables | |
char & | llvm::AtomicExpandID = AtomicExpandLegacy::ID |
AtomicExpandID – Lowers atomic operations in terms of either cmpxchg load-linked/store-conditional loops. | |
char & | llvm::MachineLoopInfoID = MachineLoopInfoWrapperPass::ID |
MachineLoopInfo - This pass is a loop analysis pass. | |
char & | llvm::MachineDominatorsID = MachineDominatorTreeWrapperPass::ID |
MachineDominators - This pass is a machine dominators analysis pass. | |
char & | llvm::MachineDominanceFrontierID = MachineDominanceFrontier::ID |
MachineDominanaceFrontier - This pass is a machine dominators analysis. | |
char & | llvm::MachineRegionInfoPassID |
MachineRegionInfo - This pass computes SESE regions for machine functions. | |
char & | llvm::EdgeBundlesID |
EdgeBundles analysis - Bundle machine CFG edges. | |
char & | llvm::LiveVariablesID = LiveVariablesWrapperPass::ID |
LiveVariables pass - This pass computes the set of blocks in which each variable is life and sets machine operand kill flags. | |
char & | llvm::PHIEliminationID = PHIElimination::ID |
PHIElimination - This pass eliminates machine instruction PHI nodes by inserting copy instructions. | |
char & | llvm::LiveIntervalsID = LiveIntervalsWrapperPass::ID |
LiveIntervals - This analysis keeps track of the live ranges of virtual and physical registers. | |
char & | llvm::LiveStacksID = LiveStacks::ID |
LiveStacks pass. An analysis keeping track of the liveness of stack slots. | |
char & | llvm::TwoAddressInstructionPassID = TwoAddressInstructionLegacyPass::ID |
TwoAddressInstruction - This pass reduces two-address instructions to use two operands. | |
char & | llvm::ProcessImplicitDefsID = ProcessImplicitDefs::ID |
ProcessImpicitDefs pass - This pass removes IMPLICIT_DEFs. | |
char & | llvm::RegisterCoalescerID = RegisterCoalescer::ID |
RegisterCoalescer - This pass merges live ranges to eliminate copies. | |
char & | llvm::MachineSchedulerID = MachineScheduler::ID |
MachineScheduler - This pass schedules machine instructions. | |
char & | llvm::PostMachineSchedulerID = PostMachineScheduler::ID |
PostMachineScheduler - This pass schedules machine instructions postRA. | |
char & | llvm::SpillPlacementID = SpillPlacement::ID |
SpillPlacement analysis. | |
char & | llvm::ShrinkWrapID = ShrinkWrap::ID |
ShrinkWrap pass. Look for the best place to insert save and restore. | |
char & | llvm::LiveRangeShrinkID = LiveRangeShrink::ID |
LiveRangeShrink pass. | |
char & | llvm::RAGreedyID = RAGreedy::ID |
Greedy register allocator. | |
char & | llvm::RABasicID = RABasic::ID |
Basic register allocator. | |
char & | llvm::VirtRegRewriterID = VirtRegRewriter::ID |
VirtRegRewriter pass. | |
char & | llvm::UnreachableMachineBlockElimID |
UnreachableMachineBlockElimination - This pass removes unreachable machine basic blocks. | |
char & | llvm::DeadMachineInstructionElimID = DeadMachineInstructionElim::ID |
DeadMachineInstructionElim - This pass removes dead machine instructions. | |
char & | llvm::DetectDeadLanesID = DetectDeadLanes::ID |
This pass adds dead/undef flags after analyzing subregister lanes. | |
char & | llvm::PostRAMachineSinkingID = PostRAMachineSinking::ID |
This pass perform post-ra machine sink for COPY instructions. | |
char & | llvm::MIRAddFSDiscriminatorsID |
This pass adds flow sensitive discriminators. | |
char & | llvm::MIRProfileLoaderPassID = MIRProfileLoaderPass::ID |
This pass reads flow sensitive profile. | |
char & | llvm::InitUndefID = InitUndef::ID |
char & | llvm::PrologEpilogCodeInserterID = PEI::ID |
PrologEpilogCodeInserter - This pass inserts prolog and epilog code, and eliminates abstract frame references. | |
char & | llvm::ExpandPostRAPseudosID = ExpandPostRA::ID |
ExpandPostRAPseudos - This pass expands pseudo instructions after register allocation. | |
char & | llvm::PostRAHazardRecognizerID = PostRAHazardRecognizer::ID |
PostRAHazardRecognizer - This pass runs the post-ra hazard recognizer. | |
char & | llvm::PostRASchedulerID = PostRAScheduler::ID |
PostRAScheduler - This pass performs post register allocation scheduling. | |
char & | llvm::BranchFolderPassID = BranchFolderPass::ID |
BranchFolding - This pass performs machine code CFG based optimizations to delete branches to branches, eliminate branches to successor blocks (creating fall throughs), and eliminating branches over branches. | |
char & | llvm::BranchRelaxationPassID = BranchRelaxation::ID |
BranchRelaxation - This pass replaces branches that need to jump further than is supported by a branch instruction. | |
char & | llvm::MachineFunctionPrinterPassID = MachineFunctionPrinterPass::ID |
MachineFunctionPrinterPass - This pass prints out MachineInstr's. | |
char & | llvm::MIRPrintingPassID = MIRPrintingPass::ID |
MIRPrintingPass - this pass prints out the LLVM IR using the MIR serialization format. | |
char & | llvm::TailDuplicateID = TailDuplicate::ID |
TailDuplicate - Duplicate blocks with unconditional branches into tails of their predecessors. | |
char & | llvm::EarlyTailDuplicateID = EarlyTailDuplicate::ID |
Duplicate blocks with unconditional branches into tails of their predecessors. | |
char & | llvm::MachineTraceMetricsID = MachineTraceMetrics::ID |
MachineTraceMetrics - This pass computes critical path and CPU resource usage in an ensemble of traces. | |
char & | llvm::EarlyIfConverterID = EarlyIfConverter::ID |
EarlyIfConverter - This pass performs if-conversion on SSA form by inserting cmov instructions. | |
char & | llvm::EarlyIfPredicatorID = EarlyIfPredicator::ID |
EarlyIfPredicator - This pass performs if-conversion on SSA form by predicating if/else block and insert select at the join point. | |
char & | llvm::MachineCombinerID = MachineCombiner::ID |
This pass performs instruction combining using trace metrics to estimate critical-path and resource depth. | |
char & | llvm::StackColoringID = StackColoring::ID |
StackSlotColoring - This pass performs stack coloring and merging. | |
char & | llvm::StackFrameLayoutAnalysisPassID = StackFrameLayoutAnalysisPass::ID |
StackFramePrinter - This pass prints the stack frame layout and variable mappings. | |
char & | llvm::IfConverterID = IfConverter::ID |
IfConverter - This pass performs machine code if conversion. | |
char & | llvm::MachineBlockPlacementID = MachineBlockPlacement::ID |
MachineBlockPlacement - This pass places basic blocks based on branch probabilities. | |
char & | llvm::MachineBlockPlacementStatsID = MachineBlockPlacementStats::ID |
MachineBlockPlacementStats - This pass collects statistics about the basic block placement using branch probabilities and block frequency information. | |
char & | llvm::GCLoweringID = LowerIntrinsics::ID |
GCLowering Pass - Used by gc.root to perform its default lowering operations. | |
char & | llvm::ShadowStackGCLoweringID = ShadowStackGCLowering::ID |
ShadowStackGCLowering - Implements the custom lowering mechanism used by the shadow stack GC. | |
char & | llvm::GCMachineCodeAnalysisID = GCMachineCodeAnalysis::ID |
GCMachineCodeAnalysis - Target-independent pass to mark safe points in machine code. | |
char & | llvm::MachineCSEID = MachineCSE::ID |
MachineCSE - This pass performs global CSE on machine instructions. | |
char & | llvm::MIRCanonicalizerID = MIRCanonicalizer::ID |
MIRCanonicalizer - This pass canonicalizes MIR by renaming vregs according to the semantics of the instruction as well as hoists code. | |
char & | llvm::ImplicitNullChecksID = ImplicitNullChecks::ID |
ImplicitNullChecks - This pass folds null pointer checks into nearby memory operations. | |
char & | llvm::MachineLICMID = MachineLICM::ID |
This pass performs loop invariant code motion on machine instructions. | |
char & | llvm::EarlyMachineLICMID = EarlyMachineLICM::ID |
This pass performs loop invariant code motion on machine instructions. | |
char & | llvm::MachineSinkingID = MachineSinking::ID |
MachineSinking - This pass performs sinking on machine instructions. | |
char & | llvm::MachineCopyPropagationID = MachineCopyPropagation::ID |
MachineCopyPropagation - This pass performs copy propagation on machine instructions. | |
char & | llvm::MachineLateInstrsCleanupID = MachineLateInstrsCleanup::ID |
MachineLateInstrsCleanup - This pass removes redundant identical instructions after register allocation and rematerialization. | |
char & | llvm::PeepholeOptimizerID = PeepholeOptimizer::ID |
PeepholeOptimizer - This pass performs peephole optimizations - like extension and comparison eliminations. | |
char & | llvm::OptimizePHIsID = OptimizePHIs::ID |
OptimizePHIs - This pass optimizes machine instruction PHIs to take advantage of opportunities created during DAG legalization. | |
char & | llvm::StackSlotColoringID = StackSlotColoring::ID |
StackSlotColoring - This pass performs stack slot coloring. | |
char & | llvm::FuncletLayoutID = FuncletLayout::ID |
This pass lays out funclets contiguously. | |
char & | llvm::XRayInstrumentationID = XRayInstrumentation::ID |
This pass inserts the XRay instrumentation sleds if they are supported by the target platform. | |
char & | llvm::FEntryInserterID = FEntryInserter::ID |
This pass inserts FEntry calls. | |
char & | llvm::PatchableFunctionID = PatchableFunction::ID |
This pass implements the "patchable-function" attribute. | |
char & | llvm::LocalStackSlotAllocationID = LocalStackSlotPass::ID |
LocalStackSlotAllocation - This pass assigns local frame indices to stack slots relative to one another and allocates base registers to access them when it is estimated by the target to be out of range of normal frame pointer or stack pointer index addressing. | |
char & | llvm::FinalizeISelID = FinalizeISel::ID |
This pass expands pseudo-instructions, reserves registers and adjusts machine frame information. | |
char & | llvm::UnpackMachineBundlesID = UnpackMachineBundles::ID |
UnpackMachineBundles - This pass unpack machine instruction bundles. | |
char & | llvm::FinalizeMachineBundlesID = FinalizeMachineBundles::ID |
FinalizeMachineBundles - This pass finalize machine instruction bundles (created earlier, e.g. | |
char & | llvm::StackMapLivenessID = StackMapLiveness::ID |
StackMapLiveness - This pass analyses the register live-out set of stackmap/patchpoint intrinsics and attaches the calculated information to the intrinsic for later emission to the StackMap. | |
char & | llvm::MachineSanitizerBinaryMetadataID |
char & | llvm::RemoveRedundantDebugValuesID = RemoveRedundantDebugValues::ID |
RemoveRedundantDebugValues pass. | |
char & | llvm::MachineCFGPrinterID = MachineCFGPrinter::ID |
MachineCFGPrinter pass. | |
char & | llvm::LiveDebugValuesID = LiveDebugValues::ID |
LiveDebugValues pass. | |
char & | llvm::RenameIndependentSubregsID = RenameIndependentSubregs::ID |
This pass detects subregister lanes in a virtual register that are used independently of other lanes and splits them into separate virtual registers. | |
char & | llvm::MachinePipelinerID = MachinePipeliner::ID |
This pass performs software pipelining on machine instructions. | |
char & | llvm::FixupStatepointCallerSavedID = FixupStatepointCallerSaved::ID |
The pass fixups statepoint machine instruction to replace usage of caller saved registers with stack slots. | |