|
LLVM
5.0.0
|
#include "Target/AMDGPU/AMDGPUInstructionSelector.h"
Public Member Functions | |
| AMDGPUInstructionSelector (const SISubtarget &STI, const AMDGPURegisterBankInfo &RBI) | |
| bool | select (MachineInstr &I) const override |
Select the (possibly generic) instruction I to only use target-specific opcodes. More... | |
Public Member Functions inherited from llvm::InstructionSelector | |
| virtual | ~InstructionSelector ()=default |
Protected Attributes | |
| AMDGPUAS | AMDGPUASI |
Additional Inherited Members | |
Protected Types inherited from llvm::InstructionSelector | |
| using | ComplexRendererFn = std::function< void(MachineInstrBuilder &)> |
| using | RecordedMIVector = SmallVector< MachineInstr *, 4 > |
| using | NewMIVector = SmallVector< MachineInstrBuilder, 4 > |
Protected Member Functions inherited from llvm::InstructionSelector | |
| InstructionSelector () | |
| template<class TgtInstructionSelector , class PredicateBitset , class ComplexMatcherMemFn > | |
| bool | executeMatchTable (TgtInstructionSelector &ISel, NewMIVector &OutMIs, MatcherState &State, const MatcherInfoTy< PredicateBitset, ComplexMatcherMemFn > &MatcherInfo, const int64_t *MatchTable, const TargetInstrInfo &TII, MachineRegisterInfo &MRI, const TargetRegisterInfo &TRI, const RegisterBankInfo &RBI, const PredicateBitset &AvailableFeatures) const |
| Execute a given matcher table and return true if the match was successful and false otherwise. More... | |
| bool | constrainOperandRegToRegClass (MachineInstr &I, unsigned OpIdx, const TargetRegisterClass &RC, const TargetInstrInfo &TII, const TargetRegisterInfo &TRI, const RegisterBankInfo &RBI) const |
Constrain a register operand of an instruction I to a specified register class. More... | |
| bool | constrainSelectedInstRegOperands (MachineInstr &I, const TargetInstrInfo &TII, const TargetRegisterInfo &TRI, const RegisterBankInfo &RBI) const |
Mutate the newly-selected instruction I to constrain its (possibly generic) virtual register operands to the instruction's register class. More... | |
| bool | isOperandImmEqual (const MachineOperand &MO, int64_t Value, const MachineRegisterInfo &MRI) const |
| bool | isObviouslySafeToFold (MachineInstr &MI) const |
Definition at line 33 of file AMDGPUInstructionSelector.h.
| AMDGPUInstructionSelector::AMDGPUInstructionSelector | ( | const SISubtarget & | STI, |
| const AMDGPURegisterBankInfo & | RBI | ||
| ) |
Definition at line 33 of file AMDGPUInstructionSelector.cpp.
|
overridevirtual |
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.
Implements llvm::InstructionSelector.
Definition at line 405 of file AMDGPUInstructionSelector.cpp.
References llvm::MachineInstr::getOpcode(), and llvm::isPreISelGenericOpcode().
|
protected |
Definition at line 63 of file AMDGPUInstructionSelector.h.
1.8.6