GlobalISel: give MachineInstrBuilder a uniform interface. NFC.
authorTim Northover <tnorthover@apple.com>
Tue, 26 Jul 2016 16:45:26 +0000 (16:45 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 26 Jul 2016 16:45:26 +0000 (16:45 +0000)
commitcc5f76226bac405a09a62e3dadf29e275fdad7ea
tree1281163eb09629dac671f65b1796b92fa8b5fd73
parent56446180497b56dffcc9ad5f04049ba0706c5cb1
GlobalISel: give MachineInstrBuilder a uniform interface. NFC.

Instead of an ad-hoc collection of "buildInstr" functions with varying numbers
of registers, this uses variadic templates to provide for as many regs as
needed!

Also make IRtranslator use new "buildBr" function instead of some weird generic
one that no-one else would really use.

llvm-svn: 276762
llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp