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

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 3 10:42:01 PDT 2003


Changes in directory llvm/include/llvm/CodeGen:

MachineInstrBuilder.h updated: 1.13 -> 1.14

---
Log message:

Remove use of enum


---
Diffs of the changes:

Index: llvm/include/llvm/CodeGen/MachineInstrBuilder.h
diff -u llvm/include/llvm/CodeGen/MachineInstrBuilder.h:1.13 llvm/include/llvm/CodeGen/MachineInstrBuilder.h:1.14
--- llvm/include/llvm/CodeGen/MachineInstrBuilder.h:1.13	Wed Jan 15 13:22:23 2003
+++ llvm/include/llvm/CodeGen/MachineInstrBuilder.h	Tue Jun  3 10:41:45 2003
@@ -120,7 +120,7 @@
 /// itself.  NumOperands is the number of operands to the machine instruction to
 /// allow for memory efficient representation of machine instructions.
 ///
-inline MachineInstrBuilder BuildMI(MachineOpCode Opcode, unsigned NumOperands) {
+inline MachineInstrBuilder BuildMI(int Opcode, unsigned NumOperands) {
   return MachineInstrBuilder(new MachineInstr(Opcode, NumOperands, true, true));
 }
 
@@ -128,7 +128,7 @@
 /// destination virtual register.  NumOperands is the number of additional add*
 /// calls that are expected, it does not include the destination register.
 ///
-inline MachineInstrBuilder BuildMI(MachineOpCode Opcode, unsigned NumOperands,
+inline MachineInstrBuilder BuildMI(int Opcode, unsigned NumOperands,
                                    unsigned DestReg) {
   return MachineInstrBuilder(new MachineInstr(Opcode, NumOperands+1,
                                    true, true)).addReg(DestReg, MOTy::Def);
@@ -138,7 +138,7 @@
 /// BuildMI - This version of the builder inserts the built MachineInstr into
 /// the specified MachineBasicBlock.
 ///
-inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB, MachineOpCode Opcode,
+inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB, int Opcode,
                                    unsigned NumOperands) {
   return MachineInstrBuilder(new MachineInstr(BB, Opcode, NumOperands));
 }
@@ -148,7 +148,7 @@
 /// destination virtual register.  NumOperands is the number of additional add*
 /// calls that are expected, it does not include the destination register.
 ///
-inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB, MachineOpCode Opcode,
+inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB, int Opcode,
                                    unsigned NumOperands, unsigned DestReg) {
   return MachineInstrBuilder(new MachineInstr(BB, Opcode,
                                               NumOperands+1)).addReg(DestReg,





More information about the llvm-commits mailing list