LLVM 18.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. | |
void | setTargetPassConfig (const TargetPassConfig *T) |
void | setRemarkEmitter (MachineOptimizationRemarkEmitter *M) |
![]() | |
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. | |
Protected Attributes | |
const TargetPassConfig * | TPC = nullptr |
MachineOptimizationRemarkEmitter * | MORE = nullptr |
Definition at line 19 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::runOnMachineFunction().
|
inline |
Definition at line 37 of file InstructionSelector.h.
References MORE.
Referenced by llvm::InstructionSelect::runOnMachineFunction().
|
inline |
Definition at line 35 of file InstructionSelector.h.
Referenced by llvm::InstructionSelect::runOnMachineFunction().
|
protected |
Definition at line 41 of file InstructionSelector.h.
Referenced by setRemarkEmitter().
|
protected |
Definition at line 40 of file InstructionSelector.h.
Referenced by setTargetPassConfig().