15 #define DEBUG_TYPE "gi-combine" 20 Builder(B),
MRI(Builder.getMF().getRegInfo()) {}
Compute iterated dominance frontiers using a linear time algorithm.
unsigned getReg() const
getReg - Returns the register number.
bool tryCombine(MachineInstr &MI)
Try to transform MI by using all of the above combine functions.
LLT getType(unsigned Reg) const
Get the low-level type of Reg or LLT{} if Reg is not a generic (target independent) virtual register...
void eraseFromParent()
Unlink 'this' from the containing basic block and delete it.
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
unsigned const MachineRegisterInfo * MRI
bool tryCombineCopy(MachineInstr &MI)
If MI is COPY, try to combine it.
This file declares the MachineIRBuilder class.
void replaceRegWith(unsigned FromReg, unsigned ToReg)
replaceRegWith - Replace all instances of FromReg with ToReg in the machine function.
Representation of each machine instruction.
CombinerHelper(MachineIRBuilder &B)
const MachineOperand & getOperand(unsigned i) const