[llvm-commits] CVS: llvm/include/llvm/Instruction.h

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 7 22:21:45 PDT 2005



Changes in directory llvm/include/llvm:

Instruction.h updated: 1.67 -> 1.68
---
Log message:

add a new helper method


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

 Instruction.h |    5 +++++
 1 files changed, 5 insertions(+)


Index: llvm/include/llvm/Instruction.h
diff -u llvm/include/llvm/Instruction.h:1.67 llvm/include/llvm/Instruction.h:1.68
--- llvm/include/llvm/Instruction.h:1.67	Thu Apr 21 15:11:51 2005
+++ llvm/include/llvm/Instruction.h	Mon Aug  8 00:21:33 2005
@@ -93,6 +93,11 @@
   ///
   void eraseFromParent();
 
+  /// moveBefore - Unlink this instruction from its current basic block and
+  /// insert it into the basic block that MovePos lives in, right before
+  /// MovePos.
+  void moveBefore(Instruction *MovePos);
+
   // ---------------------------------------------------------------------------
   /// Subclass classification... getOpcode() returns a member of
   /// one of the enums that is coming soon (down below)...






More information about the llvm-commits mailing list