[llvm] r265704 - [RegisterBankInfo] Add more details on the expectation of
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 7 11:07:08 PDT 2016
Author: qcolombet
Date: Thu Apr 7 13:07:07 2016
New Revision: 265704
URL: http://llvm.org/viewvc/llvm-project?rev=265704&view=rev
Log:
[RegisterBankInfo] Add more details on the expectation of
getInstrMapping.
Modified:
llvm/trunk/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h
Modified: llvm/trunk/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h?rev=265704&r1=265703&r2=265704&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h Thu Apr 7 13:07:07 2016
@@ -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.
More information about the llvm-commits
mailing list