1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

[RegisterBankInfo] Add more details on the expectation of

getInstrMapping.

llvm-svn: 265704
This commit is contained in:
Quentin Colombet 2016-04-07 18:07:07 +00:00
parent a5c8afba86
commit cc666d75de

View File

@ -281,6 +281,11 @@ public:
/// Get the mapping of the different operands of \p MI
/// on the register bank.
/// This mapping should be the direct translation of \p MI.
/// In other words, when \p MI is mapped with the returned mapping,
/// only the register banks of the operands of \p MI need to be updated.
/// In particular, neither the opcode or the type of \p MI needs to be
/// updated for this direct mapping.
///
/// The target independent implementation gives a mapping based on
/// the register classes for the target specific opcode.
/// It uses the ID RegisterBankInfo::DefaultMappingID for that mapping.