[RegisterBankInfo] Use array instead of SmallVector for BreakDown.
authorQuentin Colombet <qcolombet@apple.com>
Fri, 23 Sep 2016 00:14:30 +0000 (00:14 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Fri, 23 Sep 2016 00:14:30 +0000 (00:14 +0000)
commit0afa7d6b823048cfcddf9fa8d2af5cda6b5c0649
tree71a4d3ac33ba2111904cc671b0998ca0c751f7f6
parent2d3628e1f0c52db37d53061f2113e90e52ca0200
[RegisterBankInfo] Use array instead of SmallVector for BreakDown.

This is another step toward TableGen'ed like structures. The BreakDown of
the mapping of the value will be statically computed by TableGen, thus
we only have to point to the right entry in the table instead of
dynamically allocate the mapping for each instruction.

We still support the dynamic allocation through a factory of
PartialMapping to ease the bring-up of the targets while the TableGen
backend is not available.

llvm-svn: 282213
llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h
llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
llvm/lib/Target/AArch64/AArch64RegisterBankInfo.cpp