summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorAditya Nandakumar <aditya_nandakumar@apple.com>2017-07-06 19:40:07 +0000
committerAditya Nandakumar <aditya_nandakumar@apple.com>2017-07-06 19:40:07 +0000
commit1745121a45a1d895c6527f228451797788f04fa2 (patch)
tree0e63175e6104a2161975590be6563d7b0dafe84c /llvm/lib/Analysis/ValueTracking.cpp
parenta80cb1d7a71b21b64ea54267b932f137d531c997 (diff)
downloadbcm5719-llvm-1745121a45a1d895c6527f228451797788f04fa2.tar.gz
bcm5719-llvm-1745121a45a1d895c6527f228451797788f04fa2.zip
[GISel]: Enhance the MachineIRBuilder API
Allows the MachineIRBuilder APIs to directly create registers (based on LLT or TargetRegisterClass) as well as accept MachineInstrBuilders and implicitly converts to register(with getOperand(0).getReg()). Eg usage: LLT s32 = LLT::scalar(32); auto C32 = Builder.buildConstant(s32, 32); auto Tmp = Builder.buildInstr(TargetOpcode::G_SUB, s32, C32, OtherReg); auto Tmp2 = Builder.buildInstr(Opcode, DstReg, Builder.buildConstant(s32, 31)); .... Only a few methods added for now. Reviewed by Tim llvm-svn: 307302
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud