[PATCH] D36636: [GISel][NFC]: Add some constructors for easy creation of MIRBuilders
Quentin Colombet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 14 09:12:22 PDT 2017
qcolombet added inline comments.
================
Comment at: include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h:91
+ MachineIRBuilder(MachineFunction &MF) { setMF(MF); }
+ MachineIRBuilder(MachineFunction &MF, MachineInstr &MI) {
+ setMF(MF);
----------------
We could have a constructor with only MI, if that makes the usage simpler:
MachineIRBuilder(MI) : MachineIRBuild(MI.getParent()->getParent()) {
setInstr(MI);
}
Repository:
rL LLVM
https://reviews.llvm.org/D36636
More information about the llvm-commits
mailing list