[llvm] [TableGen][DecoderEmitter] Add option to emit type-specialized code (PR #146593)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 18 20:19:17 PDT 2025
s-barannikov wrote:
FYI I'm seeing linker errors with the current PR:
```
ld.lld: error: undefined symbol: llvm::MCDisassembler::DecodeStatus DecodeDisp<19u>(llvm::MCInst&, unsigned int, unsigned long, llvm::MCDisassembler const*)
```
They are preceded by compiler warnings:
```
[2106/2314] Building CXX object lib/Target/Sparc/Disassembler/CMakeFiles/LLVMSparcDisassembler.dir/SparcDisassembler.cpp.o
../llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp:270:31: warning: function 'DecodeDisp<19U>' has internal linkage but is not defined [-Wundefined-internal]
constexpr static DecodeStatus DecodeDisp(MCInst &MI, uint32_t ImmVal,
^
lib/Target/Sparc/SparcGenDisassemblerTables.inc:2053:19: note: used here
if (!Check(S, DecodeDisp<19>(MI, tmp, Address, Decoder))) { return MCDisassembler::Fail; }
^
```
I'm using stock Ubuntu-22.04 clang/lld (14.0.0).
https://github.com/llvm/llvm-project/pull/146593
More information about the llvm-commits
mailing list