ABataev added inline comments.

================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:16537
         AllowWholeSizeArraySection = false;
+    } else if (DKind == OMPD_target_update &&
+               SemaRef.getLangOpts().OpenMP >= 50) {
----------------
cchen wrote:
> ABataev wrote:
> > cchen wrote:
> > > @ABataev , I guess you're saying the condition should be 
> > > `!AllowWholeSizeArraySection && DKind == OMPD_target_update && 
> > > SemaRef.getLangOpts().OpenMP >= 50`?
> > No, what I want is to try to simplify the code. I see now why do you need 
> > this flag. I'm just thinking can we avoid adding this flag to the clause 
> > and save some mem space?
> But we also don't want to do the analysis in codegen I guess? Also, if we 
> emit non-contiguous runtime for every target update call, we need to change 
> tons of stuff (tons of lit tests, runtime implementation, etc...).
Maybe make it a part of `MappableComponent`, if possible, and put it into 
`PointerIntPair<Expr *, 1, bool> AssociatedExpression;`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79972/new/

https://reviews.llvm.org/D79972



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to