17 #ifndef LLVM_CODEGEN_LIVEREGUNITS_H
18 #define LLVM_CODEGEN_LIVEREGUNITS_H
58 LiveUnits.
erase(*RUnits);
68 if (LiveUnits.
count(*RUnits))
bool isValid() const
isValid - returns true if this iterator is not yet at the end.
std::pair< iterator, bool > insert(const ValueT &Val)
void stepForward(const MachineInstr &MI, const MCRegisterInfo &MCRI)
Simulates liveness when stepping forward over an instruction(bundle): Remove killed-uses, add defs.
bool contains(unsigned Reg, const MCRegisterInfo &MCRI) const
Returns true if register Reg (or one of its super register) is contained in the set.
unsigned getNumRegs() const
Return the number of registers this target has (useful for sizing arrays holding per register informa...
iterator erase(iterator I)
void addLiveIns(const MachineBasicBlock *MBB, const MCRegisterInfo &MCRI)
Adds all registers in the live-in list of block BB.
void removeRegsInMask(const MachineOperand &Op, const MCRegisterInfo &MCRI)
Removes registers clobbered by the regmask operand Op.
void setUniverse(unsigned U)
bool count(const KeyT &Key) const
void addReg(unsigned Reg, const MCRegisterInfo &MCRI)
Adds a register to the set.
#define LLVM_DELETED_FUNCTION
void stepBackward(const MachineInstr &MI, const MCRegisterInfo &MCRI)
Simulates liveness when stepping backwards over an instruction(bundle): Remove Defs, add uses.
LiveRegUnits()
Constructs a new empty LiveRegUnits set.
void init(const TargetRegisterInfo *TRI)
void removeReg(unsigned Reg, const MCRegisterInfo &MCRI)
Removes a register from the set.