GlobalISel: implement Legalization querying framework.
authorTim Northover <tnorthover@apple.com>
Wed, 20 Jul 2016 21:13:29 +0000 (21:13 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 20 Jul 2016 21:13:29 +0000 (21:13 +0000)
commit75ad07733065295176e2ab1c4a33c9701e7886a4
tree01c89688ed5820f874e9e3b6e1c379d55a6f0da3
parenta0cdd79070dbdefabcb096f842724be23925a42d
GlobalISel: implement Legalization querying framework.

This adds an (incomplete, inefficient) framework for deciding what to do with
some operation on a given type.

llvm-svn: 276184
llvm/include/llvm/CodeGen/GlobalISel/MachineLegalizer.h [new file with mode: 0644]
llvm/include/llvm/CodeGen/LowLevelType.h
llvm/lib/CodeGen/GlobalISel/CMakeLists.txt
llvm/lib/CodeGen/GlobalISel/MachineLegalizer.cpp [new file with mode: 0644]
llvm/unittests/CodeGen/CMakeLists.txt
llvm/unittests/CodeGen/GlobalISel/CMakeLists.txt [new file with mode: 0644]
llvm/unittests/CodeGen/GlobalISel/MachineLegalizerTest.cpp [new file with mode: 0644]