]> granicus.if.org Git - llvm/commit
Re-commit: [globalisel] Tablegen-erate current Register Bank Information
authorDaniel Sanders <daniel_l_sanders@apple.com>
Wed, 18 Jan 2017 14:17:50 +0000 (14:17 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Wed, 18 Jan 2017 14:17:50 +0000 (14:17 +0000)
commit7d4a3d421efcfcb3c5ff76699ebfe8a0853ab39c
tree0b9220e025eb6938a228e6b1383981a8065772f7
parentaa9676306392bfec05a0c43a9d77349c8ab4c003
Re-commit: [globalisel] Tablegen-erate current Register Bank Information

Summary:
Adds a RegisterBank tablegen class that can be used to declare the register
banks and an associated tablegen pass to generate the necessary code.

Changes since last commit:
The new tablegen pass is now correctly guarded by LLVM_BUILD_GLOBAL_ISEL and
this should fix the buildbots however it may not be the whole fix. The previous
buildbot failures suggest there may be a memory bug lurking that I'm unable to
reproduce (including when using asan) or spot in the source. If they re-occur
on this commit then I'll need assistance from the bot owners to track it down.

Reviewers: t.p.northover, ab, rovka, qcolombet

Reviewed By: qcolombet

Subscribers: aditya_nandakumar, rengolin, kristof.beyls, vkalintiris, mgorny, dberris, llvm-commits, rovka

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292367 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
include/llvm/CodeGen/GlobalISel/RegisterBank.h
include/llvm/Target/GlobalISel/RegisterBank.td [new file with mode: 0644]
include/llvm/Target/Target.td
lib/CodeGen/GlobalISel/RegisterBank.cpp
lib/Target/AArch64/AArch64.td
lib/Target/AArch64/AArch64GenRegisterBankInfo.def
lib/Target/AArch64/AArch64RegisterBankInfo.cpp
lib/Target/AArch64/AArch64RegisterBankInfo.h
lib/Target/AArch64/AArch64RegisterBanks.td [new file with mode: 0644]
lib/Target/AArch64/CMakeLists.txt
lib/Target/ARM/ARMRegisterBankInfo.cpp
llvm/Target/GlobalISel/RegisterBank.td [new file with mode: 0644]
utils/TableGen/CMakeLists.txt
utils/TableGen/RegisterBankEmitter.cpp [new file with mode: 0644]
utils/TableGen/TableGen.cpp
utils/TableGen/TableGenBackends.h