[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:49:09 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `polly-x86_64-linux-shlib` 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/99/builds/14677
<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.py ...' (failure)
...
[ 68%/4827.556s :: 912->2->2005 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86ATTInstPrinter.cpp.o
[ 68%/4827.564s :: 911->2->2006 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86InstComments.cpp.o
[ 68%/4830.228s :: 910->2->2007 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86InstPrinterCommon.cpp.o
[ 68%/4830.239s :: 909->2->2008 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86ShuffleDecode.cpp.o
[ 68%/4831.352s :: 908->2->2009 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86EncodingOptimization.cpp.o
[ 68%/4837.337s :: 907->2->2010 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86AsmBackend.cpp.o
[ 68%/4840.457s :: 906->2->2011 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCAsmInfo.cpp.o
[ 68%/4845.931s :: 905->2->2012 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCCodeEmitter.cpp.o
[ 68%/4846.629s :: 904->2->2013 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCTargetDesc.cpp.o
[ 69%/4849.942s :: 903->2->2014 (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/build/llvm.build/lib/Target/X86/MCTargetDesc -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib/llvm.src/llvm/lib/Target/X86/MCTargetDesc -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib/llvm.src/llvm/lib/Target/X86 -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib/build/llvm.build/lib/Target/X86 -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib/build/llvm.build/include -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib/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/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%/4850.424s :: 903->1->2015 (of 2918)] 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 07:48:09 2026
Cacheable calls: 1935 / 1937 (99.90%)
Hits: 812 / 1935 (41.96%)
Direct: 812 / 812 (100.0%)
Preprocessed: 0 / 812 ( 0.00%)
Misses: 1123 / 1935 (58.04%)
Uncacheable calls: 2 / 1937 ( 0.10%)
Compilation failed: 1 / 2 (50.00%)
Unsupported code directive: 1 / 2 (50.00%)
Successful lookups:
Direct: 812 / 1937 (41.92%)
Preprocessed: 0 / 1124 ( 0.00%)
Local storage:
Cache size (GiB): 5.0 / 5.0 (99.99%)
Files: 100173
Cleanups: 14
Hits: 812 / 1935 (41.96%)
Misses: 1123 / 1935 (58.04%)
Reads: 3873
Writes: 2246
ninja -C llvm.build exited with return code 1.
@@@STEP_FAILURE@@@
Traceback (most recent call last):
Step 7 (build-llvm) failure: build-llvm (failure)
...
[ 68%/4827.556s :: 912->2->2005 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86ATTInstPrinter.cpp.o
[ 68%/4827.564s :: 911->2->2006 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86InstComments.cpp.o
[ 68%/4830.228s :: 910->2->2007 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86InstPrinterCommon.cpp.o
[ 68%/4830.239s :: 909->2->2008 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86ShuffleDecode.cpp.o
[ 68%/4831.352s :: 908->2->2009 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86EncodingOptimization.cpp.o
[ 68%/4837.337s :: 907->2->2010 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86AsmBackend.cpp.o
[ 68%/4840.457s :: 906->2->2011 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCAsmInfo.cpp.o
[ 68%/4845.931s :: 905->2->2012 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCCodeEmitter.cpp.o
[ 68%/4846.629s :: 904->2->2013 (of 2918)] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCTargetDesc.cpp.o
[ 69%/4849.942s :: 903->2->2014 (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/build/llvm.build/lib/Target/X86/MCTargetDesc -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib/llvm.src/llvm/lib/Target/X86/MCTargetDesc -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib/llvm.src/llvm/lib/Target/X86 -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib/build/llvm.build/lib/Target/X86 -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib/build/llvm.build/include -I/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shlib/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/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%/4850.424s :: 903->1->2015 (of 2918)] 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 07:48:09 2026
Cacheable calls: 1935 / 1937 (99.90%)
Hits: 812 / 1935 (41.96%)
Direct: 812 / 812 (100.0%)
Preprocessed: 0 / 812 ( 0.00%)
Misses: 1123 / 1935 (58.04%)
Uncacheable calls: 2 / 1937 ( 0.10%)
Compilation failed: 1 / 2 (50.00%)
Unsupported code directive: 1 / 2 (50.00%)
Successful lookups:
Direct: 812 / 1937 (41.92%)
Preprocessed: 0 / 1124 ( 0.00%)
Local storage:
Cache size (GiB): 5.0 / 5.0 (99.99%)
Files: 100173
Cleanups: 14
Hits: 812 / 1935 (41.96%)
Misses: 1123 / 1935 (58.04%)
Reads: 3873
Writes: 2246
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/build/../llvm.src/polly/ci/polly-x86_64-linux-shlib.py", line 46, in <module>
```
</details>
https://github.com/llvm/llvm-project/pull/189569
More information about the cfe-commits
mailing list