[llvm] [TableGen] Split large printInstruction() for NVPTX to avoid compiler limits (PR #218530)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 23:54:30 PDT 2026


================

----------------
kazutakahirata wrote:

Drop the `TargetName` prefix here (and similarly for `OverflowProgram` and the interpreter loop below). These are now function-local `static const` arrays inside `printInstruction()`, just like `OpInfo0` and `AsmStrs` in `getMnemonic()`:
```suggestion
  O << "  static const " << OffsetType << " OpcodeToOffset[] = {\n";
```

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


More information about the llvm-commits mailing list