[llvm-branch-commits] [llvm] [lit] Add lit.llvm.fn_extract: --param fn=NAMES prepends llvm-extract (PR #200351)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri May 29 03:04:29 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 134695 tests passed
* 3278 tests skipped
* 1 test failed

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

### lit
<details>
<summary>lit.lit/fn-extract.py</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 5
env -u FILECHECK_OPTS "C:\Python312\python.exe" C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit.py -j1 -D use_normalized_slashes=0 --order=lexical -a --param fn=foo Inputs/fn-extract/sample.ll    | FileCheck --check-prefix=SINGLE C:\_work\llvm-project\llvm-project\build\utils\lit\tests\fn-extract.py
# executed command: env -u FILECHECK_OPTS 'C:\Python312\python.exe' 'C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit.py' -j1 -D use_normalized_slashes=0 --order=lexical -a --param fn=foo Inputs/fn-extract/sample.ll
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: FileCheck --check-prefix=SINGLE 'C:\_work\llvm-project\llvm-project\build\utils\lit\tests\fn-extract.py'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\build\utils\lit\tests\fn-extract.py:11:11: error: SINGLE: expected string not found in input
# | # SINGLE: llvm-extract --func=foo {{.*}}sample.ll -o - | echo opt -S -passes="instcombine" | echo FileCheck {{.*}}sample.ll
# |           ^
# | <stdin>:9:252: note: scanning from here
# | llvm-extract --func=foo C:/_work/llvm-project/llvm-project/build/utils/lit/tests/Inputs/fn-extract/sample.ll -o - | echo opt -S -passes='instcombine' | echo FileCheck C:/_work/llvm-project/llvm-project/build/utils/lit/tests/Inputs/fn-extract/sample.ll
# |                                                                                                                                                                                                                                                            ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\build\utils\lit\tests\fn-extract.py
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: -- Testing: 1 tests, 1 workers -- 
# |           2: FAIL: fn-extract :: sample.ll (1 of 1) 
# |           3: ******************** TEST 'fn-extract :: sample.ll' FAILED ******************** 
# |           4: Exit Code: 1 
# |           5:  
# |           6: Command Output (stdout): 
# |           7: -- 
# |           8: # RUN: at line 1 
# |           9: llvm-extract --func=foo C:/_work/llvm-project/llvm-project/build/utils/lit/tests/Inputs/fn-extract/sample.ll -o - | echo opt -S -passes='instcombine' | echo FileCheck C:/_work/llvm-project/llvm-project/build/utils/lit/tests/Inputs/fn-extract/sample.ll 
# | check:11                                                                                                                                                                                                                                                                X error: no match found
# |          10: # executed command: llvm-extract --func=foo C:/_work/llvm-project/llvm-project/build/utils/lit/tests/Inputs/fn-extract/sample.ll -o - 
# | check:11     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          11: # .---command stderr------------ 
# | check:11     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          12: # | llvm-extract.exe: program doesn't contain function named 'foo'! 
# | check:11     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          13: # `----------------------------- 
# | check:11     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          14: # error: command failed with exit status: 1 
# | check:11     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# 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/200351


More information about the llvm-branch-commits mailing list