summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2017-01-13 09:37:56 +0000
committerDiana Picus <diana.picus@linaro.org>2017-01-13 09:37:56 +0000
commit4f8c3e18824278a2fc59f273af5793ee8d5e2618 (patch)
treec7fdb8bd0cffc0d6183ab04465bd0d41d02df9e1 /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
parenteaed600a21754ed069d1143ff03fbd64722bc486 (diff)
downloadbcm5719-llvm-4f8c3e18824278a2fc59f273af5793ee8d5e2618.tar.gz
bcm5719-llvm-4f8c3e18824278a2fc59f273af5793ee8d5e2618.zip
[ARM] CodeGen: Remove AddDefaultPred. NFC.
Replace all uses of AddDefaultPred with MachineInstrBuilder::add(predOps()). This makes the code building MachineInstrs more readable, because it allows us to write code like: MIB.addSomeOperand(blah) .add(predOps()) .addAnotherOperand(blahblah) instead of AddDefaultPred(MIB.addSomeOperand(blah)) .addAnotherOperand(blahblah) This commit also adds the predOps helper in the ARM backend, as well as the add method taking a variable number of operands to the MachineInstrBuilder. The transformation has been done mostly automatically with a custom tool based on Clang AST Matchers + RefactoringTool. Differential Revision: https://reviews.llvm.org/D28555 llvm-svn: 291890
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud