[clang] [llvm] [OpenMP][Clang] Migrate OpenMP UserDefinedMapper from Clang to OMPIRBuilder (PR #110001)
Jan Leyonberg via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 26 09:57:22 PST 2024
================
@@ -9041,257 +9041,65 @@ void CGOpenMPRuntime::emitUserDefinedMapper(const OMPDeclareMapperDecl *D,
return;
ASTContext &C = CGM.getContext();
QualType Ty = D->getType();
- QualType PtrTy = C.getPointerType(Ty).withRestrict();
- QualType Int64Ty = C.getIntTypeForBitwidth(/*DestWidth=*/64, /*Signed=*/true);
auto *MapperVarDecl =
cast<VarDecl>(cast<DeclRefExpr>(D->getMapperVarRef())->getDecl());
- SourceLocation Loc = D->getLocation();
----------------
jsjodin wrote:
Is the location information propagated? I am wondering if debug info might be lost like what happened in the reduction migration patch.
https://github.com/llvm/llvm-project/pull/110001
More information about the cfe-commits
mailing list