[clang] [llvm] [LTOBackend] Add -filter-print-modules= for save-temps to only dump specific modules. (PR #175696)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 12 18:24:34 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 167947 tests passed
* 2987 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.CodeGen/thinlto-savetemps-mod.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/Output/thinlto-savetemps-mod.ll.tmp.dir
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/Output/thinlto-savetemps-mod.ll.tmp.dir
# note: command had no output on stdout or stderr
# RUN: at line 2
split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/thinlto-savetemps-mod.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/Output/thinlto-savetemps-mod.ll.tmp.dir && cd /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/Output/thinlto-savetemps-mod.ll.tmp.dir
# executed command: split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/thinlto-savetemps-mod.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/Output/thinlto-savetemps-mod.ll.tmp.dir
# note: command had no output on stdout or stderr
# executed command: cd /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/Output/thinlto-savetemps-mod.ll.tmp.dir
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -c -flto=thin -O2  mymul.cpp  -o mymul.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -c -flto=thin -O2 mymul.cpp -o mymul.o
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -c -flto=thin -O2  myfoo.cpp  -o myfoo.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -c -flto=thin -O2 myfoo.cpp -o myfoo.o
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang  -shared -O2 -flto=thin mymul.o myfoo.o   -o libmy.so -Wl,-plugin-opt=save-temps -Wl,-plugin-opt=-filter-print-modules=mymul
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -shared -O2 -flto=thin mymul.o myfoo.o -o libmy.so -Wl,-plugin-opt=save-temps -Wl,-plugin-opt=-filter-print-modules=mymul
# .---command stderr------------
# | /usr/bin/ld: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/../lib/LLVMgold.so: error loading plugin: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory
# | clang: error: linker command failed with exit code 1 (use -v to see invocation)
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list