[llvm] [NFC][TableGen] Add accessors for various instruction subclasses (PR #146615)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 09:08:38 PDT 2025
================
@@ -211,10 +211,9 @@ void CodeGenTarget::ReadInstructions() const {
// Parse the instructions defined in the .td file.
for (const Record *R : Insts) {
- auto &Inst = Instructions[R];
+ auto &Inst = InstructionMap[R];
Inst = std::make_unique<CodeGenInstruction>(R);
----------------
mshockwave wrote:
nit: since we're changing this part of the code, should we just use a normal `insert` or `try_emplace` instead?
https://github.com/llvm/llvm-project/pull/146615
More information about the llvm-commits
mailing list