Legacy pass that selects generic machine instructions to target instructions.
Synopsis
Declared in <llvm/CodeGen/GlobalISel/InstructionSelect.h>
class InstructionSelectLegacy
: public MachineFunctionPass
Description
This pass is responsible for selecting generic machine instructions to target‐specific instructions. It relies on the InstructionSelector provided by the target. Selection is done by examining blocks in post‐order, and instructions in reverse order.
Base Classes
Name |
Description |
FunctionPass adapter for passes that operate on a MachineFunction. |
Member Functions
Name |
Description |
|
Construct the legacy GlobalISel instruction selection pass. |
|
Passes are not assignable. |
|
Find or create a |
|
createPrinterPass ‐ Get a function printer pass. |
|
Perform any cleanup needed after all passes have run. |
|
Cache this pass's MachineFunctionProperties at module initialization. |
Print this pass's state to stderr for debugging. |
|
|
Print the pass nesting structure for ‐debug‐passes=PassStructure. |
|
|
|
|
Get an optional analysis result that may already be available. |
|
|
Declare required analyses and that this pass preserves value tracking. |
|
Return this pass as an ImmutablePass, or null if it is not one. |
|
Return this pass as a PMDataManager when it is a nested pass manager. |
Return a nice clean name for a pass corresponding to that used to enable the pass in opt. |
|
getPassID ‐ Return the PassID number that corresponds to this pass. |
|
Return the kind of pass (module, function, loop, etc.). |
|
|
Return the name of this pass. |
|
Return what kind of Pass Manager can manage this pass. |
|
Return the properties this pass requires of the machine function. |
Return the analysis resolver installed for this pass. |
|
|
Return the properties this pass sets on the machine function. |
Report whether the analysis identified by |
|
|
Check whether available pass managers are suitable for this pass. |
|
Print the internal state of this pass for analysis dumping. |
|
Serialize the IR unit this pass operates on for ‐‐print‐changed. |
|
Release memory held by this pass when it is no longer needed. |
|
runOnFunction ‐ Virtual method overriden by subclasses to do the per‐function processing of the pass. |
|
Select generic instructions in |
Install the analysis resolver used to satisfy this pass's dependencies. |
|
|
verifyAnalysis() ‐ This member can be implemented by a analysis pass to check state of analysis information. |
Static Member Functions
Name |
Description |
Construct a new instance of the pass identified by |
|
|
Static Data Members
Name |
Description |
Pass identification, replacement for typeid. |
Protected Member Functions
Name |
Description |
|
getAnalysisUsage ‐ Subclasses that override getAnalysisUsage must call this. |
|
Return the MachineFunctionProperties this pass clears when it runs. |
|
Return the MachineFunctionProperties this pass requires before running. |
|
Return the MachineFunctionProperties this pass sets after running. |
|
runOnMachineFunction ‐ This method must be overloaded to perform the desired machine code transformation or analysis. |
Check whether this optional pass should be skipped for |
Protected Data Members
Name |
Description |
Optimization level used when requesting profile‐driven analyses. |
|
When true, require that register banks have already been selected. |
Non-Member Functions
Name |
Description |
Build a SimplifyQuery from analyses currently valid in a pass. |
|
Request the timer for this legacy‐pass‐manager's pass instance. |
|
Check whether a pass is a BitcodeWriterPass. |
|
Return true if a pass is for IR printing. |
Postconditions
-
for all inst in MF: not isPreISelGenericOpcode(inst.opcode)
Created with MrDocs