ShashwathiNavada wrote: > To expand on what I mean... > > For variables which have a strong definition, we usually don't emit them > lazily: there's some statement or declaration which is the "definition" > point, and we emit the definition as part of visiting that statement or > declaration. This ensures consistency: we consistently emit a definition for > things that need a definition. > > For variables where the definition isn't necessarily needed, we also have a > mechanism for lazily defining them; see DeferredDecls. > > I don't want to invent a new way of emitting variable definitions > specifically for OpenMP.
@efriedma-quic Thank you! I've updated the patch to emit iterator variable using the existing global emission logic, similar to how it's done for declare target deferred variables. Let me know if this looks good. https://github.com/llvm/llvm-project/pull/141507 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits