[clang] [llvm] [LFI][X86] Add X86 LFI target and system instruction rewrites (PR #189569)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 7 00:52:04 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `polly-x86_64-linux-shlib-plugin` running on `polly-x86_64-gce2` while building `clang,llvm` at step 3 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/75/builds/15152
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 3 (annotate) failure: 'python ../llvm.src/polly/ci/polly-x86_64-linux-shlib-plugin.py ...' (failure)
...
[ 68%/91.338s :: 907->2->2010 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86EncodingOptimization.cpp.o
[ 68%/91.348s :: 906->2->2011 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86ShuffleDecode.cpp.o
[ 68%/91.362s :: 905->2->2012 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86AsmBackend.cpp.o
[ 68%/91.387s :: 904->2->2013 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCTargetDesc.cpp.o
[ 69%/91.400s :: 903->2->2014 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCAsmInfo.cpp.o
[ 69%/91.414s :: 902->2->2015 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCCodeEmitter.cpp.o
[ 69%/94.269s :: 901->2->2016 (of 2918)] Building CXX object lib/SandboxIR/CMakeFiles/LLVMSandboxIR.dir/Instruction.cpp.o
[ 69%/94.282s :: 900->2->2017 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MachObjectWriter.cpp.o
[ 69%/94.295s :: 899->2->2018 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MnemonicTables.cpp.o
[ 69%/95.470s :: 898->2->2019 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCLFIRewriter.cpp.o
FAILED: lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCLFIRewriter.cpp.o
ccache /usr/bin/c++ -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/build/llvm.build/lib/Target/X86/MCTargetDesc -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/llvm.src/llvm/lib/Target/X86/MCTargetDesc -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/llvm.src/llvm/lib/Target/X86 -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/build/llvm.build/lib/Target/X86 -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/build/llvm.build/include -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/llvm.src/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fvisibility=hidden -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCLFIRewriter.cpp.o -MF lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCLFIRewriter.cpp.o.d -o lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCLFIRewriter.cpp.o -c /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/llvm.src/llvm/lib/Target/X86/MCTargetDesc/X86MCLFIRewriter.cpp
../../llvm.src/llvm/lib/Target/X86/MCTargetDesc/X86MCLFIRewriter.cpp: In function ‘bool isGR64OrNone(llvm::MCRegister)’:
../../llvm.src/llvm/lib/Target/X86/MCTargetDesc/X86MCLFIRewriter.cpp:69:10: error: ‘X86MCRegisterClasses’ was not declared in this scope
69 | X86MCRegisterClasses[X86::GR64RegClassID].contains(Reg);
| ^~~~~~~~~~~~~~~~~~~~
../../llvm.src/llvm/lib/Target/X86/MCTargetDesc/X86MCLFIRewriter.cpp: In member function ‘void llvm::X86::X86MCLFIRewriter::rewriteFSAccess(const llvm::MCInst&, llvm::MCStreamer&, const llvm::MCSubtargetInfo&)’:
../../llvm.src/llvm/lib/Target/X86/MCTargetDesc/X86MCLFIRewriter.cpp:176:9: error: ‘X86MCRegisterClasses’ was not declared in this scope
176 | X86MCRegisterClasses[X86::GR64RegClassID].contains(DestReg) &&
| ^~~~~~~~~~~~~~~~~~~~
[ 69%/96.620s :: 898->1->2020 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86ELFObjectWriter.cpp.o
ninja: build stopped: subcommand failed.
Running: ccache -sv
Cache directory: /home/worker/.cache/ccache
Config file: /home/worker/.config/ccache/ccache.conf
System config file: /etc/ccache.conf
Stats updated: Tue Jul 7 07:51:30 2026
Cacheable calls: 1939 / 1941 (99.90%)
Hits: 1936 / 1939 (99.85%)
Direct: 1936 / 1936 (100.0%)
Preprocessed: 0 / 1936 ( 0.00%)
Misses: 3 / 1939 ( 0.15%)
Uncacheable calls: 2 / 1941 ( 0.10%)
Compilation failed: 1 / 2 (50.00%)
Unsupported code directive: 1 / 2 (50.00%)
Successful lookups:
Direct: 1936 / 1941 (99.74%)
Preprocessed: 0 / 4 ( 0.00%)
Local storage:
Cache size (GiB): 5.0 / 5.0 (100.0%)
Files: 100176
Hits: 1936 / 1939 (99.85%)
Misses: 3 / 1939 ( 0.15%)
Reads: 3881
Writes: 6
ninja -C llvm.build exited with return code 1.
@@@STEP_FAILURE@@@
Traceback (most recent call last):
File "/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/build/../llvm.src/polly/ci/polly-x86_64-linux-shlib-plugin.py", line 46, in <module>
Step 7 (build-llvm) failure: build-llvm (failure)
...
[ 68%/91.338s :: 907->2->2010 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86EncodingOptimization.cpp.o
[ 68%/91.348s :: 906->2->2011 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86ShuffleDecode.cpp.o
[ 68%/91.362s :: 905->2->2012 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86AsmBackend.cpp.o
[ 68%/91.387s :: 904->2->2013 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCTargetDesc.cpp.o
[ 69%/91.400s :: 903->2->2014 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCAsmInfo.cpp.o
[ 69%/91.414s :: 902->2->2015 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCCodeEmitter.cpp.o
[ 69%/94.269s :: 901->2->2016 (of 2918)] Building CXX object lib/SandboxIR/CMakeFiles/LLVMSandboxIR.dir/Instruction.cpp.o
[ 69%/94.282s :: 900->2->2017 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MachObjectWriter.cpp.o
[ 69%/94.295s :: 899->2->2018 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MnemonicTables.cpp.o
[ 69%/95.470s :: 898->2->2019 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCLFIRewriter.cpp.o
FAILED: lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCLFIRewriter.cpp.o
ccache /usr/bin/c++ -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/build/llvm.build/lib/Target/X86/MCTargetDesc -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/llvm.src/llvm/lib/Target/X86/MCTargetDesc -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/llvm.src/llvm/lib/Target/X86 -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/build/llvm.build/lib/Target/X86 -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/build/llvm.build/include -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/llvm.src/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fvisibility=hidden -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCLFIRewriter.cpp.o -MF lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCLFIRewriter.cpp.o.d -o lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCLFIRewriter.cpp.o -c /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/llvm.src/llvm/lib/Target/X86/MCTargetDesc/X86MCLFIRewriter.cpp
../../llvm.src/llvm/lib/Target/X86/MCTargetDesc/X86MCLFIRewriter.cpp: In function ‘bool isGR64OrNone(llvm::MCRegister)’:
../../llvm.src/llvm/lib/Target/X86/MCTargetDesc/X86MCLFIRewriter.cpp:69:10: error: ‘X86MCRegisterClasses’ was not declared in this scope
69 | X86MCRegisterClasses[X86::GR64RegClassID].contains(Reg);
| ^~~~~~~~~~~~~~~~~~~~
../../llvm.src/llvm/lib/Target/X86/MCTargetDesc/X86MCLFIRewriter.cpp: In member function ‘void llvm::X86::X86MCLFIRewriter::rewriteFSAccess(const llvm::MCInst&, llvm::MCStreamer&, const llvm::MCSubtargetInfo&)’:
../../llvm.src/llvm/lib/Target/X86/MCTargetDesc/X86MCLFIRewriter.cpp:176:9: error: ‘X86MCRegisterClasses’ was not declared in this scope
176 | X86MCRegisterClasses[X86::GR64RegClassID].contains(DestReg) &&
| ^~~~~~~~~~~~~~~~~~~~
[ 69%/96.620s :: 898->1->2020 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86ELFObjectWriter.cpp.o
ninja: build stopped: subcommand failed.
Running: ccache -sv
Cache directory: /home/worker/.cache/ccache
Config file: /home/worker/.config/ccache/ccache.conf
System config file: /etc/ccache.conf
Stats updated: Tue Jul 7 07:51:30 2026
Cacheable calls: 1939 / 1941 (99.90%)
Hits: 1936 / 1939 (99.85%)
Direct: 1936 / 1936 (100.0%)
Preprocessed: 0 / 1936 ( 0.00%)
Misses: 3 / 1939 ( 0.15%)
Uncacheable calls: 2 / 1941 ( 0.10%)
Compilation failed: 1 / 2 (50.00%)
Unsupported code directive: 1 / 2 (50.00%)
Successful lookups:
Direct: 1936 / 1941 (99.74%)
Preprocessed: 0 / 4 ( 0.00%)
Local storage:
Cache size (GiB): 5.0 / 5.0 (100.0%)
Files: 100176
Hits: 1936 / 1939 (99.85%)
Misses: 3 / 1939 ( 0.15%)
Reads: 3881
Writes: 6
ninja -C llvm.build exited with return code 1.
Traceback (most recent call last):
File "/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib-plugin/build/../llvm.src/polly/ci/polly-x86_64-linux-shlib-plugin.py", line 46, in <module>
w.run_ninja(builddir=llvmbuilddir, ccache_stats=True)
```
</details>
https://github.com/llvm/llvm-project/pull/189569
More information about the cfe-commits
mailing list