X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FCodeGen%2FMachineBasicBlock.h;h=9585b29a5dc30ce145b6bc63c45019a145471e30;hp=3d58c499823e86725e9263a79d29830acd4eae26;hb=5666fc71f0e2ed2c0400d8bca079a1dd3f33fe53;hpb=0e59c4e3e8f8e105834d137cccb1e1bb731b5a13 diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 3d58c499823..9585b29a5dc 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -81,6 +81,10 @@ public: }; private: + // XXX-update: A flag that checks whether we can eliminate this machine basic + // block. + bool canEliminateMachineBB; + typedef ilist Instructions; Instructions Insts; const BasicBlock *BB; @@ -135,6 +139,15 @@ private: friend class MachineFunction; public: + // XXX-update: + void disableCanEliminateMachineBB() { + canEliminateMachineBB = false; + } + + bool getCanEliminateMachineBB() { + return canEliminateMachineBB; + } + /// Return the LLVM basic block that this instance corresponded to originally. /// Note that this may be NULL if this instance does not correspond directly /// to an LLVM basic block.