[llvm-commits] CVS: llvm/include/llvm/Target/TargetInstrInfo.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Sat Jul 31 01:52:40 PDT 2004



Changes in directory llvm/include/llvm/Target:

TargetInstrInfo.h updated: 1.61 -> 1.62

---
Log message:

Add declarations for insertGoto and reverseBranchCondition.


---
Diffs of the changes:  (+15 -1)

Index: llvm/include/llvm/Target/TargetInstrInfo.h
diff -u llvm/include/llvm/Target/TargetInstrInfo.h:1.61 llvm/include/llvm/Target/TargetInstrInfo.h:1.62
--- llvm/include/llvm/Target/TargetInstrInfo.h:1.61	Fri Jul 30 21:06:48 2004
+++ llvm/include/llvm/Target/TargetInstrInfo.h	Sat Jul 31 03:52:30 2004
@@ -14,6 +14,7 @@
 #ifndef LLVM_TARGET_TARGETINSTRINFO_H
 #define LLVM_TARGET_TARGETINSTRINFO_H
 
+#include "llvm/CodeGen/MachineBasicBlock.h"
 #include "Support/DataTypes.h"
 #include <vector>
 #include <cassert>
@@ -156,8 +157,21 @@
     return false;
   }
 
+  //
+  // Insert a goto (unconditional branch) sequence to MBB, right
+  // before MBBI
+  virtual void insertGoto(const MachineBasicBlock& MBB,
+                          const MachineBasicBlock::iterator MBBI) const {
+    assert(0 && "Target didn't implement insertGoto!");
+  }
 
-
+  //
+  // Reverses the branch condition of the MachineInstr pointed by
+  // MI. The instruction is replaced and the new MI is returned.
+  virtual MachineBasicBlock::iterator
+  reverseBranchCondition(const MachineBasicBlock::iterator MI) const {
+    assert(0 && "Target didn't implement reverseBranchCondition!");
+  }
 
   //-------------------------------------------------------------------------
   // Code generation support for creating individual machine instructions





More information about the llvm-commits mailing list