[flang-commits] [flang] [flang][OpenMP] Support user-defined declare reduction with derived types (PR #184897)

LLVM Continuous Integration via flang-commits flang-commits at lists.llvm.org
Thu Mar 26 08:56:40 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-clang-flang` running on `rocm-worker-hw-01` while building `flang` at step 3 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/67/builds/882

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-clang-flang.py ...' (failure)
...
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/dtype-member-overlap-map.f90 (229 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/dump_map_tables.f90 (230 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/optional-mapped-arguments.f90 (231 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/do-concurrent-to-omp-saxpy.f90 (232 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/local-descriptor-map-regress.f90 (233 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/implicit-derived-enter-exit.f90 (234 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/do-concurrent-to-omp-saxpy-2d.f90 (235 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/dyn_groupprivate.cpp (236 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/target-data-map-if-present.f90 (237 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/explicit-and-implicit-record-field-mapping.f90 (238 of 982)
FAIL: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/target-custom-reduction-derivedtype.f90 (239 of 982)
******************** TEST 'libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/target-custom-reduction-derivedtype.f90' FAILED ********************
Exit Code: 254

Command Output (stdout):
--
# RUN: at line 4
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/flang -fopenmp   -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src  -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -fopenmp-version=52 -fopenmp-targets=amdgcn-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/offloading/fortran/target-custom-reduction-derivedtype.f90 -o /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/offloading/fortran/Output/target-custom-reduction-derivedtype.f90.tmp -Xoffload-linker -lompdevice
# executed command: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/flang -fopenmp -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -fopenmp-version=52 -fopenmp-targets=amdgcn-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/offloading/fortran/target-custom-reduction-derivedtype.f90 -o /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/offloading/fortran/Output/target-custom-reduction-derivedtype.f90.tmp -Xoffload-linker -lompdevice
# .---command stderr------------
# | warning: OpenMP support for version 52 in flang is still incomplete
# | warning: OpenMP support for version 52 in flang is still incomplete
# | flang: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/llvm/include/llvm/ADT/STLExtras.h:310: decltype(auto) llvm::getSingleElement(ContainerTy&&) [with ContainerTy = llvm::SmallVector<llvm::Value*>&]: Assertion `hasSingleElement(C) && "expected container with single element"' 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/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/flang -fc1 -triple amdgcn-amd-amdhsa -emit-llvm-bc -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -mrelocation-model pic -pic-level 2 -target-cpu gfx90a -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_90a.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_600.bc -fopenmp -fopenmp-version=52 -fopenmp-version=52 -resource-dir /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/lib/clang/23 -fopenmp-host-ir-file-path /tmp/lit-tmp-jzs1lwk5/target-custom-reduction-derivedtype-007da6.bc -fopenmp-is-target-device -mframe-pointer=all -o /tmp/lit-tmp-jzs1lwk5/target-custom-reduction-derivedtype-gfx90a-164a6e.bc -x f95 /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/offloading/fortran/target-custom-reduction-derivedtype.f90
# |  #0 0x000075f331e18970 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/libLLVMSupport.so.23.0git+0x218970)
# |  #1 0x000075f331e1553c llvm::sys::RunSignalHandlers() (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/libLLVMSupport.so.23.0git+0x21553c)
# |  #2 0x000075f331e156a2 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
# |  #3 0x000075f331442520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
# |  #4 0x000075f3314969fc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
# |  #5 0x000075f3314969fc __pthread_kill_internal ./nptl/pthread_kill.c:78:10
# |  #6 0x000075f3314969fc pthread_kill ./nptl/pthread_kill.c:89:10
# |  #7 0x000075f331442476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
# |  #8 0x000075f3314287f3 abort ./stdlib/abort.c:81:7
# |  #9 0x000075f33142871b _nl_load_domain ./intl/loadmsgcat.c:1177:9
# | #10 0x000075f331439e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
# | #11 0x000075f328c988de std::_Function_handler<llvm::Expected<llvm::IRBuilderBase::InsertPoint> (llvm::IRBuilderBase::InsertPoint, llvm::Value*, llvm::Value*&), makeRefDataPtrGen(mlir::omp::DeclareReductionOp, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&, bool)::'lambda'(llvm::IRBuilderBase::InsertPoint, llvm::Value*, llvm::Value*&)>::_M_invoke(std::_Any_data const&, llvm::IRBuilderBase::InsertPoint&&, llvm::Value*&&, llvm::Value*&) OpenMPToLLVMIRTranslation.cpp:0:0
# | #12 0x000075f330392562 llvm::OpenMPIRBuilder::emitReductionListCopy(llvm::IRBuilderBase::InsertPoint, llvm::OpenMPIRBuilder::CopyAction, llvm::Type*, llvm::ArrayRef<llvm::OpenMPIRBuilder::ReductionInfo>, llvm::Value*, llvm::Value*, llvm::ArrayRef<bool>, llvm::OpenMPIRBuilder::CopyOptionsTy) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/../lib/libLLVMFrontendOpenMP.so.23.0git+0x7a562)
# | #13 0x000075f33039363c llvm::OpenMPIRBuilder::emitShuffleAndReduceFunction(llvm::ArrayRef<llvm::OpenMPIRBuilder::ReductionInfo>, llvm::Function*, llvm::AttributeList, llvm::ArrayRef<bool>) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/../lib/libLLVMFrontendOpenMP.so.23.0git+0x7b63c)
# | #14 0x000075f3303a023d llvm::OpenMPIRBuilder::createReductionsGPU(llvm::OpenMPIRBuilder::LocationDescription const&, llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint, llvm::ArrayRef<llvm::OpenMPIRBuilder::ReductionInfo>, llvm::ArrayRef<bool>, bool, bool, llvm::OpenMPIRBuilder::ReductionGenCBKind, std::optional<llvm::omp::GV>, unsigned int, llvm::Value*) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/../lib/libLLVMFrontendOpenMP.so.23.0git+0x8823d)
# | #15 0x000075f3303c34e8 llvm::OpenMPIRBuilder::createReductions(llvm::OpenMPIRBuilder::LocationDescription const&, llvm::IRBuilderBase::InsertPoint, llvm::ArrayRef<llvm::OpenMPIRBuilder::ReductionInfo>, llvm::ArrayRef<bool>, bool, bool) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/../lib/libLLVMFrontendOpenMP.so.23.0git+0xab4e8)
# | #16 0x000075f328c9e855 llvm::LogicalResult createReductionsAndCleanup<mlir::omp::WsloopOp>(mlir::omp::WsloopOp, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&, llvm::IRBuilderBase::InsertPoint&, llvm::SmallVectorImpl<mlir::omp::DeclareReductionOp>&, llvm::ArrayRef<llvm::Value*>, llvm::ArrayRef<bool>, bool, bool) (.constprop.0) OpenMPToLLVMIRTranslation.cpp:0:0
# | #17 0x000075f328ca1376 convertOmpWsloop(mlir::Operation&, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&) OpenMPToLLVMIRTranslation.cpp:0:0
# | #18 0x000075f328cb0ad3 (anonymous namespace)::OpenMPDialectLLVMIRTranslationInterface::convertOperation(mlir::Operation*, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&) const OpenMPToLLVMIRTranslation.cpp:0:0
# | #19 0x000075f331f531a6 mlir::LLVM::ModuleTranslation::convertOperation(mlir::Operation&, llvm::IRBuilderBase&, bool) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/../lib/libMLIRTargetLLVMIRExport.so.23.0git+0x321a6)
# | #20 0x000075f331f56067 mlir::LLVM::ModuleTranslation::convertBlockImpl(mlir::Block&, bool, llvm::IRBuilderBase&, bool) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/../lib/libMLIRTargetLLVMIRExport.so.23.0git+0x35067)
# | #21 0x000075f328c92954 convertOmpOpRegions(mlir::Region&, llvm::StringRef, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&, llvm::SmallVectorImpl<llvm::PHINode*>*) OpenMPToLLVMIRTranslation.cpp:0:0
# | #22 0x000075f328ca98d5 convertOmpParallel(mlir::omp::ParallelOp, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&)::'lambda'(llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)::operator()(llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint) const (.isra.0) OpenMPToLLVMIRTranslation.cpp:0:0
Step 9 (Add check check-offload) failure: Add check check-offload (failure)
...
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/dtype-member-overlap-map.f90 (229 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/dump_map_tables.f90 (230 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/optional-mapped-arguments.f90 (231 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/do-concurrent-to-omp-saxpy.f90 (232 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/local-descriptor-map-regress.f90 (233 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/implicit-derived-enter-exit.f90 (234 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/do-concurrent-to-omp-saxpy-2d.f90 (235 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/dyn_groupprivate.cpp (236 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/target-data-map-if-present.f90 (237 of 982)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/explicit-and-implicit-record-field-mapping.f90 (238 of 982)
FAIL: libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/target-custom-reduction-derivedtype.f90 (239 of 982)
******************** TEST 'libomptarget :: amdgcn-amd-amdhsa :: offloading/fortran/target-custom-reduction-derivedtype.f90' FAILED ********************
Exit Code: 254

Command Output (stdout):
--
# RUN: at line 4
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/flang -fopenmp   -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src  -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -fopenmp-version=52 -fopenmp-targets=amdgcn-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/offloading/fortran/target-custom-reduction-derivedtype.f90 -o /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/offloading/fortran/Output/target-custom-reduction-derivedtype.f90.tmp -Xoffload-linker -lompdevice
# executed command: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/flang -fopenmp -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -fopenmp-version=52 -fopenmp-targets=amdgcn-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/offloading/fortran/target-custom-reduction-derivedtype.f90 -o /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/offloading/fortran/Output/target-custom-reduction-derivedtype.f90.tmp -Xoffload-linker -lompdevice
# .---command stderr------------
# | warning: OpenMP support for version 52 in flang is still incomplete
# | warning: OpenMP support for version 52 in flang is still incomplete
# | flang: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/llvm/include/llvm/ADT/STLExtras.h:310: decltype(auto) llvm::getSingleElement(ContainerTy&&) [with ContainerTy = llvm::SmallVector<llvm::Value*>&]: Assertion `hasSingleElement(C) && "expected container with single element"' 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/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/flang -fc1 -triple amdgcn-amd-amdhsa -emit-llvm-bc -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -mrelocation-model pic -pic-level 2 -target-cpu gfx90a -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_90a.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_600.bc -fopenmp -fopenmp-version=52 -fopenmp-version=52 -resource-dir /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/lib/clang/23 -fopenmp-host-ir-file-path /tmp/lit-tmp-jzs1lwk5/target-custom-reduction-derivedtype-007da6.bc -fopenmp-is-target-device -mframe-pointer=all -o /tmp/lit-tmp-jzs1lwk5/target-custom-reduction-derivedtype-gfx90a-164a6e.bc -x f95 /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/offloading/fortran/target-custom-reduction-derivedtype.f90
# |  #0 0x000075f331e18970 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/libLLVMSupport.so.23.0git+0x218970)
# |  #1 0x000075f331e1553c llvm::sys::RunSignalHandlers() (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/libLLVMSupport.so.23.0git+0x21553c)
# |  #2 0x000075f331e156a2 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
# |  #3 0x000075f331442520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
# |  #4 0x000075f3314969fc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
# |  #5 0x000075f3314969fc __pthread_kill_internal ./nptl/pthread_kill.c:78:10
# |  #6 0x000075f3314969fc pthread_kill ./nptl/pthread_kill.c:89:10
# |  #7 0x000075f331442476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
# |  #8 0x000075f3314287f3 abort ./stdlib/abort.c:81:7
# |  #9 0x000075f33142871b _nl_load_domain ./intl/loadmsgcat.c:1177:9
# | #10 0x000075f331439e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
# | #11 0x000075f328c988de std::_Function_handler<llvm::Expected<llvm::IRBuilderBase::InsertPoint> (llvm::IRBuilderBase::InsertPoint, llvm::Value*, llvm::Value*&), makeRefDataPtrGen(mlir::omp::DeclareReductionOp, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&, bool)::'lambda'(llvm::IRBuilderBase::InsertPoint, llvm::Value*, llvm::Value*&)>::_M_invoke(std::_Any_data const&, llvm::IRBuilderBase::InsertPoint&&, llvm::Value*&&, llvm::Value*&) OpenMPToLLVMIRTranslation.cpp:0:0
# | #12 0x000075f330392562 llvm::OpenMPIRBuilder::emitReductionListCopy(llvm::IRBuilderBase::InsertPoint, llvm::OpenMPIRBuilder::CopyAction, llvm::Type*, llvm::ArrayRef<llvm::OpenMPIRBuilder::ReductionInfo>, llvm::Value*, llvm::Value*, llvm::ArrayRef<bool>, llvm::OpenMPIRBuilder::CopyOptionsTy) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/../lib/libLLVMFrontendOpenMP.so.23.0git+0x7a562)
# | #13 0x000075f33039363c llvm::OpenMPIRBuilder::emitShuffleAndReduceFunction(llvm::ArrayRef<llvm::OpenMPIRBuilder::ReductionInfo>, llvm::Function*, llvm::AttributeList, llvm::ArrayRef<bool>) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/../lib/libLLVMFrontendOpenMP.so.23.0git+0x7b63c)
# | #14 0x000075f3303a023d llvm::OpenMPIRBuilder::createReductionsGPU(llvm::OpenMPIRBuilder::LocationDescription const&, llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint, llvm::ArrayRef<llvm::OpenMPIRBuilder::ReductionInfo>, llvm::ArrayRef<bool>, bool, bool, llvm::OpenMPIRBuilder::ReductionGenCBKind, std::optional<llvm::omp::GV>, unsigned int, llvm::Value*) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/../lib/libLLVMFrontendOpenMP.so.23.0git+0x8823d)
# | #15 0x000075f3303c34e8 llvm::OpenMPIRBuilder::createReductions(llvm::OpenMPIRBuilder::LocationDescription const&, llvm::IRBuilderBase::InsertPoint, llvm::ArrayRef<llvm::OpenMPIRBuilder::ReductionInfo>, llvm::ArrayRef<bool>, bool, bool) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/../lib/libLLVMFrontendOpenMP.so.23.0git+0xab4e8)
# | #16 0x000075f328c9e855 llvm::LogicalResult createReductionsAndCleanup<mlir::omp::WsloopOp>(mlir::omp::WsloopOp, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&, llvm::IRBuilderBase::InsertPoint&, llvm::SmallVectorImpl<mlir::omp::DeclareReductionOp>&, llvm::ArrayRef<llvm::Value*>, llvm::ArrayRef<bool>, bool, bool) (.constprop.0) OpenMPToLLVMIRTranslation.cpp:0:0
# | #17 0x000075f328ca1376 convertOmpWsloop(mlir::Operation&, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&) OpenMPToLLVMIRTranslation.cpp:0:0
# | #18 0x000075f328cb0ad3 (anonymous namespace)::OpenMPDialectLLVMIRTranslationInterface::convertOperation(mlir::Operation*, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&) const OpenMPToLLVMIRTranslation.cpp:0:0
# | #19 0x000075f331f531a6 mlir::LLVM::ModuleTranslation::convertOperation(mlir::Operation&, llvm::IRBuilderBase&, bool) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/../lib/libMLIRTargetLLVMIRExport.so.23.0git+0x321a6)
# | #20 0x000075f331f56067 mlir::LLVM::ModuleTranslation::convertBlockImpl(mlir::Block&, bool, llvm::IRBuilderBase&, bool) (/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/bin/../lib/../lib/libMLIRTargetLLVMIRExport.so.23.0git+0x35067)
# | #21 0x000075f328c92954 convertOmpOpRegions(mlir::Region&, llvm::StringRef, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&, llvm::SmallVectorImpl<llvm::PHINode*>*) OpenMPToLLVMIRTranslation.cpp:0:0
# | #22 0x000075f328ca98d5 convertOmpParallel(mlir::omp::ParallelOp, llvm::IRBuilderBase&, mlir::LLVM::ModuleTranslation&)::'lambda'(llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint)::operator()(llvm::IRBuilderBase::InsertPoint, llvm::IRBuilderBase::InsertPoint) const (.isra.0) OpenMPToLLVMIRTranslation.cpp:0:0

```

</details>

https://github.com/llvm/llvm-project/pull/184897


More information about the flang-commits mailing list