[Mlir-commits] [flang] [llvm] [mlir] [Flang][OpenMP] Implement DEPEND clause for TASKWAIT directive (PR #193568)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Apr 22 12:51:26 PDT 2026


github-actions[bot] wrote:

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

* 173117 tests passed
* 3219 tests skipped
* 2 tests failed

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

### Clang
<details>
<summary>Clang.SemaTemplate/concepts-out-of-line-def.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++20 -Wno-c++26-extensions -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaTemplate/concepts-out-of-line-def.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++20 -Wno-c++26-extensions -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaTemplate/concepts-out-of-line-def.cpp
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaTemplate/concepts-out-of-line-def.cpp Line 854: out-of-line definition of 'buggy' does not match any declaration in 'PackIndexExpr::TplClass<int>'
# | error: 'expected-note' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaTemplate/concepts-out-of-line-def.cpp Line 845: TplClass defined here
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

### MLIR
<details>
<summary>MLIR.Target/LLVMIR/openmp-todo.mlir</summary>

```
Exit Code: -6

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-translate -mlir-to-llvmir -split-input-file -verify-diagnostics /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Target/LLVMIR/openmp-todo.mlir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-translate -mlir-to-llvmir -split-input-file -verify-diagnostics /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Target/LLVMIR/openmp-todo.mlir
# .---command stdout------------
# | ; ModuleID = 'LLVMDialectModule'
# | source_filename = "LLVMDialectModule"
# | 
# | define void @atomic_hint(ptr %0, ptr %1, i32 %2) {
# |   br label %entry
# | 
# | entry:                                            ; preds = %3
# |   %4 = atomicrmw xchg ptr %0, i32 %2 monotonic, align 4
# |   store i32 %4, ptr %1, align 4
# |   %omp.atomic.read = load atomic i32, ptr %0 monotonic, align 4
# |   store i32 %omp.atomic.read, ptr %1, align 4
# |   store atomic i32 %2, ptr %0 monotonic, align 4
# |   %5 = atomicrmw add ptr %1, i32 %2 monotonic, align 4
# |   %6 = add i32 %5, %2
# |   ret void
# | }
# | 
# | !llvm.module.flags = !{!0}
# | 
# | !0 = !{i32 2, !"Debug Info Version", i32 3}
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# `-----------------------------
# .---command stderr------------
# | mlir-translate: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/BasicBlock.h:238: const Instruction *llvm::BasicBlock::getTerminator() const: Assertion `hasTerminator() && "cannot get terminator of non-well-formed block"' failed.
# | 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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-translate -mlir-to-llvmir -split-input-file -verify-diagnostics /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Target/LLVMIR/openmp-todo.mlir
# |  #0 0x0000000000e8e098 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:880:13
# |  #1 0x0000000000e8b061 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# |  #2 0x0000000000e8f1d1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
# |  #3 0x00007fda31ccd330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x00007fda31d26b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# |  #5 0x00007fda31ccd27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# |  #6 0x00007fda31cb08ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# |  #7 0x00007fda31cb081b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# |  #8 0x00007fda31cc3517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# |  #9 0x0000000002b9fceb operator* /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist_iterator.h:168:5
# | #10 0x0000000002b9fceb front /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/simple_ilist.h:137:30
# | #11 0x0000000002b9fceb front /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Function.h:861:62
# | #12 0x0000000002b9fceb getEntryBlock /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Function.h:810:60
# | #13 0x0000000002b9fceb emitTaskDependencies(llvm::OpenMPIRBuilder&, llvm::SmallVectorImpl<llvm::OpenMPIRBuilder::DependData> const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:2006:38
# | #14 0x0000000002b9f814 llvm::OpenMPIRBuilder::createTaskwait(llvm::OpenMPIRBuilder::LocationDescription const&, llvm::SmallVector<llvm::OpenMPIRBuilder::DependData, 2u>) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:2042:23
# | #15 0x0000000002428343 begin /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:276:45
# | #16 0x0000000002428343 end /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:278:27
# | #17 0x0000000002428343 ~SmallVector /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1229:46
# | #18 0x0000000002428343 convertOmpTaskwaitOp /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp:3489:3
# | #19 0x0000000002428343 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp:8005:20
# | #20 0x0000000002428343 Case<mlir::omp::TaskwaitOp, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp:8004:17)> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/TypeSwitch.h:104:22
# | #21 0x0000000002428343 Case<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp:8004:17)> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/TypeSwitch.h:62:29
# | #22 0x0000000002428343 (anonymous namespace)::OpenMPDialectLLVMIRTranslationInterface::convertOperation(mlir::Operation*, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp:8004:12
# | #23 0x00000000017c946b mlir::LLVM::ModuleTranslation::convertOperationImpl(mlir::Operation&, llvm::IRBuilderBase&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:1004:7
# | #24 0x00000000017c9cc5 mlir::LLVM::ModuleTranslation::convertBlockImpl(mlir::Block&, bool, llvm::IRBuilderBase&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:1054:9
# | #25 0x00000000017cecd5 mlir::LLVM::ModuleTranslation::convertOneFunction(mlir::LLVM::LLVMFuncOp) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:1600:16
# | #26 0x00000000017d2853 mlir::LLVM::ModuleTranslation::convertFunctions() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:2018:9
# | #27 0x00000000017d5ffa mlir::translateModuleToLLVMIR(mlir::Operation*, llvm::LLVMContext&, llvm::StringRef, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:2527:7
# | #28 0x00000000017c32f0 _M_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:199:51
# | #29 0x00000000017c32f0 get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:470:21
# | #30 0x00000000017c32f0 operator bool /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:487:16
# | #31 0x00000000017c32f0 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp:31:14
# | #32 0x00000000017c32f0 __invoke_impl<llvm::LogicalResult, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp:28:7) &, mlir::Operation *, llvm::raw_ostream &> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:61:14
# | #33 0x00000000017c32f0 __invoke_r<llvm::LogicalResult, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp:28:7) &, mlir::Operation *, llvm::raw_ostream &> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:114:9
# | #34 0x00000000017c32f0 std::_Function_handler<llvm::LogicalResult (mlir::Operation*, llvm::raw_ostream&), mlir::registerToLLVMIRTranslation()::$_0>::_M_invoke(std::_Any_data const&, mlir::Operation*&&, llvm::raw_ostream&) /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:290:9
# | #35 0x0000000000fb92e6 operator() /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:591:9
# | #36 0x0000000000fb92e6 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Tools/mlir-translate/Translation.cpp:152:16
# | #37 0x0000000000fb92e6 __invoke_impl<llvm::LogicalResult, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Tools/mlir-translate/Translation.cpp:140:7) &, const std::shared_ptr<llvm::SourceMgr> &, llvm::raw_ostream &, mlir::MLIRContext *> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:61:14
# | #38 0x0000000000fb92e6 __invoke_r<llvm::LogicalResult, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Tools/mlir-translate/Translation.cpp:140:7) &, const std::shared_ptr<llvm::SourceMgr> &, llvm::raw_ostream &, mlir::MLIRContext *> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:114:9
# | #39 0x0000000000fb92e6 std::_Function_handler<llvm::LogicalResult (std::shared_ptr<llvm::SourceMgr> const&, llvm::raw_ostream&, mlir::MLIRContext*), mlir::TranslateFromMLIRRegistration::TranslateFromMLIRRegistration(llvm::StringRef, llvm::StringRef, std::function<llvm::LogicalResult (mlir::Operation*, llvm::raw_ostream&)> const&, std::function<void (mlir::DialectRegistry&)> const&)::$_0>::_M_invoke(std::_Any_data const&, std::shared_ptr<llvm::SourceMgr> const&, llvm::raw_ostream&, mlir::MLIRContext*&&) /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:290:9
# | #40 0x0000000000e5895c operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Tools/mlir-translate/MlirTranslateMain.cpp:180:35
# | #41 0x0000000000e5895c llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>::callback_fn<mlir::mlirTranslateMain(int, char**, llvm::StringRef)::$_1>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
# | #42 0x0000000000fc7dd9 ~unique_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:403:6
# | #43 0x0000000000fc7dd9 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:5
# | #44 0x0000000000fc7dd9 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Support/ToolUtilities.cpp:111:12
# | #45 0x0000000000fc7dd9 llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>::callback_fn<mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
# | #46 0x0000000000fc7d24 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
# | #47 0x0000000000fc7d24 mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef)::$_0::operator()(llvm::StringRef) const /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Support/ToolUtilities.cpp:94:13
# | #48 0x0000000000fc79bf interleave<const llvm::StringRef *, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Support/ToolUtilities.cpp:81:23), (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2301:49), void> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:0:0
# | #49 0x0000000000fc79bf interleave<llvm::SmallVector<llvm::StringRef, 8U>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Support/ToolUtilities.cpp:81:23), llvm::raw_ostream, llvm::StringRef> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2301:3
# | #50 0x0000000000fc79bf mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Support/ToolUtilities.cpp:97:3
# | #51 0x0000000000fc7ba7 ~unique_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:403:6
# | #52 0x0000000000fc7ba7 mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Support/ToolUtilities.cpp:113:3
# | #53 0x0000000000e5518e mlir::mlirTranslateMain(int, char**, llvm::StringRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Tools/mlir-translate/MlirTranslateMain.cpp:203:14
# | #54 0x0000000000e54d90 main /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/tools/mlir-translate/mlir-translate.cpp:42:17
# | #55 0x00007fda31cb21ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #56 0x00007fda31cb228b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #57 0x0000000000e54c85 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-translate+0xe54c85)
# `-----------------------------
# error: command failed with exit status: -6

--

```
</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/193568


More information about the Mlir-commits mailing list