LLVM 20.0.0git
|
#include "llvm/CodeGen/GlobalISel/InstructionSelector.h"
Public Member Functions | |
virtual | ~InstructionSelector () |
virtual bool | select (MachineInstr &I)=0 |
Select the (possibly generic) instruction I to only use target-specific opcodes. | |
Public Member Functions inherited from llvm::GIMatchTableExecutor | |
virtual | ~GIMatchTableExecutor ()=default |
virtual void | setupGeneratedPerFunctionState (MachineFunction &MF)=0 |
virtual void | setupMF (MachineFunction &mf, GISelKnownBits *kb, CodeGenCoverage *covinfo=nullptr, ProfileSummaryInfo *psi=nullptr, BlockFrequencyInfo *bfi=nullptr) |
Setup per-MF executor state. | |
Public Attributes | |
const TargetPassConfig * | TPC = nullptr |
MachineOptimizationRemarkEmitter * | MORE = nullptr |
GISelObserverWrapper * | AllObservers = nullptr |
Note: InstructionSelect does not track changed instructions. | |
Public Attributes inherited from llvm::GIMatchTableExecutor | |
CodeGenCoverage * | CoverageInfo = nullptr |
GISelKnownBits * | KB = nullptr |
MachineFunction * | MF = nullptr |
ProfileSummaryInfo * | PSI = nullptr |
BlockFrequencyInfo * | BFI = nullptr |
MachineBasicBlock * | CurMBB = nullptr |
Definition at line 21 of file InstructionSelector.h.
|
virtualdefault |
|
pure virtual |
Select the (possibly generic) instruction I
to only use target-specific opcodes.
It is OK to insert multiple instructions, but they cannot be generic pre-isel instructions.
Implemented in llvm::AMDGPUInstructionSelector.
Referenced by llvm::InstructionSelect::selectInstr().
GISelObserverWrapper* llvm::InstructionSelector::AllObservers = nullptr |
Note: InstructionSelect does not track changed instructions.
changingInstr() and changedInstr() will never be called on these observers.
Definition at line 45 of file InstructionSelector.h.
Referenced by llvm::InstructionSelect::selectMachineFunction().
MachineOptimizationRemarkEmitter* llvm::InstructionSelector::MORE = nullptr |
Definition at line 40 of file InstructionSelector.h.
Referenced by llvm::InstructionSelect::selectMachineFunction().
const TargetPassConfig* llvm::InstructionSelector::TPC = nullptr |
Definition at line 38 of file InstructionSelector.h.
Referenced by llvm::InstructionSelect::runOnMachineFunction(), and llvm::InstructionSelect::selectMachineFunction().