[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineBasicBlock.h

Evan Cheng evan.cheng at apple.com
Sun Jun 3 23:41:49 PDT 2007



Changes in directory llvm/include/llvm/CodeGen:

MachineBasicBlock.h updated: 1.64 -> 1.65
---
Log message:

Move ReplaceUsesOfBlockWith() out of BranchFolding into a MachineBasicBlock general facility.

---
Diffs of the changes:  (+4 -0)

 MachineBasicBlock.h |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/include/llvm/CodeGen/MachineBasicBlock.h
diff -u llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.64 llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.65
--- llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.64	Thu May 17 18:58:52 2007
+++ llvm/include/llvm/CodeGen/MachineBasicBlock.h	Mon Jun  4 01:41:17 2007
@@ -246,6 +246,10 @@
     Insts.splice(where, Other->Insts, From, To);
   }
 
+  /// ReplaceUsesOfBlockWith - Given a machine basic block that branched to
+  /// 'Old', change the code and CFG so that it branches to 'New' instead.
+  void ReplaceUsesOfBlockWith(MachineBasicBlock *Old, MachineBasicBlock *New);
+
   // Debugging methods.
   void dump() const;
   void print(std::ostream &OS) const;






More information about the llvm-commits mailing list