[llvm] [Coroutines] Add verifier checks for llvm.coro.begin and llvm.coro.id (PR #192887)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 19 20:32:35 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 133722 tests passed
* 3121 tests skipped
* 8 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.Other/time-passes.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\opt.exe < C:\_work\llvm-project\llvm-project\llvm\test\Other\time-passes.ll -disable-output -passes='default<O2>' -time-passes 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Other\time-passes.ll --check-prefix=TIME
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -disable-output '-passes=default<O2>' -time-passes
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Other\time-passes.ll' --check-prefix=TIME
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Other\time-passes.ll:17:9: error: TIME: expected string not found in input
# | ; TIME: Analysis execution timing report
# | ^
# | <stdin>:1:1: note: scanning from here
# | id argument of llvm.coro.begin must refer to coro.id
# | ^
# | <stdin>:6:3: note: possible intended match here
# | Total Execution Time: 0.0000 seconds (0.0005 wall clock)
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Other\time-passes.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: id argument of llvm.coro.begin must refer to coro.id
# | check:17'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 2: c:\_work\llvm-project\llvm-project\build\bin\opt.exe: -: error: input module is broken!
# | check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3: ===-------------------------------------------------------------------------===
# | check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 4: LLVM IR Parsing
# | check:17'0 ~~~~~~~~~~~~~~~~~
# | 5: ===-------------------------------------------------------------------------===
# | check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 6: Total Execution Time: 0.0000 seconds (0.0005 wall clock)
# | check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:17'1 ? possible intended match
# | 7:
# | check:17'0 ~
# | 8: ---Wall Time--- --- Name ---
# | check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 9: 0.0005 (100.0%) Parse IR
# | check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 10: 0.0005 (100.0%) Total
# | check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 11:
# | check:17'0 ~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.Transforms/PGOProfile/chr_coro.ll</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PGOProfile\chr_coro.ll -passes='require<profile-summary>,function(chr,instcombine,simplifycfg)' -S | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PGOProfile\chr_coro.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' '-passes=require<profile-summary>,function(chr,instcombine,simplifycfg)' -S
# .---command stderr------------
# | cannot run CoroSplit before CoroEarly
# | c:\_work\llvm-project\llvm-project\build\bin\opt.exe: -: error: input module is broken!
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PGOProfile\chr_coro.ll'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PGOProfile\chr_coro.ll
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>LLVM.Transforms/SampleProfile/pseudo-probe-coro-debug-fix.ll</summary>
```
Exit Code: 3221225501
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SampleProfile\pseudo-probe-coro-debug-fix.ll -passes='pseudo-probe,cgscc(coro-split),coro-cleanup,always-inline' -mtriple=x86_64 -pass-remarks=inline -S -o C:\_work\llvm-project\llvm-project\build\test\Transforms\SampleProfile\Output\pseudo-probe-coro-debug-fix.ll.tmp.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' '-passes=pseudo-probe,cgscc(coro-split),coro-cleanup,always-inline' -mtriple=x86_64 -pass-remarks=inline -S -o 'C:\_work\llvm-project\llvm-project\build\test\Transforms\SampleProfile\Output\pseudo-probe-coro-debug-fix.ll.tmp.ll'
# .---command stderr------------
# | cannot run CoroSplit before CoroEarly
# | LLVM ERROR: Broken function
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\opt.exe -passes=pseudo-probe,cgscc(coro-split),coro-cleanup,always-inline -mtriple=x86_64 -pass-remarks=inline -S -o C:\\_work\\llvm-project\\llvm-project\\build\\test\\Transforms\\SampleProfile\\Output\\pseudo-probe-coro-debug-fix.ll.tmp.ll
# | 1. Running pass "cgscc(coro-split)" on module "<stdin>"
# | Exception Code: 0xC000001D
# | #0 0x00007ff73500c516 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x94c516)
# | #1 0x00007ff977ffbb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ff977ffcad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ff734ae988a (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x42988a)
# | #4 0x00007ff734ae9665 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x429665)
# | #5 0x00007ff7370ec43e (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x2a2c43e)
# | #6 0x00007ff73578acc3 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x10cacc3)
# | #7 0x00007ff73578c6a9 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x10cc6a9)
# | #8 0x00007ff73555513d (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0xe9513d)
# | #9 0x00007ff7349f1dbc (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x331dbc)
# | #10 0x00007ff7346c6fb7 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x6fb7)
# | #11 0x00007ff7346c1025 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x1025)
# | #12 0x00007ff73920adc0 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x4b4adc0)
# | #13 0x00007ff97f284cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #14 0x00007ff98985edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
--
```
</details>
### LLVM-Unit
<details>
<summary>LLVM-Unit.Transforms/Coroutines/_/CoroTests_exe/ExtraRematTest/TestCoroRematDefault</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\unittests\Transforms\Coroutines\.\CoroTests.exe --gtest_filter=ExtraRematTest.TestCoroRematDefault
--
unknown file
SEH exception with code 0x3221225501 thrown in the test body.
Stack trace:
```
</details>
<details>
<summary>LLVM-Unit.Transforms/Coroutines/_/CoroTests_exe/ExtraRematTest/TestCoroRematWithCallback</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\unittests\Transforms\Coroutines\.\CoroTests.exe --gtest_filter=ExtraRematTest.TestCoroRematWithCallback
--
unknown file
SEH exception with code 0x3221225501 thrown in the test body.
Stack trace:
```
</details>
<details>
<summary>LLVM-Unit.Transforms/Coroutines/_/CoroTests_exe/ExtraRematTest/TestCoroRematWithCustomABI</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\unittests\Transforms\Coroutines\.\CoroTests.exe --gtest_filter=ExtraRematTest.TestCoroRematWithCustomABI
--
unknown file
SEH exception with code 0x3221225501 thrown in the test body.
Stack trace:
```
</details>
### MLIR
<details>
<summary>MLIR.Target/LLVMIR/Import/intrinsic.ll</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\mlir-translate.exe -import-llvm C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\Import\intrinsic.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\Import\intrinsic.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\mlir-translate.exe' -import-llvm 'C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\Import\intrinsic.ll'
# .---command stderr------------
# | align argument only accepts constants
# | align argument only accepts constants
# | align argument only accepts constants
# | align argument only accepts constants
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\Import\intrinsic.ll'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\Import\intrinsic.ll
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.Target/LLVMIR/llvmir-intrinsics.mlir</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\mlir-translate.exe -mlir-to-llvmir C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\llvmir-intrinsics.mlir | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\llvmir-intrinsics.mlir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\mlir-translate.exe' -mlir-to-llvmir 'C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\llvmir-intrinsics.mlir'
# .---command stderr------------
# | align argument only accepts constants
# | align argument only accepts constants
# | align argument only accepts constants
# | align argument only accepts constants
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\llvmir-intrinsics.mlir'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\llvmir-intrinsics.mlir
# `-----------------------------
# error: command failed with exit status: 2
--
```
</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/192887
More information about the llvm-commits
mailing list