mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Final version of BuildMI for symmetry and because I want to use it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5000 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ed6902ca89
commit
367ccab06e
@ -91,6 +91,17 @@ inline MachineInstrBuilder BuildMI(MachineOpCode Opcode, unsigned NumOperands) {
|
|||||||
return MachineInstrBuilder(new MachineInstr(Opcode, NumOperands, true, true));
|
return MachineInstrBuilder(new MachineInstr(Opcode, NumOperands, true, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// BuildMI - This version of the builder also sets up the first "operand" as a
|
||||||
|
/// 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,
|
||||||
|
unsigned DestReg) {
|
||||||
|
return MachineInstrBuilder(new MachineInstr(Opcode, NumOperands+1,
|
||||||
|
true, true)).addReg(DestReg, MOTy::Def);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// BuildMI - This version of the builder inserts the built MachineInstr into
|
/// BuildMI - This version of the builder inserts the built MachineInstr into
|
||||||
/// the specified MachineBasicBlock.
|
/// the specified MachineBasicBlock.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user