[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 23 13:57:53 PDT 2026
================
@@ -579,29 +598,132 @@ void AsmWriterEmitter::EmitPrintInstruction(
llvm::erase_if(Instructions,
[](AsmWriterInst &Inst) { return Inst.Operands.empty(); });
----------------
kazutakahirata wrote:
Could we move this up right before `if (UseFnPtrTable && !Instructions.empty())` above? `Instructions` is not used between that `if` statement and here. This way, `!Instructions.empty()` only checks overflow instructions, and `EmitOpcodePatternTable` won't need to filter `Instructions` again.
https://github.com/llvm/llvm-project/pull/218530
More information about the llvm-commits
mailing list