[llvm] [LLVM][TableGen] Parameterize NumToSkip in DecoderEmitter (PR #135882)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 13:45:02 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x86_64-linux-abi-test` running on `sie-linux-worker2` while building `llvm` at step 6 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/8/builds/14086

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (build-unified-tree) failure: build (failure)
...
14.700 [4689/10/2475] Building AArch64GenPostLegalizeGICombiner.inc...
14.837 [4688/10/2476] Building AArch64GenPostLegalizeGILowering.inc...
14.899 [4687/10/2477] Building AArch64GenPreLegalizeGICombiner.inc...
15.167 [4686/10/2478] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
15.221 [4685/10/2479] Building AArch64GenAsmWriter.inc...
15.489 [4684/10/2480] Building AArch64GenAsmMatcher.inc...
16.603 [4683/10/2481] Building AArch64GenCallingConv.inc...
16.739 [4682/10/2482] Building AArch64GenAsmWriter1.inc...
16.981 [4681/10/2483] Building AArch64GenExegesis.inc...
17.515 [4680/10/2484] Building AArch64GenDisassemblerTables.inc...
FAILED: lib/Target/AArch64/AArch64GenDisassemblerTables.inc /home/buildbot/buildbot-root/abi-test/build/lib/Target/AArch64/AArch64GenDisassemblerTables.inc 
cd /home/buildbot/buildbot-root/abi-test/build && /home/buildbot/buildbot-root/abi-test/build/bin/llvm-tblgen -gen-disassembler --num-to-skip-size=3 -I /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target/AArch64 -I/home/buildbot/buildbot-root/abi-test/build/include -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/include -I /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target/AArch64/AArch64.td --write-if-changed -o lib/Target/AArch64/AArch64GenDisassemblerTables.inc -d lib/Target/AArch64/AArch64GenDisassemblerTables.inc.d
llvm-tblgen: /home/buildbot/buildbot-root/abi-test/llvm/llvm/utils/TableGen/DecoderEmitter.cpp:150: void {anonymous}::DecoderTable::patchNumToSkip(size_t, uint32_t): Assertion `DestIdx > FixupIdx + NumToSkipSizeInBytes && "Expecting a forward jump in the decoding table"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/buildbot/buildbot-root/abi-test/build/bin/llvm-tblgen -gen-disassembler --num-to-skip-size=3 -I /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target/AArch64 -I/home/buildbot/buildbot-root/abi-test/build/include -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/include -I /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target/AArch64/AArch64.td --write-if-changed -o lib/Target/AArch64/AArch64GenDisassemblerTables.inc -d lib/Target/AArch64/AArch64GenDisassemblerTables.inc.d
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llvm-tblgen 0x000057eb167a44a0
1  llvm-tblgen 0x000057eb167a1a7f
2  llvm-tblgen 0x000057eb167a1bca
3  libc.so.6   0x000074fa9c647520
4  libc.so.6   0x000074fa9c69b9fc pthread_kill + 300
5  libc.so.6   0x000074fa9c647476 raise + 22
6  libc.so.6   0x000074fa9c62d7f3 abort + 211
7  libc.so.6   0x000074fa9c62d71b
8  libc.so.6   0x000074fa9c63ee96
9  llvm-tblgen 0x000057eb16618cde
10 llvm-tblgen 0x000057eb16624571
11 llvm-tblgen 0x000057eb16624153
12 llvm-tblgen 0x000057eb166259e9
13 llvm-tblgen 0x000057eb1663a346
14 llvm-tblgen 0x000057eb167e21af
15 llvm-tblgen 0x000057eb167af95d
16 llvm-tblgen 0x000057eb16486968
17 libc.so.6   0x000074fa9c62ed90
18 libc.so.6   0x000074fa9c62ee40 __libc_start_main + 128
19 llvm-tblgen 0x000057eb16450875
Aborted (core dumped)
18.551 [4680/9/2485] Building AArch64GenMCCodeEmitter.inc...
19.082 [4680/8/2486] Building AArch64GenFastISel.inc...
19.961 [4680/7/2487] Building AArch64GenDAGISel.inc...
20.567 [4680/6/2488] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
20.672 [4680/5/2489] Building AArch64GenGlobalISel.inc...
23.716 [4680/4/2490] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
24.944 [4680/3/2491] Building AArch64GenInstrInfo.inc...
25.365 [4680/2/2492] Building AMDGPUGenRegBankGICombiner.inc...
25.767 [4680/1/2493] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the llvm-commits mailing list