GlobalISel: support same ConstantExprs as Instructions.
authorTim Northover <tnorthover@apple.com>
Wed, 10 Aug 2016 23:02:41 +0000 (23:02 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 10 Aug 2016 23:02:41 +0000 (23:02 +0000)
commit357f1be2ca5a835045643cb488f18bb152925795
tree07e343127cb7d4ee15eeeb0f34354b16032322c2
parent1ae68cdee7ab3368f406cd8e9bde4206c8644b5a
GlobalISel: support same ConstantExprs as Instructions.

It's more than just inttoptr, but the others can't be tested until we have
support for non-trivial constants (they currently get unavoidably folded to a
ConstantInt).

llvm-svn: 278303
llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll