This is an archive of the discontinued LLVM Phabricator instance.

Simplify OpenMP Lambda use
ClosedPublic

Authored by dblaikie on Mar 6 2022, 1:42 PM.

Details

Summary
  • Use default ref capture for non-escaping lambdas (this makes maintenance easier by allowing new uses, removing uses, having conditional uses (such as in assertions) not require updates to an explicit capture list)
  • Simplify addPrivate API not to take a lambda, since it calls it unconditionally/immediately anyway - most callers are simply passing in a named value or short expression anyway and the lambda syntax just adds noise/overhead

Diff Detail

Event Timeline

dblaikie created this revision.Mar 6 2022, 1:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2022, 1:42 PM
dblaikie requested review of this revision.Mar 6 2022, 1:42 PM
Herald added a project: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Mar 7 2022, 4:03 AM
This revision was automatically updated to reflect the committed changes.