From 42795bdc76650a6c27553306db21bd0deb2ac653 Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Thu, 7 Apr 2016 18:07:07 +0000 Subject: [PATCH] [RegisterBankInfo] Add more details on the expectation of getInstrMapping. llvm-svn: 265704 --- llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h b/llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h index 69e6cb4..e7c7def 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h @@ -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. -- 2.7.4