LLVM  10.0.0svn
Passes.h
Go to the documentation of this file.
1 //===-- Passes.h - Target independent code generation passes ----*- 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 defines interfaces to access the target independent code generation
10 // passes provided by the LLVM backend.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_CODEGEN_PASSES_H
15 #define LLVM_CODEGEN_PASSES_H
16 
17 #include <functional>
18 #include <string>
19 
20 namespace llvm {
21 
22 class FunctionPass;
23 class MachineFunction;
24 class MachineFunctionPass;
25 class ModulePass;
26 class Pass;
27 class TargetMachine;
28 class TargetRegisterClass;
29 class raw_ostream;
30 
31 } // End llvm namespace
32 
33 /// List of target independent CodeGen pass IDs.
34 namespace llvm {
35  FunctionPass *createAtomicExpandPass();
36 
37  /// createUnreachableBlockEliminationPass - The LLVM code generator does not
38  /// work well with unreachable basic blocks (what live ranges make sense for a
39  /// block that cannot be reached?). As such, a code generator should either
40  /// not instruction select unreachable blocks, or run this pass as its
41  /// last LLVM modifying pass to clean up blocks that are not reachable from
42  /// the entry block.
44 
45  /// MachineFunctionPrinter pass - This pass prints out the machine function to
46  /// the given stream as a debugging tool.
47  MachineFunctionPass *
48  createMachineFunctionPrinterPass(raw_ostream &OS,
49  const std::string &Banner ="");
50 
51  /// MIRPrinting pass - this pass prints out the LLVM IR into the given stream
52  /// using the MIR serialization format.
53  MachineFunctionPass *createPrintMIRPass(raw_ostream &OS);
54 
55  /// This pass resets a MachineFunction when it has the FailedISel property
56  /// as if it was just created.
57  /// If EmitFallbackDiag is true, the pass will emit a
58  /// DiagnosticInfoISelFallback for every MachineFunction it resets.
59  /// If AbortOnFailedISel is true, abort compilation instead of resetting.
60  MachineFunctionPass *createResetMachineFunctionPass(bool EmitFallbackDiag,
61  bool AbortOnFailedISel);
62 
63  /// createCodeGenPreparePass - Transform the code to expose more pattern
64  /// matching during instruction selection.
65  FunctionPass *createCodeGenPreparePass();
66 
67  /// createScalarizeMaskedMemIntrinPass - Replace masked load, store, gather
68  /// and scatter intrinsics with scalar code when target doesn't support them.
69  FunctionPass *createScalarizeMaskedMemIntrinPass();
70 
71  /// AtomicExpandID -- Lowers atomic operations in terms of either cmpxchg
72  /// load-linked/store-conditional loops.
73  extern char &AtomicExpandID;
74 
75  /// MachineLoopInfo - This pass is a loop analysis pass.
76  extern char &MachineLoopInfoID;
77 
78  /// MachineDominators - This pass is a machine dominators analysis pass.
79  extern char &MachineDominatorsID;
80 
81 /// MachineDominanaceFrontier - This pass is a machine dominators analysis pass.
82  extern char &MachineDominanceFrontierID;
83 
84  /// MachineRegionInfo - This pass computes SESE regions for machine functions.
85  extern char &MachineRegionInfoPassID;
86 
87  /// EdgeBundles analysis - Bundle machine CFG edges.
88  extern char &EdgeBundlesID;
89 
90  /// LiveVariables pass - This pass computes the set of blocks in which each
91  /// variable is life and sets machine operand kill flags.
92  extern char &LiveVariablesID;
93 
94  /// PHIElimination - This pass eliminates machine instruction PHI nodes
95  /// by inserting copy instructions. This destroys SSA information, but is the
96  /// desired input for some register allocators. This pass is "required" by
97  /// these register allocator like this: AU.addRequiredID(PHIEliminationID);
98  extern char &PHIEliminationID;
99 
100  /// LiveIntervals - This analysis keeps track of the live ranges of virtual
101  /// and physical registers.
102  extern char &LiveIntervalsID;
103 
104  /// LiveStacks pass. An analysis keeping track of the liveness of stack slots.
105  extern char &LiveStacksID;
106 
107  /// TwoAddressInstruction - This pass reduces two-address instructions to
108  /// use two operands. This destroys SSA information but it is desired by
109  /// register allocators.
110  extern char &TwoAddressInstructionPassID;
111 
112  /// ProcessImpicitDefs pass - This pass removes IMPLICIT_DEFs.
113  extern char &ProcessImplicitDefsID;
114 
115  /// RegisterCoalescer - This pass merges live ranges to eliminate copies.
116  extern char &RegisterCoalescerID;
117 
118  /// MachineScheduler - This pass schedules machine instructions.
119  extern char &MachineSchedulerID;
120 
121  /// PostMachineScheduler - This pass schedules machine instructions postRA.
122  extern char &PostMachineSchedulerID;
123 
124  /// SpillPlacement analysis. Suggest optimal placement of spill code between
125  /// basic blocks.
126  extern char &SpillPlacementID;
127 
128  /// ShrinkWrap pass. Look for the best place to insert save and restore
129  // instruction and update the MachineFunctionInfo with that information.
130  extern char &ShrinkWrapID;
131 
132  /// LiveRangeShrink pass. Move instruction close to its definition to shrink
133  /// the definition's live range.
134  extern char &LiveRangeShrinkID;
135 
136  /// Greedy register allocator.
137  extern char &RAGreedyID;
138 
139  /// Basic register allocator.
140  extern char &RABasicID;
141 
142  /// VirtRegRewriter pass. Rewrite virtual registers to physical registers as
143  /// assigned in VirtRegMap.
144  extern char &VirtRegRewriterID;
145 
146  /// UnreachableMachineBlockElimination - This pass removes unreachable
147  /// machine basic blocks.
148  extern char &UnreachableMachineBlockElimID;
149 
150  /// DeadMachineInstructionElim - This pass removes dead machine instructions.
151  extern char &DeadMachineInstructionElimID;
152 
153  /// This pass adds dead/undef flags after analyzing subregister lanes.
154  extern char &DetectDeadLanesID;
155 
156  /// This pass perform post-ra machine sink for COPY instructions.
157  extern char &PostRAMachineSinkingID;
158 
159  /// FastRegisterAllocation Pass - This pass register allocates as fast as
160  /// possible. It is best suited for debug code where live ranges are short.
161  ///
162  FunctionPass *createFastRegisterAllocator();
163 
164  /// BasicRegisterAllocation Pass - This pass implements a degenerate global
165  /// register allocator using the basic regalloc framework.
166  ///
167  FunctionPass *createBasicRegisterAllocator();
168 
169  /// Greedy register allocation pass - This pass implements a global register
170  /// allocator for optimized builds.
171  ///
172  FunctionPass *createGreedyRegisterAllocator();
173 
174  /// PBQPRegisterAllocation Pass - This pass implements the Partitioned Boolean
175  /// Quadratic Prograaming (PBQP) based register allocator.
176  ///
177  FunctionPass *createDefaultPBQPRegisterAllocator();
178 
179  /// PrologEpilogCodeInserter - This pass inserts prolog and epilog code,
180  /// and eliminates abstract frame references.
181  extern char &PrologEpilogCodeInserterID;
182  MachineFunctionPass *createPrologEpilogInserterPass();
183 
184  /// ExpandPostRAPseudos - This pass expands pseudo instructions after
185  /// register allocation.
186  extern char &ExpandPostRAPseudosID;
187 
188  /// createPostRAHazardRecognizer - This pass runs the post-ra hazard
189  /// recognizer.
190  extern char &PostRAHazardRecognizerID;
191 
192  /// createPostRAScheduler - This pass performs post register allocation
193  /// scheduling.
194  extern char &PostRASchedulerID;
195 
196  /// BranchFolding - This pass performs machine code CFG based
197  /// optimizations to delete branches to branches, eliminate branches to
198  /// successor blocks (creating fall throughs), and eliminating branches over
199  /// branches.
200  extern char &BranchFolderPassID;
201 
202  /// BranchRelaxation - This pass replaces branches that need to jump further
203  /// than is supported by a branch instruction.
204  extern char &BranchRelaxationPassID;
205 
206  /// MachineFunctionPrinterPass - This pass prints out MachineInstr's.
207  extern char &MachineFunctionPrinterPassID;
208 
209  /// MIRPrintingPass - this pass prints out the LLVM IR using the MIR
210  /// serialization format.
211  extern char &MIRPrintingPassID;
212 
213  /// TailDuplicate - Duplicate blocks with unconditional branches
214  /// into tails of their predecessors.
215  extern char &TailDuplicateID;
216 
217  /// Duplicate blocks with unconditional branches into tails of their
218  /// predecessors. Variant that works before register allocation.
219  extern char &EarlyTailDuplicateID;
220 
221  /// MachineTraceMetrics - This pass computes critical path and CPU resource
222  /// usage in an ensemble of traces.
223  extern char &MachineTraceMetricsID;
224 
225  /// EarlyIfConverter - This pass performs if-conversion on SSA form by
226  /// inserting cmov instructions.
227  extern char &EarlyIfConverterID;
228 
229  /// EarlyIfPredicator - This pass performs if-conversion on SSA form by
230  /// predicating if/else block and insert select at the join point.
231  extern char &EarlyIfPredicatorID;
232 
233  /// This pass performs instruction combining using trace metrics to estimate
234  /// critical-path and resource depth.
235  extern char &MachineCombinerID;
236 
237  /// StackSlotColoring - This pass performs stack coloring and merging.
238  /// It merges disjoint allocas to reduce the stack size.
239  extern char &StackColoringID;
240 
241  /// IfConverter - This pass performs machine code if conversion.
242  extern char &IfConverterID;
243 
244  FunctionPass *createIfConverter(
245  std::function<bool(const MachineFunction &)> Ftor);
246 
247  /// MachineBlockPlacement - This pass places basic blocks based on branch
248  /// probabilities.
249  extern char &MachineBlockPlacementID;
250 
251  /// MachineBlockPlacementStats - This pass collects statistics about the
252  /// basic block placement using branch probabilities and block frequency
253  /// information.
254  extern char &MachineBlockPlacementStatsID;
255 
256  /// GCLowering Pass - Used by gc.root to perform its default lowering
257  /// operations.
258  FunctionPass *createGCLoweringPass();
259 
260  /// ShadowStackGCLowering - Implements the custom lowering mechanism
261  /// used by the shadow stack GC. Only runs on functions which opt in to
262  /// the shadow stack collector.
263  FunctionPass *createShadowStackGCLoweringPass();
264 
265  /// GCMachineCodeAnalysis - Target-independent pass to mark safe points
266  /// in machine code. Must be added very late during code generation, just
267  /// prior to output, and importantly after all CFG transformations (such as
268  /// branch folding).
269  extern char &GCMachineCodeAnalysisID;
270 
271  /// Creates a pass to print GC metadata.
272  ///
273  FunctionPass *createGCInfoPrinter(raw_ostream &OS);
274 
275  /// MachineCSE - This pass performs global CSE on machine instructions.
276  extern char &MachineCSEID;
277 
278  /// ImplicitNullChecks - This pass folds null pointer checks into nearby
279  /// memory operations.
280  extern char &ImplicitNullChecksID;
281 
282  /// This pass performs loop invariant code motion on machine instructions.
283  extern char &MachineLICMID;
284 
285  /// This pass performs loop invariant code motion on machine instructions.
286  /// This variant works before register allocation. \see MachineLICMID.
287  extern char &EarlyMachineLICMID;
288 
289  /// MachineSinking - This pass performs sinking on machine instructions.
290  extern char &MachineSinkingID;
291 
292  /// MachineCopyPropagation - This pass performs copy propagation on
293  /// machine instructions.
294  extern char &MachineCopyPropagationID;
295 
296  /// PeepholeOptimizer - This pass performs peephole optimizations -
297  /// like extension and comparison eliminations.
298  extern char &PeepholeOptimizerID;
299 
300  /// OptimizePHIs - This pass optimizes machine instruction PHIs
301  /// to take advantage of opportunities created during DAG legalization.
302  extern char &OptimizePHIsID;
303 
304  /// StackSlotColoring - This pass performs stack slot coloring.
305  extern char &StackSlotColoringID;
306 
307  /// This pass lays out funclets contiguously.
308  extern char &FuncletLayoutID;
309 
310  /// This pass inserts the XRay instrumentation sleds if they are supported by
311  /// the target platform.
312  extern char &XRayInstrumentationID;
313 
314  /// This pass inserts FEntry calls
315  extern char &FEntryInserterID;
316 
317  /// This pass implements the "patchable-function" attribute.
318  extern char &PatchableFunctionID;
319 
320  /// createStackProtectorPass - This pass adds stack protectors to functions.
321  ///
322  FunctionPass *createStackProtectorPass();
323 
324  /// createMachineVerifierPass - This pass verifies cenerated machine code
325  /// instructions for correctness.
326  ///
327  FunctionPass *createMachineVerifierPass(const std::string& Banner);
328 
329  /// createDwarfEHPass - This pass mulches exception handling code into a form
330  /// adapted to code generation. Required if using dwarf exception handling.
331  FunctionPass *createDwarfEHPass();
332 
333  /// createWinEHPass - Prepares personality functions used by MSVC on Windows,
334  /// in addition to the Itanium LSDA based personalities.
335  FunctionPass *createWinEHPass(bool DemoteCatchSwitchPHIOnly = false);
336 
337  /// createSjLjEHPreparePass - This pass adapts exception handling code to use
338  /// the GCC-style builtin setjmp/longjmp (sjlj) to handling EH control flow.
339  ///
340  FunctionPass *createSjLjEHPreparePass();
341 
342  /// createWasmEHPass - This pass adapts exception handling code to use
343  /// WebAssembly's exception handling scheme.
344  FunctionPass *createWasmEHPass();
345 
346  /// LocalStackSlotAllocation - This pass assigns local frame indices to stack
347  /// slots relative to one another and allocates base registers to access them
348  /// when it is estimated by the target to be out of range of normal frame
349  /// pointer or stack pointer index addressing.
350  extern char &LocalStackSlotAllocationID;
351 
352  /// This pass expands pseudo-instructions, reserves registers and adjusts
353  /// machine frame information.
354  extern char &FinalizeISelID;
355 
356  /// UnpackMachineBundles - This pass unpack machine instruction bundles.
357  extern char &UnpackMachineBundlesID;
358 
359  FunctionPass *
360  createUnpackMachineBundles(std::function<bool(const MachineFunction &)> Ftor);
361 
362  /// FinalizeMachineBundles - This pass finalize machine instruction
363  /// bundles (created earlier, e.g. during pre-RA scheduling).
364  extern char &FinalizeMachineBundlesID;
365 
366  /// StackMapLiveness - This pass analyses the register live-out set of
367  /// stackmap/patchpoint intrinsics and attaches the calculated information to
368  /// the intrinsic for later emission to the StackMap.
369  extern char &StackMapLivenessID;
370 
371  /// LiveDebugValues pass
372  extern char &LiveDebugValuesID;
373 
374  /// createJumpInstrTables - This pass creates jump-instruction tables.
375  ModulePass *createJumpInstrTablesPass();
376 
377  /// createForwardControlFlowIntegrityPass - This pass adds control-flow
378  /// integrity.
380 
381  /// InterleavedAccess Pass - This pass identifies and matches interleaved
382  /// memory accesses to target specific intrinsics.
383  ///
384  FunctionPass *createInterleavedAccessPass();
385 
386  /// InterleavedLoadCombines Pass - This pass identifies interleaved loads and
387  /// combines them into wide loads detectable by InterleavedAccessPass
388  ///
389  FunctionPass *createInterleavedLoadCombinePass();
390 
391  /// LowerEmuTLS - This pass generates __emutls_[vt].xyz variables for all
392  /// TLS variables for the emulated TLS model.
393  ///
394  ModulePass *createLowerEmuTLSPass();
395 
396  /// This pass lowers the \@llvm.load.relative and \@llvm.objc.* intrinsics to
397  /// instructions. This is unsafe to do earlier because a pass may combine the
398  /// constant initializer into the load, which may result in an overflowing
399  /// evaluation.
401 
402  /// GlobalMerge - This pass merges internal (by default) globals into structs
403  /// to enable reuse of a base pointer by indexed addressing modes.
404  /// It can also be configured to focus on size optimizations only.
405  ///
406  Pass *createGlobalMergePass(const TargetMachine *TM, unsigned MaximalOffset,
407  bool OnlyOptimizeForSize = false,
408  bool MergeExternalByDefault = false);
409 
410  /// This pass splits the stack into a safe stack and an unsafe stack to
411  /// protect against stack-based overflow vulnerabilities.
412  FunctionPass *createSafeStackPass();
413 
414  /// This pass detects subregister lanes in a virtual register that are used
415  /// independently of other lanes and splits them into separate virtual
416  /// registers.
417  extern char &RenameIndependentSubregsID;
418 
419  /// This pass is executed POST-RA to collect which physical registers are
420  /// preserved by given machine function.
421  FunctionPass *createRegUsageInfoCollector();
422 
423  /// Return a MachineFunction pass that identifies call sites
424  /// and propagates register usage information of callee to caller
425  /// if available with PysicalRegisterUsageInfo pass.
426  FunctionPass *createRegUsageInfoPropPass();
427 
428  /// This pass performs software pipelining on machine instructions.
429  extern char &MachinePipelinerID;
430 
431  /// This pass frees the memory occupied by the MachineFunction.
432  FunctionPass *createFreeMachineFunctionPass();
433 
434  /// This pass performs outlining on machine instructions directly before
435  /// printing assembly.
436  ModulePass *createMachineOutlinerPass(bool RunOnAllFunctions = true);
437 
438  /// This pass expands the experimental reduction intrinsics into sequences of
439  /// shuffles.
440  FunctionPass *createExpandReductionsPass();
441 
442  // This pass expands memcmp() to load/stores.
443  FunctionPass *createExpandMemCmpPass();
444 
445  /// Creates Break False Dependencies pass. \see BreakFalseDeps.cpp
446  FunctionPass *createBreakFalseDeps();
447 
448  // This pass expands indirectbr instructions.
449  FunctionPass *createIndirectBrExpandPass();
450 
451  /// Creates CFI Instruction Inserter pass. \see CFIInstrInserter.cpp
452  FunctionPass *createCFIInstrInserter();
453 
454  /// Create Hardware Loop pass. \see HardwareLoops.cpp
455  FunctionPass *createHardwareLoopsPass();
456 
457 } // End llvm namespace
458 
459 #endif
FunctionPass * createExpandReductionsPass()
This pass expands the experimental reduction intrinsics into sequences of shuffles.
char & MachineCombinerID
This pass performs instruction combining using trace metrics to estimate critical-path and resource d...
char & RenameIndependentSubregsID
This pass detects subregister lanes in a virtual register that are used independently of other lanes ...
This class represents lattice values for constants.
Definition: AllocatorList.h:23
char & FEntryInserterID
This pass inserts FEntry calls.
char & MachineLICMID
This pass performs loop invariant code motion on machine instructions.
char & MachineDominatorsID
MachineDominators - This pass is a machine dominators analysis pass.
char & FuncletLayoutID
This pass lays out funclets contiguously.
FunctionPass * createExpandMemCmpPass()
char & RegisterCoalescerID
RegisterCoalescer - This pass merges live ranges to eliminate copies.
char & EarlyIfConverterID
EarlyIfConverter - This pass performs if-conversion on SSA form by inserting cmov instructions...
FunctionPass * createIfConverter(std::function< bool(const MachineFunction &)> Ftor)
Pass * createGlobalMergePass(const TargetMachine *TM, unsigned MaximalOffset, bool OnlyOptimizeForSize=false, bool MergeExternalByDefault=false)
GlobalMerge - This pass merges internal (by default) globals into structs to enable reuse of a base p...
char & BranchRelaxationPassID
BranchRelaxation - This pass replaces branches that need to jump further than is supported by a branc...
char & MachineSchedulerID
MachineScheduler - This pass schedules machine instructions.
char & AtomicExpandID
AtomicExpandID – Lowers atomic operations in terms of either cmpxchg load-linked/store-conditional l...
char & RAGreedyID
Greedy register allocator.
char & ProcessImplicitDefsID
ProcessImpicitDefs pass - This pass removes IMPLICIT_DEFs.
FunctionPass * createShadowStackGCLoweringPass()
ShadowStackGCLowering - Implements the custom lowering mechanism used by the shadow stack GC...
char & DetectDeadLanesID
This pass adds dead/undef flags after analyzing subregister lanes.
char & MachineBlockPlacementStatsID
MachineBlockPlacementStats - This pass collects statistics about the basic block placement using bran...
char & MachineFunctionPrinterPassID
MachineFunctionPrinterPass - This pass prints out MachineInstr&#39;s.
FunctionPass * createScalarizeMaskedMemIntrinPass()
createScalarizeMaskedMemIntrinPass - Replace masked load, store, gather and scatter intrinsics with s...
MachineFunctionPass * createResetMachineFunctionPass(bool EmitFallbackDiag, bool AbortOnFailedISel)
This pass resets a MachineFunction when it has the FailedISel property as if it was just created...
FunctionPass * createHardwareLoopsPass()
Create Hardware Loop pass.
FunctionPass * createMachineVerifierPass(const std::string &Banner)
createMachineVerifierPass - This pass verifies cenerated machine code instructions for correctness...
char & MachineLoopInfoID
MachineLoopInfo - This pass is a loop analysis pass.
char & MachineRegionInfoPassID
MachineRegionInfo - This pass computes SESE regions for machine functions.
FunctionPass * createGCLoweringPass()
GCLowering Pass - Used by gc.root to perform its default lowering operations.
char & StackColoringID
StackSlotColoring - This pass performs stack coloring and merging.
FunctionPass * createSafeStackPass()
This pass splits the stack into a safe stack and an unsafe stack to protect against stack-based overf...
Definition: SafeStack.cpp:902
FunctionPass * createRegUsageInfoCollector()
This pass is executed POST-RA to collect which physical registers are preserved by given machine func...
char & FinalizeMachineBundlesID
FinalizeMachineBundles - This pass finalize machine instruction bundles (created earlier, e.g.
MachineFunctionPass * createPrologEpilogInserterPass()
char & EarlyIfPredicatorID
EarlyIfPredicator - This pass performs if-conversion on SSA form by predicating if/else block and ins...
char & XRayInstrumentationID
This pass inserts the XRay instrumentation sleds if they are supported by the target platform...
char & EarlyTailDuplicateID
Duplicate blocks with unconditional branches into tails of their predecessors.
char & UnreachableMachineBlockElimID
UnreachableMachineBlockElimination - This pass removes unreachable machine basic blocks.
char & MachineCSEID
MachineCSE - This pass performs global CSE on machine instructions.
Definition: MachineCSE.cpp:151
FunctionPass * createInterleavedLoadCombinePass()
InterleavedLoadCombines Pass - This pass identifies interleaved loads and combines them into wide loa...
char & StackSlotColoringID
StackSlotColoring - This pass performs stack slot coloring.
char & ExpandPostRAPseudosID
ExpandPostRAPseudos - This pass expands pseudo instructions after register allocation.
char & DeadMachineInstructionElimID
DeadMachineInstructionElim - This pass removes dead machine instructions.
FunctionPass * createUnreachableBlockEliminationPass()
createUnreachableBlockEliminationPass - The LLVM code generator does not work well with unreachable b...
char & LiveIntervalsID
LiveIntervals - This analysis keeps track of the live ranges of virtual and physical registers...
FunctionPass * createWasmEHPass()
createWasmEHPass - This pass adapts exception handling code to use WebAssembly&#39;s exception handling s...
char & RABasicID
Basic register allocator.
FunctionPass * createGCInfoPrinter(raw_ostream &OS)
Creates a pass to print GC metadata.
Definition: GCMetadata.cpp:91
char & SpillPlacementID
SpillPlacement analysis.
char & PHIEliminationID
PHIElimination - This pass eliminates machine instruction PHI nodes by inserting copy instructions...
FunctionPass * createRegUsageInfoPropPass()
Return a MachineFunction pass that identifies call sites and propagates register usage information of...
char & LiveRangeShrinkID
LiveRangeShrink pass.
char & LiveVariablesID
LiveVariables pass - This pass computes the set of blocks in which each variable is life and sets mac...
ModulePass * createForwardControlFlowIntegrityPass()
createForwardControlFlowIntegrityPass - This pass adds control-flow integrity.
char & LiveStacksID
LiveStacks pass. An analysis keeping track of the liveness of stack slots.
Definition: LiveStacks.cpp:33
FunctionPass * createInterleavedAccessPass()
InterleavedAccess Pass - This pass identifies and matches interleaved memory accesses to target speci...
char & PostRAMachineSinkingID
This pass perform post-ra machine sink for COPY instructions.
FunctionPass * createFreeMachineFunctionPass()
This pass frees the memory occupied by the MachineFunction.
FunctionPass * createBreakFalseDeps()
Creates Break False Dependencies pass.
FunctionPass * createDefaultPBQPRegisterAllocator()
PBQPRegisterAllocation Pass - This pass implements the Partitioned Boolean Quadratic Prograaming (PBQ...
char & LiveDebugValuesID
LiveDebugValues pass.
FunctionPass * createWinEHPass(bool DemoteCatchSwitchPHIOnly=false)
createWinEHPass - Prepares personality functions used by MSVC on Windows, in addition to the Itanium ...
FunctionPass * createStackProtectorPass()
createStackProtectorPass - This pass adds stack protectors to functions.
char & MIRPrintingPassID
MIRPrintingPass - this pass prints out the LLVM IR using the MIR serialization format.
char & UnpackMachineBundlesID
UnpackMachineBundles - This pass unpack machine instruction bundles.
char & MachineCopyPropagationID
MachineCopyPropagation - This pass performs copy propagation on machine instructions.
char & TwoAddressInstructionPassID
TwoAddressInstruction - This pass reduces two-address instructions to use two operands.
ModulePass * createMachineOutlinerPass(bool RunOnAllFunctions=true)
This pass performs outlining on machine instructions directly before printing assembly.
char & ImplicitNullChecksID
ImplicitNullChecks - This pass folds null pointer checks into nearby memory operations.
FunctionPass * createIndirectBrExpandPass()
char & PostRASchedulerID
createPostRAScheduler - This pass performs post register allocation scheduling.
ModulePass * createLowerEmuTLSPass()
LowerEmuTLS - This pass generates __emutls_[vt].xyz variables for all TLS variables for the emulated ...
print lazy value Lazy Value Info Printer Pass
char & StackMapLivenessID
StackMapLiveness - This pass analyses the register live-out set of stackmap/patchpoint intrinsics and...
char & TailDuplicateID
TailDuplicate - Duplicate blocks with unconditional branches into tails of their predecessors.
char & MachineSinkingID
MachineSinking - This pass performs sinking on machine instructions.
FunctionPass * createBasicRegisterAllocator()
BasicRegisterAllocation Pass - This pass implements a degenerate global register allocator using the ...
char & MachinePipelinerID
This pass performs software pipelining on machine instructions.
char & EarlyMachineLICMID
This pass performs loop invariant code motion on machine instructions.
MachineFunctionPass * createMachineFunctionPrinterPass(raw_ostream &OS, const std::string &Banner="")
MachineFunctionPrinter pass - This pass prints out the machine function to the given stream as a debu...
char & MachineTraceMetricsID
MachineTraceMetrics - This pass computes critical path and CPU resource usage in an ensemble of trace...
FunctionPass * createUnpackMachineBundles(std::function< bool(const MachineFunction &)> Ftor)
char & OptimizePHIsID
OptimizePHIs - This pass optimizes machine instruction PHIs to take advantage of opportunities create...
char & MachineDominanceFrontierID
MachineDominanaceFrontier - This pass is a machine dominators analysis pass.
char & PeepholeOptimizerID
PeepholeOptimizer - This pass performs peephole optimizations - like extension and comparison elimina...
FunctionPass * createCodeGenPreparePass()
createCodeGenPreparePass - Transform the code to expose more pattern matching during instruction sele...
char & PrologEpilogCodeInserterID
PrologEpilogCodeInserter - This pass inserts prolog and epilog code, and eliminates abstract frame re...
char & PatchableFunctionID
This pass implements the "patchable-function" attribute.
char & GCMachineCodeAnalysisID
GCMachineCodeAnalysis - Target-independent pass to mark safe points in machine code.
char & PostMachineSchedulerID
PostMachineScheduler - This pass schedules machine instructions postRA.
char & IfConverterID
IfConverter - This pass performs machine code if conversion.
FunctionPass * createGreedyRegisterAllocator()
Greedy register allocation pass - This pass implements a global register allocator for optimized buil...
char & FinalizeISelID
This pass expands pseudo-instructions, reserves registers and adjusts machine frame information...
char & MachineBlockPlacementID
MachineBlockPlacement - This pass places basic blocks based on branch probabilities.
char & EdgeBundlesID
EdgeBundles analysis - Bundle machine CFG edges.
FunctionPass * createSjLjEHPreparePass()
createSjLjEHPreparePass - This pass adapts exception handling code to use the GCC-style builtin setjm...
FunctionPass * createFastRegisterAllocator()
FastRegisterAllocation Pass - This pass register allocates as fast as possible.
char & PostRAHazardRecognizerID
createPostRAHazardRecognizer - This pass runs the post-ra hazard recognizer.
ModulePass * createPreISelIntrinsicLoweringPass()
This pass lowers the @llvm.load.relative and @llvm.objc.
char & VirtRegRewriterID
VirtRegRewriter pass.
Definition: VirtRegMap.cpp:211
char & BranchFolderPassID
BranchFolding - This pass performs machine code CFG based optimizations to delete branches to branche...
print Print MemDeps of function
char & ShrinkWrapID
ShrinkWrap pass. Look for the best place to insert save and restore.
Definition: ShrinkWrap.cpp:249
char & LocalStackSlotAllocationID
LocalStackSlotAllocation - This pass assigns local frame indices to stack slots relative to one anoth...
FunctionPass * createAtomicExpandPass()
MachineFunctionPass * createPrintMIRPass(raw_ostream &OS)
MIRPrinting pass - this pass prints out the LLVM IR into the given stream using the MIR serialization...
FunctionPass * createCFIInstrInserter()
Creates CFI Instruction Inserter pass.
ModulePass * createJumpInstrTablesPass()
createJumpInstrTables - This pass creates jump-instruction tables.
FunctionPass * createDwarfEHPass()
createDwarfEHPass - This pass mulches exception handling code into a form adapted to code generation...