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

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 20:06:36 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-nfc` running on `bolt-worker` while building `llvm` at step 7 "build-bolt".

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

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

```
Step 7 (build-bolt) failure: build (failure)
...
9.341 [391/18/1675] Building X86GenDisassemblerTables.inc...
9.365 [390/18/1676] Building X86GenAsmMatcher.inc...
9.649 [389/18/1677] Building AArch64GenPreLegalizeGICombiner.inc...
9.758 [388/18/1678] Building AArch64GenRegisterBank.inc...
9.863 [387/18/1679] Building AArch64GenCallingConv.inc...
9.985 [386/18/1680] Building AArch64GenAsmWriter.inc...
10.017 [385/18/1681] Building AArch64GenAsmWriter1.inc...
10.214 [384/18/1682] Building AArch64GenExegesis.inc...
10.310 [383/18/1683] Building AArch64GenAsmMatcher.inc...
10.589 [382/18/1684] Building AArch64GenDisassemblerTables.inc...
FAILED: lib/Target/AArch64/AArch64GenDisassemblerTables.inc /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/build/lib/Target/AArch64/AArch64GenDisassemblerTables.inc 
cd /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/build && /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/build/bin/llvm-tblgen -gen-disassembler --num-to-skip-size=3 -I /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/lib/Target/AArch64 -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/include -I /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/lib/Target /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/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/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/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/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/build/bin/llvm-tblgen -gen-disassembler --num-to-skip-size=3 -I /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/lib/Target/AArch64 -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/include -I /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/lib/Target /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/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 0x00005587ca41a770
1  llvm-tblgen 0x00005587ca417d4f
2  llvm-tblgen 0x00005587ca417e9a
3  libc.so.6   0x00007f4322442520
4  libc.so.6   0x00007f43224969fc pthread_kill + 300
5  libc.so.6   0x00007f4322442476 raise + 22
6  libc.so.6   0x00007f43224287f3 abort + 211
7  libc.so.6   0x00007f432242871b
8  libc.so.6   0x00007f4322439e96
9  llvm-tblgen 0x00005587ca28f1be
10 llvm-tblgen 0x00005587ca29aa21
11 llvm-tblgen 0x00005587ca29a603
12 llvm-tblgen 0x00005587ca29be99
13 llvm-tblgen 0x00005587ca2b07d6
14 llvm-tblgen 0x00005587ca45841f
15 llvm-tblgen 0x00005587ca425c0d
16 llvm-tblgen 0x00005587ca0fcfb8
17 libc.so.6   0x00007f4322429d90
18 libc.so.6   0x00007f4322429e40 __libc_start_main + 128
19 llvm-tblgen 0x00005587ca0c6f15
Aborted (core dumped)
11.053 [382/17/1685] Building AArch64GenMCCodeEmitter.inc...
11.116 [382/16/1686] Building AArch64GenMCPseudoLowering.inc...
11.342 [382/15/1687] Building X86GenFastISel.inc...
11.371 [382/14/1688] Building AArch64GenPostLegalizeGICombiner.inc...
11.445 [382/13/1689] Building AArch64GenO0PreLegalizeGICombiner.inc...
11.510 [382/12/1690] Building X86GenGlobalISel.inc...
11.793 [382/11/1691] Building AArch64GenSystemOperands.inc...
11.833 [382/10/1692] Building AArch64GenFastISel.inc...
12.275 [382/9/1693] Building X86GenSubtargetInfo.inc...
12.348 [382/8/1694] Building AArch64GenRegisterInfo.inc...
12.447 [382/7/1695] Building AArch64GenGlobalISel.inc...

```

</details>

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


More information about the llvm-commits mailing list