forked from OSchip/llvm-project
parent
3cf970e27f
commit
8f4142616d
|
@ -21,7 +21,9 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
BBLiveVar::BBLiveVar(const BasicBlock &bb, MachineBasicBlock &mbb, unsigned id)
|
||||
BBLiveVar::BBLiveVar(const BasicBlock &bb,
|
||||
const MachineBasicBlock &mbb,
|
||||
unsigned id)
|
||||
: BB(bb), MBB(mbb), POID(id) {
|
||||
InSetChanged = OutSetChanged = false;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ extern LiveVarDebugLevel_t DEBUG_LV;
|
|||
|
||||
class BBLiveVar {
|
||||
const BasicBlock &BB; // pointer to BasicBlock
|
||||
MachineBasicBlock &MBB; // Pointer to MachineBasicBlock
|
||||
const MachineBasicBlock &MBB; // Pointer to MachineBasicBlock
|
||||
unsigned POID; // Post-Order ID
|
||||
|
||||
ValueSet DefSet; // Def set (with no preceding uses) for LV analysis
|
||||
|
@ -61,12 +61,12 @@ class BBLiveVar {
|
|||
void calcDefUseSets(); // calculates the Def & Use sets for this BB
|
||||
public:
|
||||
|
||||
BBLiveVar(const BasicBlock &BB, MachineBasicBlock &MBB, unsigned POID);
|
||||
BBLiveVar(const BasicBlock &BB, const MachineBasicBlock &MBB, unsigned POID);
|
||||
|
||||
inline bool isInSetChanged() const { return InSetChanged; }
|
||||
inline bool isOutSetChanged() const { return OutSetChanged; }
|
||||
|
||||
MachineBasicBlock &getMachineBasicBlock() const { return MBB; }
|
||||
const MachineBasicBlock &getMachineBasicBlock() const { return MBB; }
|
||||
|
||||
inline unsigned getPOId() const { return POID; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue