[RegisterBankInfo] Provide a target independent helper function to guess
authorQuentin Colombet <qcolombet@apple.com>
Thu, 7 Apr 2016 18:01:19 +0000 (18:01 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 7 Apr 2016 18:01:19 +0000 (18:01 +0000)
commitfe1ee4f9be8cb0ed6a853002ab1457573b9e175a
treeff6f6c8e736ec6fe3f3adb287f6001cf6b46339d
parent94cfc603d1896f0f76e7ede712280f526bc88602
[RegisterBankInfo] Provide a target independent helper function to guess
the mapping of an instruction on register bank.

For most instructions, it is possible to guess the mapping of the
instruciton by using the encoding constraints.
It remains instructions without encoding constraints.
For copy-like instructions, we try to propagate the information we get
from the other operands. Otherwise, the target has to give this
information.

llvm-svn: 265703
llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h
llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp