15 #ifndef LLVM_CODEGEN_REGISTER_COALESCER_H
16 #define LLVM_CODEGEN_REGISTER_COALESCER_H
21 class TargetRegisterInfo;
22 class TargetRegisterClass;
23 class TargetInstrInfo;
63 : TRI(tri), DstReg(0), SrcReg(0), DstIdx(0), SrcIdx(0),
70 : TRI(tri), DstReg(PhysReg), SrcReg(VirtReg), DstIdx(0), SrcIdx(0),
86 bool isPhys()
const {
return !NewRC; }
unsigned getDstReg() const
bool isCrossClass() const
CoalescerPair(const TargetRegisterInfo &tri)
bool setRegisters(const MachineInstr *)
const TargetRegisterClass * getNewRC() const
getNewRC - Return the register class of the coalesced register.
bool isPhys() const
isPhys - Return true if DstReg is a physical register.
bool isCoalescable(const MachineInstr *) const
unsigned getDstIdx() const
unsigned getSrcIdx() const
CoalescerPair(unsigned VirtReg, unsigned PhysReg, const TargetRegisterInfo &tri)
unsigned getSrcReg() const
getSrcReg - Return the virtual register that will be coalesced away.