[clang] [llvm] [LFI][X86] Add X86 LFI target and system instruction rewrites (PR #189569)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 7 02:13:40 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `polly-x86_64-linux-shared-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/118/builds/14565
<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-shared-plugin.py ...' (failure)
...
[ 66%/4693.212s :: 1009->2->2033 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86InstComments.cpp.o
[ 66%/4693.259s :: 1008->2->2034 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86IntelInstPrinter.cpp.o
[ 66%/4695.878s :: 1007->2->2035 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86InstPrinterCommon.cpp.o
[ 66%/4695.890s :: 1006->2->2036 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86ShuffleDecode.cpp.o
[ 66%/4697.046s :: 1005->2->2037 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86EncodingOptimization.cpp.o
[ 66%/4702.978s :: 1004->2->2038 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86AsmBackend.cpp.o
[ 67%/4706.069s :: 1003->2->2039 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCAsmInfo.cpp.o
[ 67%/4711.540s :: 1002->2->2040 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCCodeEmitter.cpp.o
[ 67%/4712.438s :: 1001->2->2041 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCTargetDesc.cpp.o
[ 67%/4715.561s :: 1000->2->2042 (of 3043)] 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-shared-plugin/build/llvm.build/lib/Target/X86/MCTargetDesc -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/llvm.src/llvm/lib/Target/X86/MCTargetDesc -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/llvm.src/llvm/lib/Target/X86 -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/lib/Target/X86 -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/include -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-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 -fPIC -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-shared-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) &&
| ^~~~~~~~~~~~~~~~~~~~
[ 67%/4716.144s :: 1000->1->2043 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MachObjectWriter.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 09:13:10 2026
Cacheable calls: 1940 / 1942 (99.90%)
Hits: 847 / 1940 (43.66%)
Direct: 847 / 847 (100.0%)
Preprocessed: 0 / 847 ( 0.00%)
Misses: 1093 / 1940 (56.34%)
Uncacheable calls: 2 / 1942 ( 0.10%)
Compilation failed: 1 / 2 (50.00%)
Unsupported code directive: 1 / 2 (50.00%)
Successful lookups:
Direct: 847 / 1942 (43.61%)
Preprocessed: 0 / 1094 ( 0.00%)
Local storage:
Cache size (GiB): 5.0 / 5.0 (99.99%)
Files: 100013
Cleanups: 15
Hits: 847 / 1940 (43.66%)
Misses: 1093 / 1940 (56.34%)
Reads: 3883
Writes: 2186
ninja -C llvm.build exited with return code 1.
@@@STEP_FAILURE@@@
Traceback (most recent call last):
Step 7 (build-llvm) failure: build-llvm (failure)
...
[ 66%/4693.212s :: 1009->2->2033 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86InstComments.cpp.o
[ 66%/4693.259s :: 1008->2->2034 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86IntelInstPrinter.cpp.o
[ 66%/4695.878s :: 1007->2->2035 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86InstPrinterCommon.cpp.o
[ 66%/4695.890s :: 1006->2->2036 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86ShuffleDecode.cpp.o
[ 66%/4697.046s :: 1005->2->2037 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86EncodingOptimization.cpp.o
[ 66%/4702.978s :: 1004->2->2038 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86AsmBackend.cpp.o
[ 67%/4706.069s :: 1003->2->2039 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCAsmInfo.cpp.o
[ 67%/4711.540s :: 1002->2->2040 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCCodeEmitter.cpp.o
[ 67%/4712.438s :: 1001->2->2041 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCTargetDesc.cpp.o
[ 67%/4715.561s :: 1000->2->2042 (of 3043)] 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-shared-plugin/build/llvm.build/lib/Target/X86/MCTargetDesc -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/llvm.src/llvm/lib/Target/X86/MCTargetDesc -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/llvm.src/llvm/lib/Target/X86 -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/lib/Target/X86 -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/include -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-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 -fPIC -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-shared-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) &&
| ^~~~~~~~~~~~~~~~~~~~
[ 67%/4716.144s :: 1000->1->2043 (of 3043)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MachObjectWriter.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 09:13:10 2026
Cacheable calls: 1940 / 1942 (99.90%)
Hits: 847 / 1940 (43.66%)
Direct: 847 / 847 (100.0%)
Preprocessed: 0 / 847 ( 0.00%)
Misses: 1093 / 1940 (56.34%)
Uncacheable calls: 2 / 1942 ( 0.10%)
Compilation failed: 1 / 2 (50.00%)
Unsupported code directive: 1 / 2 (50.00%)
Successful lookups:
Direct: 847 / 1942 (43.61%)
Preprocessed: 0 / 1094 ( 0.00%)
Local storage:
Cache size (GiB): 5.0 / 5.0 (99.99%)
Files: 100013
Cleanups: 15
Hits: 847 / 1940 (43.66%)
Misses: 1093 / 1940 (56.34%)
Reads: 3883
Writes: 2186
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-shared-plugin/build/../llvm.src/polly/ci/polly-x86_64-linux-shared-plugin.py", line 46, in <module>
```
</details>
https://github.com/llvm/llvm-project/pull/189569
More information about the llvm-commits
mailing list