/// instruction before the given position in the given MachineBasicBlock, and
/// sets up the first operand as a destination virtual register.
///
-inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB,
- MachineBasicBlock::iterator I,
- const TargetInstrDesc &TID,
- unsigned DestReg) {
- MachineInstr *MI =
- BB.getParent()->CreateMachineInstr(TID, DebugLoc::getUnknownLoc());
- BB.insert(I, MI);
- return MachineInstrBuilder(MI).addReg(DestReg, true);
-}
inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB,
MachineBasicBlock::iterator I,
DebugLoc DL,
/// instruction before the given position in the given MachineBasicBlock, and
/// does NOT take a destination register.
///
-inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB,
- MachineBasicBlock::iterator I,
- const TargetInstrDesc &TID) {
- MachineInstr *MI =
- BB.getParent()->CreateMachineInstr(TID, DebugLoc::getUnknownLoc());
- BB.insert(I, MI);
- return MachineInstrBuilder(MI);
-}
inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB,
MachineBasicBlock::iterator I,
DebugLoc DL,
/// instruction at the end of the given MachineBasicBlock, and does NOT take a
/// destination register.
///
-inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB,
- const TargetInstrDesc &TID) {
- return BuildMI(*BB, BB->end(), TID);
-}
inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB,
DebugLoc DL,
const TargetInstrDesc &TID) {
/// instruction at the end of the given MachineBasicBlock, and sets up the first
/// operand as a destination virtual register.
///
-inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB,
- const TargetInstrDesc &TID,
- unsigned DestReg) {
- return BuildMI(*BB, BB->end(), TID, DestReg);
-}
inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB,
DebugLoc DL,
const TargetInstrDesc &TID,