[llvm] [TableGen][InstrInfo] Cull mapping that have not been enabled/not needed (PR #126137)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 7 15:54:47 PST 2025


================
@@ -92,7 +92,7 @@ class InstrInfoEmitter {
       raw_ostream &OS, const CodeGenTarget &Target,
       ArrayRef<const CodeGenInstruction *> NumberedInstructions);
   void emitLogicalOperandSizeMappings(
-      raw_ostream &OS, StringRef Namespace,
+      raw_ostream &OS, const CodeGenTarget &Target,
----------------
s-barannikov wrote:

You can get Target from CDP:
```C++
  const CodeGenTarget &Target = CDP.getTargetInfo();
```


https://github.com/llvm/llvm-project/pull/126137


More information about the llvm-commits mailing list