[flang-commits] [flang] [flang][OpenMP] Support lowering of metadirective (part 1) (PR #193664)

via flang-commits flang-commits at lists.llvm.org
Wed Apr 22 22:25:11 PDT 2026


github-actions[bot] wrote:

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

* 4158 tests passed
* 246 tests skipped
* 6 tests failed

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

### Flang
<details>
<summary>Flang.Lower/OpenMP/metadirective-device-arch-codegen.f90</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -cpp -DGPU_ARCH=amdgcn -fopenmp -emit-hlfir -fopenmp-version=50 C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-arch-codegen.f90 -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefixes=HOST,COMMON C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-arch-codegen.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -cpp -DGPU_ARCH=amdgcn -fopenmp -emit-hlfir -fopenmp-version=50 'C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-arch-codegen.f90' -o -
# .---command stderr------------
# | warning: OpenMP support for version 50 in flang is still incomplete
# | Assertion failed: converter.isPresentShallowLookup(*sym) && "Expected symbol to be in symbol table.", file C:\_work\llvm-project\llvm-project\flang\lib\Lower\OpenMP\OpenMP.cpp, line 721
# | 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\\flang.exe -fc1 -cpp -DGPU_ARCH=amdgcn -fopenmp -emit-hlfir -fopenmp-version=50 C:\\_work\\llvm-project\\llvm-project\\flang\\test\\Lower\\OpenMP\\metadirective-device-arch-codegen.f90 -o -
# | Exception Code: 0xC000001D
# |  #0 0x00007ff69dfcd156 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x1f2d156)
# |  #1 0x00007ffe31c8bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffe31c8cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ffe31c8e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007ffe31c8e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff6a2a037a9 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69637a9)
# |  #6 0x00007ff6a29feda1 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x695eda1)
# |  #7 0x00007ff6a29f5d94 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6955d94)
# |  #8 0x00007ff6a29e28c5 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69428c5)
# |  #9 0x00007ff6a29ffa15 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x695fa15)
# | #10 0x00007ff6a29f53ae mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69553ae)
# | #11 0x00007ff6a29e3ead mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6943ead)
# | #12 0x00007ff6a2a1f110 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x697f110)
# | #13 0x00007ff6a29d7e8a mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6937e8a)
# | #14 0x00007ff6a29d24af mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69324af)
# | #15 0x00007ff6a0a2cdc8 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x498cdc8)
# | #16 0x00007ff6a09fd65b mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x495d65b)
# | #17 0x00007ff6a29e6efe mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6946efe)
# | #18 0x00007ff6a29d6fc2 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6936fc2)
# | #19 0x00007ff6a29d24af mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69324af)
# | #20 0x00007ff6a0a2cdc8 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x498cdc8)
# | #21 0x00007ff6a09fd65b mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x495d65b)
# | #22 0x00007ff6a0a3363f mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x499363f)
# | #23 0x00007ff6a09f1c7c mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x4951c7c)
# | #24 0x00007ff69e0fd52b (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x205d52b)
# | #25 0x00007ff69e068bfd (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x1fc8bfd)
# | #26 0x00007ff69c318153 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x278153)
# | #27 0x00007ff69c333461 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x293461)
# | #28 0x00007ff69c0a535c (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x535c)
# | #29 0x00007ff69c0a26ae (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x26ae)
# | #30 0x00007ff6a594ff40 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x98aff40)
# | #31 0x00007ffe38654cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #32 0x00007ffe428bedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefixes=HOST,COMMON 'C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-arch-codegen.f90'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefixes=HOST,COMMON C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-arch-codegen.f90
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>Flang.Lower/OpenMP/metadirective-device-isa.f90</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -fopenmp -emit-hlfir -fopenmp-version=50 -target-feature +neon C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-isa.f90 -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=NEON C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-isa.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -fopenmp -emit-hlfir -fopenmp-version=50 -target-feature +neon 'C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-isa.f90' -o -
# .---command stderr------------
# | warning: OpenMP support for version 50 in flang is still incomplete
# | '+neon' is not a recognized feature for this target (ignoring feature)
# | Assertion failed: converter.isPresentShallowLookup(*sym) && "Expected symbol to be in symbol table.", file C:\_work\llvm-project\llvm-project\flang\lib\Lower\OpenMP\OpenMP.cpp, line 721
# | 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\\flang.exe -fc1 -fopenmp -emit-hlfir -fopenmp-version=50 -target-feature +neon C:\\_work\\llvm-project\\llvm-project\\flang\\test\\Lower\\OpenMP\\metadirective-device-isa.f90 -o -
# | Exception Code: 0xC000001D
# |  #0 0x00007ff69dfcd156 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x1f2d156)
# |  #1 0x00007ffe31c8bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffe31c8cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ffe31c8e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007ffe31c8e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff6a2a037a9 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69637a9)
# |  #6 0x00007ff6a29feda1 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x695eda1)
# |  #7 0x00007ff6a29f5d94 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6955d94)
# |  #8 0x00007ff6a29e28c5 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69428c5)
# |  #9 0x00007ff6a29ffa15 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x695fa15)
# | #10 0x00007ff6a29f53ae mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69553ae)
# | #11 0x00007ff6a29e3ead mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6943ead)
# | #12 0x00007ff6a2a1f110 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x697f110)
# | #13 0x00007ff6a29d25dc mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69325dc)
# | #14 0x00007ff6a0a2cf65 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x498cf65)
# | #15 0x00007ff6a09fd68d mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x495d68d)
# | #16 0x00007ff6a0a3363f mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x499363f)
# | #17 0x00007ff6a09f1c7c mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x4951c7c)
# | #18 0x00007ff69e0fd52b (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x205d52b)
# | #19 0x00007ff69e068bfd (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x1fc8bfd)
# | #20 0x00007ff69c318153 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x278153)
# | #21 0x00007ff69c333461 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x293461)
# | #22 0x00007ff69c0a535c (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x535c)
# | #23 0x00007ff69c0a26ae (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x26ae)
# | #24 0x00007ff6a594ff40 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x98aff40)
# | #25 0x00007ffe38654cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #26 0x00007ffe428bedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=NEON 'C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-isa.f90'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=NEON C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-isa.f90
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>Flang.Lower/OpenMP/metadirective-device-kind.f90</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -fopenmp -emit-hlfir -fopenmp-version=50 C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-kind.f90 -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-kind.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -fopenmp -emit-hlfir -fopenmp-version=50 'C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-kind.f90' -o -
# .---command stderr------------
# | warning: OpenMP support for version 50 in flang is still incomplete
# | Assertion failed: converter.isPresentShallowLookup(*sym) && "Expected symbol to be in symbol table.", file C:\_work\llvm-project\llvm-project\flang\lib\Lower\OpenMP\OpenMP.cpp, line 721
# | 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\\flang.exe -fc1 -fopenmp -emit-hlfir -fopenmp-version=50 C:\\_work\\llvm-project\\llvm-project\\flang\\test\\Lower\\OpenMP\\metadirective-device-kind.f90 -o -
# | Exception Code: 0xC000001D
# |  #0 0x00007ff69dfcd156 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x1f2d156)
# |  #1 0x00007ffe31c8bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffe31c8cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ffe31c8e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007ffe31c8e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff6a2a037a9 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69637a9)
# |  #6 0x00007ff6a29feda1 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x695eda1)
# |  #7 0x00007ff6a29f5d94 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6955d94)
# |  #8 0x00007ff6a29e28c5 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69428c5)
# |  #9 0x00007ff6a29ffa15 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x695fa15)
# | #10 0x00007ff6a29f53ae mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69553ae)
# | #11 0x00007ff6a29e3ead mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6943ead)
# | #12 0x00007ff6a2a1f110 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x697f110)
# | #13 0x00007ff6a29d25dc mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69325dc)
# | #14 0x00007ff6a0a2cf65 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x498cf65)
# | #15 0x00007ff6a09fd68d mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x495d68d)
# | #16 0x00007ff6a0a3363f mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x499363f)
# | #17 0x00007ff6a09f1c7c mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x4951c7c)
# | #18 0x00007ff69e0fd52b (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x205d52b)
# | #19 0x00007ff69e068bfd (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x1fc8bfd)
# | #20 0x00007ff69c318153 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x278153)
# | #21 0x00007ff69c333461 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x293461)
# | #22 0x00007ff69c0a535c (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x535c)
# | #23 0x00007ff69c0a26ae (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x26ae)
# | #24 0x00007ff6a594ff40 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x98aff40)
# | #25 0x00007ffe38654cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #26 0x00007ffe428bedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-device-kind.f90'
# .---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\flang\test\Lower\OpenMP\metadirective-device-kind.f90
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>Flang.Lower/OpenMP/metadirective-implementation.f90</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -fopenmp -emit-hlfir -fopenmp-version=50 C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-implementation.f90 -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-implementation.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -fopenmp -emit-hlfir -fopenmp-version=50 'C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-implementation.f90' -o -
# .---command stderr------------
# | warning: OpenMP support for version 50 in flang is still incomplete
# | Assertion failed: converter.isPresentShallowLookup(*sym) && "Expected symbol to be in symbol table.", file C:\_work\llvm-project\llvm-project\flang\lib\Lower\OpenMP\OpenMP.cpp, line 721
# | 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\\flang.exe -fc1 -fopenmp -emit-hlfir -fopenmp-version=50 C:\\_work\\llvm-project\\llvm-project\\flang\\test\\Lower\\OpenMP\\metadirective-implementation.f90 -o -
# | Exception Code: 0xC000001D
# |  #0 0x00007ff69dfcd156 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x1f2d156)
# |  #1 0x00007ffe31c8bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffe31c8cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ffe31c8e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007ffe31c8e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff6a2a037a9 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69637a9)
# |  #6 0x00007ff6a29feda1 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x695eda1)
# |  #7 0x00007ff6a29f5d94 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6955d94)
# |  #8 0x00007ff6a29e28c5 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69428c5)
# |  #9 0x00007ff6a29ffa15 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x695fa15)
# | #10 0x00007ff6a29f53ae mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69553ae)
# | #11 0x00007ff6a29e3ead mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6943ead)
# | #12 0x00007ff6a2a1f110 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x697f110)
# | #13 0x00007ff6a29d25dc mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69325dc)
# | #14 0x00007ff6a0a2cf65 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x498cf65)
# | #15 0x00007ff6a09fd68d mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x495d68d)
# | #16 0x00007ff6a0a3363f mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x499363f)
# | #17 0x00007ff6a09f1c7c mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x4951c7c)
# | #18 0x00007ff69e0fd52b (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x205d52b)
# | #19 0x00007ff69e068bfd (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x1fc8bfd)
# | #20 0x00007ff69c318153 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x278153)
# | #21 0x00007ff69c333461 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x293461)
# | #22 0x00007ff69c0a535c (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x535c)
# | #23 0x00007ff69c0a26ae (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x26ae)
# | #24 0x00007ff6a594ff40 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x98aff40)
# | #25 0x00007ffe38654cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #26 0x00007ffe428bedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-implementation.f90'
# .---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\flang\test\Lower\OpenMP\metadirective-implementation.f90
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>Flang.Lower/OpenMP/metadirective-loop.f90</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -fopenmp -emit-hlfir -fopenmp-version=50 C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-loop.f90 -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-loop.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -fopenmp -emit-hlfir -fopenmp-version=50 'C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-loop.f90' -o -
# .---command stderr------------
# | warning: OpenMP support for version 50 in flang is still incomplete
# | Assertion failed: converter.isPresentShallowLookup(*sym) && "Expected symbol to be in symbol table.", file C:\_work\llvm-project\llvm-project\flang\lib\Lower\OpenMP\OpenMP.cpp, line 721
# | 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\\flang.exe -fc1 -fopenmp -emit-hlfir -fopenmp-version=50 C:\\_work\\llvm-project\\llvm-project\\flang\\test\\Lower\\OpenMP\\metadirective-loop.f90 -o -
# | Exception Code: 0xC000001D
# |  #0 0x00007ff69dfcd156 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x1f2d156)
# |  #1 0x00007ffe31c8bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffe31c8cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ffe31c8e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007ffe31c8e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff6a2a037a9 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69637a9)
# |  #6 0x00007ff6a29feda1 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x695eda1)
# |  #7 0x00007ff6a29f5d94 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6955d94)
# |  #8 0x00007ff6a29e28c5 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69428c5)
# |  #9 0x00007ff6a29ffa15 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x695fa15)
# | #10 0x00007ff6a29f53ae mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69553ae)
# | #11 0x00007ff6a29e3ead mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6943ead)
# | #12 0x00007ff6a2a1f110 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x697f110)
# | #13 0x00007ff6a29d25dc mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69325dc)
# | #14 0x00007ff6a0a2cf65 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x498cf65)
# | #15 0x00007ff6a09fd68d mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x495d68d)
# | #16 0x00007ff6a0a3363f mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x499363f)
# | #17 0x00007ff6a09f1c7c mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x4951c7c)
# | #18 0x00007ff69e0fd52b (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x205d52b)
# | #19 0x00007ff69e068bfd (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x1fc8bfd)
# | #20 0x00007ff69c318153 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x278153)
# | #21 0x00007ff69c333461 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x293461)
# | #22 0x00007ff69c0a535c (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x535c)
# | #23 0x00007ff69c0a26ae (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x26ae)
# | #24 0x00007ff6a594ff40 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x98aff40)
# | #25 0x00007ffe38654cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #26 0x00007ffe428bedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-loop.f90'
# .---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\flang\test\Lower\OpenMP\metadirective-loop.f90
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>Flang.Lower/OpenMP/metadirective-target-device.f90</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -fopenmp -emit-hlfir -fopenmp-version=52 C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-target-device.f90 -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=HOST C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-target-device.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -fopenmp -emit-hlfir -fopenmp-version=52 'C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-target-device.f90' -o -
# .---command stderr------------
# | warning: OpenMP support for version 52 in flang is still incomplete
# | Assertion failed: converter.isPresentShallowLookup(*sym) && "Expected symbol to be in symbol table.", file C:\_work\llvm-project\llvm-project\flang\lib\Lower\OpenMP\OpenMP.cpp, line 721
# | 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\\flang.exe -fc1 -fopenmp -emit-hlfir -fopenmp-version=52 C:\\_work\\llvm-project\\llvm-project\\flang\\test\\Lower\\OpenMP\\metadirective-target-device.f90 -o -
# | Exception Code: 0xC000001D
# |  #0 0x00007ff69dfcd156 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x1f2d156)
# |  #1 0x00007ffe31c8bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffe31c8cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ffe31c8e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007ffe31c8e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff6a2a037a9 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69637a9)
# |  #6 0x00007ff6a29feda1 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x695eda1)
# |  #7 0x00007ff6a29f5d94 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6955d94)
# |  #8 0x00007ff6a29e28c5 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69428c5)
# |  #9 0x00007ff6a29ffa15 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x695fa15)
# | #10 0x00007ff6a29f53ae mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69553ae)
# | #11 0x00007ff6a29e3ead mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x6943ead)
# | #12 0x00007ff6a2a1f110 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x697f110)
# | #13 0x00007ff6a29d25dc mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x69325dc)
# | #14 0x00007ff6a0a2cf65 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x498cf65)
# | #15 0x00007ff6a09fd68d mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x495d68d)
# | #16 0x00007ff6a0a3363f mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x499363f)
# | #17 0x00007ff6a09f1c7c mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x4951c7c)
# | #18 0x00007ff69e0fd52b (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x205d52b)
# | #19 0x00007ff69e068bfd (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x1fc8bfd)
# | #20 0x00007ff69c318153 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x278153)
# | #21 0x00007ff69c333461 (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x293461)
# | #22 0x00007ff69c0a535c (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x535c)
# | #23 0x00007ff69c0a26ae (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x26ae)
# | #24 0x00007ff6a594ff40 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\flang.exe+0x98aff40)
# | #25 0x00007ffe38654cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #26 0x00007ffe428bedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=HOST 'C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-target-device.f90'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=HOST C:\_work\llvm-project\llvm-project\flang\test\Lower\OpenMP\metadirective-target-device.f90
# `-----------------------------
# 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/193664


More information about the flang-commits mailing list