[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h
Vikram Adve
vadve at psmith.cs.uiuc.edu
Thu Sep 19 19:48:03 PDT 2002
Changes in directory llvm/include/llvm/CodeGen:
MachineInstr.h updated: 1.64 -> 1.65
---
Log message:
Add method MachineInstr::replace to rewrite a machine instruction in place.
---
Diffs of the changes:
Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.64 llvm/include/llvm/CodeGen/MachineInstr.h:1.65
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.64 Mon Sep 16 10:58:54 2002
+++ llvm/include/llvm/CodeGen/MachineInstr.h Thu Sep 19 19:47:49 2002
@@ -295,6 +295,18 @@
unsigned numOperands,
OpCodeMask _opCodeMask = 0x0);
inline ~MachineInstr () {}
+
+ //
+ // Support to rewrite a machine instruction in place: for now, simply
+ // replace() and then set new operands with Set.*Operand methods below.
+ //
+ void replace (MachineOpCode _opCode,
+ unsigned numOperands,
+ OpCodeMask _opCodeMask = 0x0);
+
+ //
+ // The op code. Note that MachineOpCode is a target-specific type.
+ //
const MachineOpCode getOpCode () const { return opCode; }
//
More information about the llvm-commits
mailing list