OSDN Git Service

Recommit: [globalisel] Change LLT constructor string into an LLT-based object that...
authorDaniel Sanders <daniel_l_sanders@apple.com>
Tue, 7 Mar 2017 23:20:35 +0000 (23:20 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Tue, 7 Mar 2017 23:20:35 +0000 (23:20 +0000)
commit35c6dd24005d4c82274e8ec746ffa50859dd1798
tree764a4c38614b644a4c734b72dde662741008dd15
parent872fff124f2c1232da70464f6d5c7eaf730b14b6
Recommit: [globalisel] Change LLT constructor string into an LLT-based object that knows how to generate it.

Summary:
This will allow future patches to inspect the details of the LLT. The implementation is now split between
the Support and CodeGen libraries to allow TableGen to use this class without introducing layering concerns.

Thanks to Ahmed Bougacha for finding a reasonable way to avoid the layering issue and providing the version of this patch without that problem.

The problem with the previous commit appears to have been that TableGen was including CodeGen/LowLevelType.h instead of Support/LowLevelTypeImpl.h.

Reviewers: t.p.northover, qcolombet, rovka, aditya_nandakumar, ab, javed.absar

Subscribers: arsenm, nhaehnle, mgorny, dberris, llvm-commits, kristof.beyls

Differential Revision: https://reviews.llvm.org/D30046

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297241 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/CodeGen/LowLevelType.h
include/llvm/Support/LowLevelTypeImpl.h [new file with mode: 0644]
include/llvm/module.modulemap
lib/CodeGen/GlobalISel/IRTranslator.cpp
lib/CodeGen/LowLevelType.cpp
lib/Support/CMakeLists.txt
lib/Support/LowLevelType.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64CallLowering.cpp
lib/Target/AMDGPU/AMDGPUCallLowering.cpp
lib/Target/X86/X86CallLowering.cpp
unittests/CodeGen/LowLevelTypeTest.cpp
utils/TableGen/GlobalISelEmitter.cpp