[Mlir-commits] [llvm] [mlir] [OpenMP][flang] Support GPU team reductions on allocatables (PR #169651)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 26 05:54:17 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 166380 tests passed
* 2869 tests skipped
* 3 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.OpenMP/nvptx_teams_reduction_codegen.cpp</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 3
/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/22/include -nostdsysteminc -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_teams_reduction_codegen.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/nvptx_teams_reduction_codegen.cpp.tmp-ppc-host.bc
# 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/22/include -nostdsysteminc -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_teams_reduction_codegen.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/nvptx_teams_reduction_codegen.cpp.tmp-ppc-host.bc
# note: command had no output on stdout or stderr
# RUN: at line 4
/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/22/include -nostdsysteminc -verify -fopenmp -x c++ -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_teams_reduction_codegen.cpp -fopenmp-is-target-device -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/nvptx_teams_reduction_codegen.cpp.tmp-ppc-host.bc -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --allow-unused-prefixes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_teams_reduction_codegen.cpp --check-prefix=CHECK1
# 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/22/include -nostdsysteminc -verify -fopenmp -x c++ -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_teams_reduction_codegen.cpp -fopenmp-is-target-device -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/nvptx_teams_reduction_codegen.cpp.tmp-ppc-host.bc -o -
# .---command stderr------------
# | clang: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:248: const T &llvm::ArrayRef<bool>::operator[](size_t) const [T = bool]: Assertion `Index < Length && "Invalid index!"' failed.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0. Program arguments: /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/22/include -nostdsysteminc -verify -fopenmp -x c++ -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_teams_reduction_codegen.cpp -fopenmp-is-target-device -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/nvptx_teams_reduction_codegen.cpp.tmp-ppc-host.bc -o -
# | 1. <eof> parser at end of file
# | 2. /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_teams_reduction_codegen.cpp:13:4: instantiating function definition 'ftemplate<char>'
# | 3. /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_teams_reduction_codegen.cpp:13:4: LLVM IR generation of declaration 'ftemplate'
# | #0 0x0000000008e30c68 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:834:13
# | #1 0x0000000008e2e375 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:105:18
# | #2 0x0000000008e31a31 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:426:38
# | #3 0x00007b01101ab330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x00007b0110204b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x00007b01101ab27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x00007b011018e8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x00007b011018e81b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #8 0x00007b01101a1517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #9 0x000000000c7e5ffa operator() /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:590:4
# | #10 0x000000000c7e5ffa llvm::OpenMPIRBuilder::emitGlobalToListReduceFunction(llvm::ArrayRef<llvm::OpenMPIRBuilder::ReductionInfo>, llvm::Function*, llvm::Type*, llvm::AttributeList, llvm::ArrayRef<bool>) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:3584:16
# | #11 0x000000000c7e7aa8 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/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:0:26
# | #12 0x00000000095aa1a1 clang::CodeGen::CGOpenMPRuntimeGPU::emitReduction(clang::CodeGen::CodeGenFunction&, clang::SourceLocation, llvm::ArrayRef<clang::Expr const*>, llvm::ArrayRef<clang::Expr const*>, llvm::ArrayRef<clang::Expr const*>, llvm::ArrayRef<clang::Expr const*>, clang::CodeGen::CGOpenMPRuntime::ReductionOptionsTy) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:0:27
# | #13 0x00000000091f4646 begin /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:271:45
# | #14 0x00000000091f4646 end /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:273:27
# | #15 0x00000000091f4646 ~SmallVector /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1209:46
# | #16 0x00000000091f4646 ~ReductionOptionsTy /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.h:1227:10
# | #17 0x00000000091f4646 clang::CodeGen::CodeGenFunction::EmitOMPReductionClauseFinal(clang::OMPExecutableDirective const&, llvm::omp::Directive) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:1538:5
# | #18 0x0000000009234004 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:0:9
# | #19 0x0000000009234004 void clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPTeamsDirective(clang::OMPTeamsDirective const&)::$_0>(long, clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.h:77:12
# | #20 0x00000000092ca530 ForceCleanup /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:1075:28
# | #21 0x00000000092ca530 ~RunCleanupsScope /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:1058:9
# | #22 0x00000000092ca530 clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:579:1
# | #23 0x000000000930822b empty /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/EHScopeStack.h:364:31
# | #24 0x000000000930822b popTerminate /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGCleanup.h:640:3
# | #25 0x000000000930822b (anonymous namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&, clang::Stmt const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:1011:15
# | #26 0x00000000091e8c38 clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt const&, clang::OMPExecutableDirective const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:0:21
# | #27 0x00000000092d02bf emitParallelOrTeamsOutlinedFunction(clang::CodeGen::CodeGenModule&, clang::OMPExecutableDirective const&, clang::CapturedStmt const*, clang::VarDecl const*, llvm::omp::Directive, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:1246:14
# | #28 0x00000000092d0539 _M_data /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:223:28
# | #29 0x00000000092d0539 _M_is_local /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:264:6
# | #30 0x00000000092d0539 _M_dispose /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:282:7
# | #31 0x00000000092d0539 ~basic_string /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:804:9
# | #32 0x00000000092d0539 clang::CodeGen::CGOpenMPRuntime::emitTeamsOutlinedFunction(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, clang::VarDecl const*, llvm::omp::Directive, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:1278:3
# | #33 0x00000000095a7710 clang::CodeGen::CGOpenMPRuntimeGPU::emitTeamsOutlinedFunction(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, clang::VarDecl const*, llvm::omp::Directive, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:1063:50
# | #34 0x00000000092152f0 emitCommonOMPTeamsDirective(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, llvm::omp::Directive, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:7072:34
# | #35 0x0000000009215200 clang::CodeGen::CodeGenFunction::EmitOMPTeamsDirective(clang::OMPTeamsDirective const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:7106:3
# | #36 0x00000000091d1c8d clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmt.cpp:462:5
# | #37 0x0000000009233ccd HaveInsertPoint /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:2658:66
# | #38 0x0000000009233ccd EnsureInsertPoint /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:2665:10
# | #39 0x0000000009233ccd emitTargetRegion(clang::CodeGen::CodeGenFunction&, clang::OMPTargetDirective const&, clang::CodeGen::PrePostActionTy&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:7042:7
# | #40 0x00000000092ca530 ForceCleanup /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:1075:28
# | #41 0x00000000092ca530 ~RunCleanupsScope /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:1058:9
# | #42 0x00000000092ca530 clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:579:1
# | #43 0x000000000930822b empty /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/EHScopeStack.h:364:31
# | #44 0x000000000930822b popTerminate /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGCleanup.h:640:3
# | #45 0x000000000930822b (anonymous namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&, clang::Stmt const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:1011:15
# | #46 0x00000000091e8c38 clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt const&, clang::OMPExecutableDirective const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:0:21
# | #47 0x00000000093111e1 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6240:20
# | #48 0x00000000093111e1 __invoke_impl<llvm::Function *, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6235:7) &, llvm::StringRef> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:61:14
# | #49 0x00000000093111e1 __invoke_r<llvm::Expected<llvm::Function *>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6235:7) &, llvm::StringRef> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:114:9
# | #50 0x00000000093111e1 std::_Function_handler<llvm::Expected<llvm::Function*> (llvm::StringRef), clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&)::$_0>::_M_invoke(std::_Any_data const&, llvm::StringRef&&) /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:290:9
# | #51 0x000000000c7fe319 operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:576:17
# | #52 0x000000000c7fe319 llvm::OpenMPIRBuilder::emitTargetRegionFunction(llvm::TargetRegionEntryInfo&, std::function<llvm::Expected<llvm::Function*> (llvm::StringRef)>&, bool, llvm::Function*&, llvm::Constant*&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:7262:10
# | #53 0x00000000092f52d8 getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #54 0x00000000092f52d8 operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #55 0x00000000092f52d8 cantFail /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:770:7
# | #56 0x00000000092f52d8 clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6243:3
# | #57 0x00000000095a3700 clang::CodeGen::CGOpenMPRuntimeGPU::emitNonSPMDKernel(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:740:3
# | #58 0x00000000095a4fd4 clang::CodeGen::CGOpenMPRuntimeGPU::emitTargetOutlinedFunction(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:861:5
# | #59 0x000000000921511d clang::CodeGen::CodeGenFunction::EmitOMPTargetDeviceFunction(clang::CodeGen::CodeGenModule&, llvm::StringRef, clang::OMPTargetDirective const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:7054:26
# | #60 0x00000000092f86bd clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt const*, llvm::StringRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:0:7
# | #61 0x00000000092f8511 inStmt /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/AST/StmtIterator.h:57:13
# | #62 0x00000000092f8511 operator++ /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/AST/StmtIterator.h:94:9
# | #63 0x00000000092f8511 clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt const*, llvm::StringRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:10532:23
# | #64 0x00000000092f8b43 clang::CodeGen::CGOpenMPRuntime::emitTargetFunctions(clang::GlobalDecl) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:10567:33
# | #65 0x00000000090861c6 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp:4172:23
# | #66 0x0000000009080111 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp:7386:5
# | #67 0x00000000095d2e9c (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/ModuleBuilder.cpp:196:20
# | #68 0x00000000095ca3b6 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:173:22
# | #69 0x000000000bc7c16d perform /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Sema/Sema.h:13967:7
# | #70 0x000000000bc7c16d clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp:5987:23
# | #71 0x000000000bc7fcde isDefined /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/AST/Decl.h:2278:12
# | #72 0x000000000bc7fcde clang::Sema::PerformPendingInstantiations(bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp:7221:23
# | #73 0x000000000b426278 ~TimeTraceScope /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:200:9
# | #74 0x000000000b426278 clang::Sema::ActOnEndOfTranslationUnitFragment(clang::TUFragmentKind) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/Sema.cpp:1222:3
# | #75 0x000000000b4267d1 clang::Sema::ActOnEndOfTranslationUnit() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/Sema.cpp:1251:5
# | #76 0x000000000b2cbee3 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:0:13
# | #77 0x000000000b2c07be clang::ParseAST(clang::Sema&, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseAST.cpp:169:5
# | #78 0x0000000009af13e6 clang::FrontendAction::Execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1316:10
# | #79 0x0000000009a58fad getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #80 0x0000000009a58fad operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #81 0x0000000009a58fad clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1003:23
# | #82 0x0000000009be2adc clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:310:25
# | #83 0x00000000061718d3 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/cc1_main.cpp:301:15
# | #84 0x000000000616d625 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:225:12
# | #85 0x000000000616c68d clang_main(int, char**, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:268:12
# | #86 0x000000000617d677 main /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/driver/clang-driver.cpp:17:10
# | #87 0x00007b01101901ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #88 0x00007b011019028b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #89 0x000000000616b065 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang+0x616b065)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --allow-unused-prefixes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_teams_reduction_codegen.cpp --check-prefix=CHECK1
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --allow-unused-prefixes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_teams_reduction_codegen.cpp --check-prefix=CHECK1
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>Clang.OpenMP/reduction_complex.c</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 2
/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/22/include -nostdsysteminc -verify -fopenmp -fopenmp-cuda-mode -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/reduction_complex.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/reduction_complex.c.tmp-ppc-host.bc
# 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/22/include -nostdsysteminc -verify -fopenmp -fopenmp-cuda-mode -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/reduction_complex.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/reduction_complex.c.tmp-ppc-host.bc
# note: command had no output on stdout or stderr
# RUN: at line 7
/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/22/include -nostdsysteminc -verify -fopenmp -fopenmp-cuda-mode -x c++ -triple nvptx64-unknown-unknown -DCUA -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/reduction_complex.c -fopenmp-is-target-device -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/reduction_complex.c.tmp-ppc-host.bc -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --allow-unused-prefixes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/reduction_complex.c --check-prefix CHECK
# 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/22/include -nostdsysteminc -verify -fopenmp -fopenmp-cuda-mode -x c++ -triple nvptx64-unknown-unknown -DCUA -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/reduction_complex.c -fopenmp-is-target-device -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/reduction_complex.c.tmp-ppc-host.bc -o -
# .---command stderr------------
# | clang: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:248: const T &llvm::ArrayRef<bool>::operator[](size_t) const [T = bool]: Assertion `Index < Length && "Invalid index!"' failed.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0. Program arguments: /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/22/include -nostdsysteminc -verify -fopenmp -fopenmp-cuda-mode -x c++ -triple nvptx64-unknown-unknown -DCUA -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/reduction_complex.c -fopenmp-is-target-device -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/reduction_complex.c.tmp-ppc-host.bc -o -
# | 1. <eof> parser at end of file
# | 2. /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/reduction_complex.c:25:5: LLVM IR generation of declaration 'foo'
# | #0 0x0000000008e30c68 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:834:13
# | #1 0x0000000008e2e375 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:105:18
# | #2 0x0000000008e31a31 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:426:38
# | #3 0x0000795b324ff330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x0000795b32558b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x0000795b324ff27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x0000795b324e28ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x0000795b324e281b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #8 0x0000795b324f5517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #9 0x000000000c7e5ffa operator() /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:590:4
# | #10 0x000000000c7e5ffa llvm::OpenMPIRBuilder::emitGlobalToListReduceFunction(llvm::ArrayRef<llvm::OpenMPIRBuilder::ReductionInfo>, llvm::Function*, llvm::Type*, llvm::AttributeList, llvm::ArrayRef<bool>) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:3584:16
# | #11 0x000000000c7e7aa8 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/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:0:26
# | #12 0x00000000095aa1a1 clang::CodeGen::CGOpenMPRuntimeGPU::emitReduction(clang::CodeGen::CodeGenFunction&, clang::SourceLocation, llvm::ArrayRef<clang::Expr const*>, llvm::ArrayRef<clang::Expr const*>, llvm::ArrayRef<clang::Expr const*>, llvm::ArrayRef<clang::Expr const*>, clang::CodeGen::CGOpenMPRuntime::ReductionOptionsTy) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:0:27
# | #13 0x00000000091f4646 begin /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:271:45
# | #14 0x00000000091f4646 end /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:273:27
# | #15 0x00000000091f4646 ~SmallVector /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1209:46
# | #16 0x00000000091f4646 ~ReductionOptionsTy /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.h:1227:10
# | #17 0x00000000091f4646 clang::CodeGen::CodeGenFunction::EmitOMPReductionClauseFinal(clang::OMPExecutableDirective const&, llvm::omp::Directive) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:1538:5
# | #18 0x000000000923a618 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:0:9
# | #19 0x000000000923a618 void clang::CodeGen::RegionCodeGenTy::CallbackFn<emitTargetTeamsGenericLoopRegionAsParallel(clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&, clang::OMPTargetTeamsGenericLoopDirective const&)::$_1>(long, clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.h:77:12
# | #20 0x00000000092ca530 ForceCleanup /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:1075:28
# | #21 0x00000000092ca530 ~RunCleanupsScope /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:1058:9
# | #22 0x00000000092ca530 clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:579:1
# | #23 0x000000000930822b empty /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/EHScopeStack.h:364:31
# | #24 0x000000000930822b popTerminate /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGCleanup.h:640:3
# | #25 0x000000000930822b (anonymous namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&, clang::Stmt const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:1011:15
# | #26 0x00000000091e8c38 clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt const&, clang::OMPExecutableDirective const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:0:21
# | #27 0x00000000092d02bf emitParallelOrTeamsOutlinedFunction(clang::CodeGen::CodeGenModule&, clang::OMPExecutableDirective const&, clang::CapturedStmt const*, clang::VarDecl const*, llvm::omp::Directive, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:1246:14
# | #28 0x00000000092d0539 _M_data /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:223:28
# | #29 0x00000000092d0539 _M_is_local /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:264:6
# | #30 0x00000000092d0539 _M_dispose /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:282:7
# | #31 0x00000000092d0539 ~basic_string /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:804:9
# | #32 0x00000000092d0539 clang::CodeGen::CGOpenMPRuntime::emitTeamsOutlinedFunction(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, clang::VarDecl const*, llvm::omp::Directive, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:1278:3
# | #33 0x00000000095a7710 clang::CodeGen::CGOpenMPRuntimeGPU::emitTeamsOutlinedFunction(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, clang::VarDecl const*, llvm::omp::Directive, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:1063:50
# | #34 0x00000000092152f0 emitCommonOMPTeamsDirective(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, llvm::omp::Directive, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:7072:34
# | #35 0x000000000923a045 emitTargetTeamsGenericLoopRegionAsParallel(clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&, clang::OMPTargetTeamsGenericLoopDirective const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:8402:3
# | #36 0x00000000092ca530 ForceCleanup /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:1075:28
# | #37 0x00000000092ca530 ~RunCleanupsScope /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:1058:9
# | #38 0x00000000092ca530 clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:579:1
# | #39 0x000000000930822b empty /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/EHScopeStack.h:364:31
# | #40 0x000000000930822b popTerminate /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGCleanup.h:640:3
# | #41 0x000000000930822b (anonymous namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&, clang::Stmt const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:1011:15
# | #42 0x00000000091e8c38 clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt const&, clang::OMPExecutableDirective const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:0:21
# | #43 0x00000000093111e1 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6240:20
# | #44 0x00000000093111e1 __invoke_impl<llvm::Function *, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6235:7) &, llvm::StringRef> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:61:14
# | #45 0x00000000093111e1 __invoke_r<llvm::Expected<llvm::Function *>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6235:7) &, llvm::StringRef> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:114:9
# | #46 0x00000000093111e1 std::_Function_handler<llvm::Expected<llvm::Function*> (llvm::StringRef), clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&)::$_0>::_M_invoke(std::_Any_data const&, llvm::StringRef&&) /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:290:9
# | #47 0x000000000c7fe319 operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:576:17
# | #48 0x000000000c7fe319 llvm::OpenMPIRBuilder::emitTargetRegionFunction(llvm::TargetRegionEntryInfo&, std::function<llvm::Expected<llvm::Function*> (llvm::StringRef)>&, bool, llvm::Function*&, llvm::Constant*&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:7262:10
# | #49 0x00000000092f52d8 getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #50 0x00000000092f52d8 operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #51 0x00000000092f52d8 cantFail /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:770:7
# | #52 0x00000000092f52d8 clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6243:3
# | #53 0x00000000095a5043 emitSPMDKernel /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:841:3
# | #54 0x00000000095a5043 clang::CodeGen::CGOpenMPRuntimeGPU::emitTargetOutlinedFunction(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:858:5
# | #55 0x000000000921982d clang::CodeGen::CodeGenFunction::EmitOMPTargetTeamsGenericLoopDeviceFunction(clang::CodeGen::CodeGenModule&, llvm::StringRef, clang::OMPTargetTeamsGenericLoopDirective const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:8458:26
# | #56 0x00000000092f86e9 clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt const*, llvm::StringRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:0:7
# | #57 0x00000000092f8511 inStmt /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/AST/StmtIterator.h:57:13
# | #58 0x00000000092f8511 operator++ /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/AST/StmtIterator.h:94:9
# | #59 0x00000000092f8511 clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt const*, llvm::StringRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:10532:23
# | #60 0x00000000092f8b43 clang::CodeGen::CGOpenMPRuntime::emitTargetFunctions(clang::GlobalDecl) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:10567:33
# | #61 0x00000000090861c6 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp:4172:23
# | #62 0x0000000009080111 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp:7386:5
# | #63 0x00000000095d2e9c (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/ModuleBuilder.cpp:196:20
# | #64 0x00000000095ca3b6 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:173:22
# | #65 0x000000000b2c07da clang::ParseAST(clang::Sema&, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseAST.cpp:174:17
# | #66 0x0000000009af13e6 clang::FrontendAction::Execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1316:10
# | #67 0x0000000009a58fad getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #68 0x0000000009a58fad operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #69 0x0000000009a58fad clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1003:23
# | #70 0x0000000009be2adc clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:310:25
# | #71 0x00000000061718d3 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/cc1_main.cpp:301:15
# | #72 0x000000000616d625 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:225:12
# | #73 0x000000000616c68d clang_main(int, char**, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:268:12
# | #74 0x000000000617d677 main /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/driver/clang-driver.cpp:17:10
# | #75 0x0000795b324e41ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #76 0x0000795b324e428b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #77 0x000000000616b065 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang+0x616b065)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --allow-unused-prefixes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/reduction_complex.c --check-prefix CHECK
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --allow-unused-prefixes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/reduction_complex.c --check-prefix CHECK
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>Clang.OpenMP/target_teams_generic_loop_codegen.cpp</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 4
/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/22/include -nostdsysteminc -fopenmp -x c++ -std=c++11 -triple x86_64-unknown-unknown -fopenmp-targets=amdgcn-amd-amdhsa -emit-llvm-bc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/target_teams_generic_loop_codegen.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/target_teams_generic_loop_codegen.cpp.tmp-ppc-host.bc
# 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/22/include -nostdsysteminc -fopenmp -x c++ -std=c++11 -triple x86_64-unknown-unknown -fopenmp-targets=amdgcn-amd-amdhsa -emit-llvm-bc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/target_teams_generic_loop_codegen.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/target_teams_generic_loop_codegen.cpp.tmp-ppc-host.bc
# note: command had no output on stdout or stderr
# RUN: at line 5
/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/22/include -nostdsysteminc -fopenmp -x c++ -std=c++11 -triple amdgcn-amd-amdhsa -fopenmp-targets=amdgcn-amd-amdhsa -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/target_teams_generic_loop_codegen.cpp -fopenmp-is-target-device -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/target_teams_generic_loop_codegen.cpp.tmp-ppc-host.bc -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --allow-unused-prefixes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/target_teams_generic_loop_codegen.cpp --check-prefix=IR-GPU
# 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/22/include -nostdsysteminc -fopenmp -x c++ -std=c++11 -triple amdgcn-amd-amdhsa -fopenmp-targets=amdgcn-amd-amdhsa -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/target_teams_generic_loop_codegen.cpp -fopenmp-is-target-device -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/target_teams_generic_loop_codegen.cpp.tmp-ppc-host.bc -o -
# .---command stderr------------
# | clang: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:248: const T &llvm::ArrayRef<bool>::operator[](size_t) const [T = bool]: Assertion `Index < Length && "Invalid index!"' failed.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0. Program arguments: /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/22/include -nostdsysteminc -fopenmp -x c++ -std=c++11 -triple amdgcn-amd-amdhsa -fopenmp-targets=amdgcn-amd-amdhsa -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/target_teams_generic_loop_codegen.cpp -fopenmp-is-target-device -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/target_teams_generic_loop_codegen.cpp.tmp-ppc-host.bc -o -
# | 1. <eof> parser at end of file
# | 2. /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/target_teams_generic_loop_codegen.cpp:17:5: LLVM IR generation of declaration 'foo'
# | #0 0x0000000008e30c68 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:834:13
# | #1 0x0000000008e2e375 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:105:18
# | #2 0x0000000008e31a31 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:426:38
# | #3 0x00007f5f5990a330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x00007f5f59963b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x00007f5f5990a27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x00007f5f598ed8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x00007f5f598ed81b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #8 0x00007f5f59900517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #9 0x000000000c7e5ffa operator() /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:590:4
# | #10 0x000000000c7e5ffa llvm::OpenMPIRBuilder::emitGlobalToListReduceFunction(llvm::ArrayRef<llvm::OpenMPIRBuilder::ReductionInfo>, llvm::Function*, llvm::Type*, llvm::AttributeList, llvm::ArrayRef<bool>) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:3584:16
# | #11 0x000000000c7e7aa8 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/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:0:26
# | #12 0x00000000095aa1a1 clang::CodeGen::CGOpenMPRuntimeGPU::emitReduction(clang::CodeGen::CodeGenFunction&, clang::SourceLocation, llvm::ArrayRef<clang::Expr const*>, llvm::ArrayRef<clang::Expr const*>, llvm::ArrayRef<clang::Expr const*>, llvm::ArrayRef<clang::Expr const*>, clang::CodeGen::CGOpenMPRuntime::ReductionOptionsTy) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:0:27
# | #13 0x00000000091f4646 begin /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:271:45
# | #14 0x00000000091f4646 end /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:273:27
# | #15 0x00000000091f4646 ~SmallVector /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1209:46
# | #16 0x00000000091f4646 ~ReductionOptionsTy /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.h:1227:10
# | #17 0x00000000091f4646 clang::CodeGen::CodeGenFunction::EmitOMPReductionClauseFinal(clang::OMPExecutableDirective const&, llvm::omp::Directive) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:1538:5
# | #18 0x000000000923a618 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:0:9
# | #19 0x000000000923a618 void clang::CodeGen::RegionCodeGenTy::CallbackFn<emitTargetTeamsGenericLoopRegionAsParallel(clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&, clang::OMPTargetTeamsGenericLoopDirective const&)::$_1>(long, clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.h:77:12
# | #20 0x00000000092ca530 ForceCleanup /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:1075:28
# | #21 0x00000000092ca530 ~RunCleanupsScope /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:1058:9
# | #22 0x00000000092ca530 clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:579:1
# | #23 0x000000000930822b empty /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/EHScopeStack.h:364:31
# | #24 0x000000000930822b popTerminate /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGCleanup.h:640:3
# | #25 0x000000000930822b (anonymous namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&, clang::Stmt const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:1011:15
# | #26 0x00000000091e8c38 clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt const&, clang::OMPExecutableDirective const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:0:21
# | #27 0x00000000092d02bf emitParallelOrTeamsOutlinedFunction(clang::CodeGen::CodeGenModule&, clang::OMPExecutableDirective const&, clang::CapturedStmt const*, clang::VarDecl const*, llvm::omp::Directive, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:1246:14
# | #28 0x00000000092d0539 _M_data /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:223:28
# | #29 0x00000000092d0539 _M_is_local /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:264:6
# | #30 0x00000000092d0539 _M_dispose /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:282:7
# | #31 0x00000000092d0539 ~basic_string /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:804:9
# | #32 0x00000000092d0539 clang::CodeGen::CGOpenMPRuntime::emitTeamsOutlinedFunction(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, clang::VarDecl const*, llvm::omp::Directive, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:1278:3
# | #33 0x00000000095a7710 clang::CodeGen::CGOpenMPRuntimeGPU::emitTeamsOutlinedFunction(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, clang::VarDecl const*, llvm::omp::Directive, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:1063:50
# | #34 0x00000000092152f0 emitCommonOMPTeamsDirective(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, llvm::omp::Directive, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:7072:34
# | #35 0x000000000923a045 emitTargetTeamsGenericLoopRegionAsParallel(clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&, clang::OMPTargetTeamsGenericLoopDirective const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:8402:3
# | #36 0x00000000092ca530 ForceCleanup /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:1075:28
# | #37 0x00000000092ca530 ~RunCleanupsScope /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:1058:9
# | #38 0x00000000092ca530 clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:579:1
# | #39 0x000000000930822b empty /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/EHScopeStack.h:364:31
# | #40 0x000000000930822b popTerminate /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGCleanup.h:640:3
# | #41 0x000000000930822b (anonymous namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&, clang::Stmt const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:1011:15
# | #42 0x00000000091e8c38 clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt const&, clang::OMPExecutableDirective const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:0:21
# | #43 0x00000000093111e1 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6240:20
# | #44 0x00000000093111e1 __invoke_impl<llvm::Function *, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6235:7) &, llvm::StringRef> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:61:14
# | #45 0x00000000093111e1 __invoke_r<llvm::Expected<llvm::Function *>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6235:7) &, llvm::StringRef> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:114:9
# | #46 0x00000000093111e1 std::_Function_handler<llvm::Expected<llvm::Function*> (llvm::StringRef), clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&)::$_0>::_M_invoke(std::_Any_data const&, llvm::StringRef&&) /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:290:9
# | #47 0x000000000c7fe319 operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:576:17
# | #48 0x000000000c7fe319 llvm::OpenMPIRBuilder::emitTargetRegionFunction(llvm::TargetRegionEntryInfo&, std::function<llvm::Expected<llvm::Function*> (llvm::StringRef)>&, bool, llvm::Function*&, llvm::Constant*&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:7262:10
# | #49 0x00000000092f52d8 getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #50 0x00000000092f52d8 operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #51 0x00000000092f52d8 cantFail /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:770:7
# | #52 0x00000000092f52d8 clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6243:3
# | #53 0x00000000095a5043 emitSPMDKernel /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:841:3
# | #54 0x00000000095a5043 clang::CodeGen::CGOpenMPRuntimeGPU::emitTargetOutlinedFunction(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:858:5
# | #55 0x000000000921982d clang::CodeGen::CodeGenFunction::EmitOMPTargetTeamsGenericLoopDeviceFunction(clang::CodeGen::CodeGenModule&, llvm::StringRef, clang::OMPTargetTeamsGenericLoopDirective const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmtOpenMP.cpp:8458:26
# | #56 0x00000000092f86e9 clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt const*, llvm::StringRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:0:7
# | #57 0x00000000092f8511 inStmt /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/AST/StmtIterator.h:57:13
# | #58 0x00000000092f8511 operator++ /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/AST/StmtIterator.h:94:9
# | #59 0x00000000092f8511 clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt const*, llvm::StringRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:10532:23
# | #60 0x00000000092f8b43 clang::CodeGen::CGOpenMPRuntime::emitTargetFunctions(clang::GlobalDecl) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:10567:33
# | #61 0x00000000090861c6 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp:4172:23
# | #62 0x0000000009080111 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp:7386:5
# | #63 0x00000000095d2e9c (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/ModuleBuilder.cpp:196:20
# | #64 0x00000000095ca3b6 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:173:22
# | #65 0x000000000b2c07da clang::ParseAST(clang::Sema&, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseAST.cpp:174:17
# | #66 0x0000000009af13e6 clang::FrontendAction::Execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1316:10
# | #67 0x0000000009a58fad getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #68 0x0000000009a58fad operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #69 0x0000000009a58fad clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1003:23
# | #70 0x0000000009be2adc clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:310:25
# | #71 0x00000000061718d3 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/cc1_main.cpp:301:15
# | #72 0x000000000616d625 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:225:12
# | #73 0x000000000616c68d clang_main(int, char**, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:268:12
# | #74 0x000000000617d677 main /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/driver/clang-driver.cpp:17:10
# | #75 0x00007f5f598ef1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #76 0x00007f5f598ef28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #77 0x000000000616b065 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang+0x616b065)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --allow-unused-prefixes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/target_teams_generic_loop_codegen.cpp --check-prefix=IR-GPU
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --allow-unused-prefixes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/target_teams_generic_loop_codegen.cpp --check-prefix=IR-GPU
# `-----------------------------
# 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/169651
More information about the Mlir-commits
mailing list