X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FCodeGen%2FMachineInstr.h;h=3e76ea9c31dd7f5e082962855a7338b1d9441686;hb=5666fc71f0e2ed2c0400d8bca079a1dd3f33fe53;hp=05c9a9e0b07961a7afdb47980332da1fa0b3494d;hpb=0e59c4e3e8f8e105834d137cccb1e1bb731b5a13;p=oota-llvm.git diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 05c9a9e0b07..3e76ea9c31d 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -71,6 +71,9 @@ public: BundledSucc = 1 << 3 // Instruction has bundled successors. }; private: + // XXX-update: A flag that checks whether we can eliminate this instruction. + bool canEliminateMachineInstr; + const MCInstrDesc *MCID; // Instruction descriptor. MachineBasicBlock *Parent; // Pointer to the owning basic block. @@ -126,6 +129,15 @@ private: friend class MachineFunction; public: + // XXX-update: + void disableCanEliminateMachineInstr() { + canEliminateMachineInstr = false; + } + + bool getCanEliminateMachineInstr() { + return canEliminateMachineInstr; + } + const MachineBasicBlock* getParent() const { return Parent; } MachineBasicBlock* getParent() { return Parent; }