[RegisterBankInfo] Implement a target independent version of
authorQuentin Colombet <qcolombet@apple.com>
Thu, 7 Apr 2016 00:07:50 +0000 (00:07 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 7 Apr 2016 00:07:50 +0000 (00:07 +0000)
commit4359784c1ba01d6722454cf2d10db6f4a94ccf41
treef403e2deb09e137f3bc486cf354876e88ce956a8
parentab16be799c24f3d10e71463b0a943723f9972d3c
[RegisterBankInfo] Implement a target independent version of
getInstrMapping.

This implementation requires that the target implemented
getRegBankFromRegClass.
Indeed, the implementation uses the register classes for the encoding
constraints for the instructions to deduce the mapping of a value.

llvm-svn: 265624
llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp