[flang-commits] [flang] [Flang] [OpenMP] Run `MarkDeclareTarget` pass again before `HostOpFiltering` (PR #210049)

via flang-commits flang-commits at lists.llvm.org
Fri Jul 17 06:40:19 PDT 2026


github-actions[bot] wrote:

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

* 4642 tests passed
* 135 tests skipped
* 1 test failed

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

### Flang
<details>
<summary>Flang.Fir/basic-program.fir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
tco /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/basic-program.fir | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/basic-program.fir
# executed command: tco /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/basic-program.fir
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/basic-program.fir
# note: command had no output on stdout or stderr
# RUN: at line 2
tco /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/basic-program.fir --mlir-pass-statistics --mlir-pass-statistics-display=pipeline 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/basic-program.fir --check-prefix=PASSES
# executed command: tco /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/basic-program.fir --mlir-pass-statistics --mlir-pass-statistics-display=pipeline
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/basic-program.fir --check-prefix=PASSES
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/basic-program.fir:188:17: error: PASSES-NEXT: is not on the line after the previous match
# | // PASSES-NEXT: HostOpFilteringPass
# |                 ^
# | <stdin>:187:1: note: 'next' match was here
# | HostOpFilteringPass
# | ^
# | <stdin>:185:19: note: previous match ended here
# | EmitMIFGlobalCtors
# |                   ^
# | <stdin>:186:1: note: non-matching line after previous match is here
# | MarkDeclareTargetPass
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/basic-program.fir
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |           180: 'func.func' Pipeline 
# |           181:  FunctionAttr 
# |           182:  LowerNontemporalPass 
# |           183: FIRToLLVMLowering 
# |           184: ReconcileUnrealizedCastsPass 
# |           185: EmitMIFGlobalCtors 
# | next:188'0                      {   search range start (exclusive)
# |           186: MarkDeclareTargetPass 
# |           187: HostOpFilteringPass 
# | next:188'1     !~~~~~~~~~~~~~~~~~~   error: match on wrong line
# |           188: 'llvm.func' Pipeline 
# |           189:  StackToSharedPass 
# |           190: PrepareForOMPOffloadPrivatizationPass 
# |           191: (anonymous namespace)::LLVMIRLoweringPass 
# |           192:  
# | next:188'2      } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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/210049


More information about the flang-commits mailing list