[clang] [NFC][Clang][OpenMP] Refactor mapinfo generation for captured vars (PR #146891)
Abhinav Gaba via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 3 07:01:06 PDT 2025
================
@@ -8727,11 +8733,13 @@ class MappableExprsHandler {
}
}
- /// Generate the base pointers, section pointers, sizes, map types, and
- /// mappers associated to a given capture (all included in \a CombinedInfo).
- void generateInfoForCapture(const CapturedStmt::Capture *Cap,
- llvm::Value *Arg, MapCombinedInfoTy &CombinedInfo,
- StructRangeInfoTy &PartialStruct) const {
+ /// For a capture that has an associated clause, generate the base pointers,
+ /// section pointers, sizes, map types, and mappers (all included in
+ /// \a CurCaptureVarInfo).
+ void generateInfoForCaptureFromClauseInfo(
----------------
abhinavgaba wrote:
The original function is now split into two. The first one here creates the DeclComponentLists, and the second one handles these DeclComponentLists.
https://github.com/llvm/llvm-project/pull/146891
More information about the cfe-commits
mailing list