Use MachineInstrBuilder in InstrEmitter.
This is supposed to be a mechanical change with no functional effects. InstrEmitter can generate all types of MachineOperands which revealed that MachineInstrBuilder was missing a few methods, added by this patch. Besides providing a context pointer to MI::addOperand(), MachineInstrBuilder seems like a better fit for this code. llvm-svn: 170712
Showing
- llvm/include/llvm/CodeGen/MachineInstrBuilder.h 10 additions, 0 deletionsllvm/include/llvm/CodeGen/MachineInstrBuilder.h
- llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp 66 additions, 76 deletionsllvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
- llvm/lib/CodeGen/SelectionDAG/InstrEmitter.h 7 additions, 3 deletionsllvm/lib/CodeGen/SelectionDAG/InstrEmitter.h
Loading
Please register or sign in to comment