Skip to content

[OpenMP] Remove complex reduction variable support #82497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1653,12 +1653,7 @@ static void emitReductionListCopy(
break;
}
case TEK_Complex: {
CodeGenFunction::ComplexPairTy Elem = CGF.EmitLoadOfComplex(
CGF.MakeAddrLValue(SrcElementAddr, Private->getType()),
Private->getExprLoc());
CGF.EmitStoreOfComplex(
Elem, CGF.MakeAddrLValue(DestElementAddr, Private->getType()),
/*isInit=*/false);
llvm_unreachable("OpenMP Complex reduction not handled.");
break;
}
case TEK_Aggregate:
Expand Down Expand Up @@ -2232,9 +2227,7 @@ static llvm::Value *emitListToGlobalCopyFunction(
break;
}
case TEK_Complex: {
CodeGenFunction::ComplexPairTy V = CGF.EmitLoadOfComplex(
CGF.MakeAddrLValue(ElemPtr, Private->getType()), Loc);
CGF.EmitStoreOfComplex(V, GlobLVal, /*isInit=*/false);
llvm_unreachable("OpenMP Complex reduction not handled.");
break;
}
case TEK_Aggregate:
Expand Down Expand Up @@ -2439,9 +2432,7 @@ static llvm::Value *emitGlobalToListCopyFunction(
break;
}
case TEK_Complex: {
CodeGenFunction::ComplexPairTy V = CGF.EmitLoadOfComplex(GlobLVal, Loc);
CGF.EmitStoreOfComplex(V, CGF.MakeAddrLValue(ElemPtr, Private->getType()),
/*isInit=*/false);
llvm_unreachable("OpenMP Complex reduction not handled.");
break;
}
case TEK_Aggregate:
Expand Down