omp.h header file defines omp_null_allocator as a predefined allocator,
need to consider it also as a predefined allocator.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
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?
Comment Actions
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.
Comment Actions
Sure. But we can list them once in OMPKinds.def and the use a macro wherever we need all their names (or other information).