mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
Remove use of enum
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff3261ae86
commit
4052cf998f
@ -120,7 +120,7 @@ public:
|
||||
/// 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 @@ inline MachineInstrBuilder BuildMI(MachineOpCode Opcode, unsigned NumOperands) {
|
||||
/// 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 @@ inline MachineInstrBuilder BuildMI(MachineOpCode Opcode, unsigned NumOperands,
|
||||
/// 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 @@ inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB, MachineOpCode Opcode,
|
||||
/// 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,
|
||||
|
Loading…
Reference in New Issue
Block a user