summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-07-29 17:43:52 +0000
committerTim Northover <tnorthover@apple.com>2016-07-29 17:43:52 +0000
commita51575ffa215c0a3558740694b3831b773498d15 (patch)
tree048bb4ac6b2c5627602ae3ee21700acd6627aefa /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent48c7cc9bc04f595b7b335aeae83df4c0221b6d13 (diff)
downloadbcm5719-llvm-a51575ffa215c0a3558740694b3831b773498d15.tar.gz
bcm5719-llvm-a51575ffa215c0a3558740694b3831b773498d15.zip
CodeGen: improve MachineInstrBuilder & MachineIRBuilder interface
For MachineInstrBuilder, having to manually use RegState::Define is ugly and makes register definitions clunkier than they need to be, so this adds two convenience functions: addDef and addUse. For MachineIRBuilder, we want to avoid BuildMI's first-reg-is-def rule because it's hidden away and causes bugs. So this patch switches buildInstr to returning a MachineInstrBuilder and adding *all* operands via addDef/addUse. NFC. llvm-svn: 277176
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud