[PATCH] D79186: [OPENMP]Consider 'omp_null_allocator' as a predefined allocator.

Johannes Doerfert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 6 12:26:03 PDT 2020


jdoerfert accepted this revision.
jdoerfert added a comment.
This revision is now accepted and ready to land.

LGTM.

In D79186#2016893 <https://reviews.llvm.org/D79186#2016893>, @ABataev wrote:

> In D79186#2016737 <https://reviews.llvm.org/D79186#2016737>, @jdoerfert wrote:
>
> > In D79186#2013689 <https://reviews.llvm.org/D79186#2013689>, @ABataev wrote:
> >
> > > In D79186#2013603 <https://reviews.llvm.org/D79186#2013603>, @jdoerfert wrote:
> > >
> > > > What would you think about moving the allocator definitions to OMPKinds.def instead of listing them explicitly? As far as I can tell we really only distinguish between predefined and user allocators, right?
> > >
> > >
> > > They also are used to find the base type 'omp_allocator_handle_t`. Also, what do you mean saying `instead of listing them explicitly`? Anyway, you will need to list all the predefined allocators to be able to distinguish predefined and user-defined allocators.
> >
> >
> > Sure. But we can list them once in OMPKinds.def and the use a macro wherever we need all their names (or other information).
>
>
> It should be a different patch.


Sure. You want to look into this?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79186





More information about the cfe-commits mailing list