[PATCH] D27807: [globalisel] Initialize RegisterBanks with static data. Part 1 of 2.

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 15 07:31:43 PST 2016


dsanders created this revision.
dsanders added reviewers: qcolombet, t.p.northover, ab, rovka.
dsanders added a subscriber: llvm-commits.
Herald added subscribers: dberris, vkalintiris.

This patch is the first step in refactoring the RegisterBank to a static
table. This patch marks addRegBankCoverage() as unreachable and requires
GlobalISel implementations to rewrite this call into setRegBankMaxSize()
and setRegBankCoverage() calls. addRegBankCoverage() emits all the information
you need to do this rewrite just before calling llvm_unreachable().

The next patch will drop addRegBankCoverage() and move the data to a
static table.


https://reviews.llvm.org/D27807

Files:
  include/llvm/CodeGen/GlobalISel/RegisterBank.h
  include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h
  lib/CodeGen/GlobalISel/RegisterBank.cpp
  lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
  lib/Target/AArch64/AArch64RegisterBankInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27807.81579.patch
Type: text/x-patch
Size: 12523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161215/15a02ae2/attachment.bin>


More information about the llvm-commits mailing list