[Mlir-commits] [mlir] [MLIR] [OpenMP] Modify definition of ALLOCATOR clause to support allocator type defined in user program. (PR #157399)
Raghu Maddhipatla
llvmlistbot at llvm.org
Thu Sep 11 08:19:37 PDT 2025
raghavendhra wrote:
> My concern is that the integer returned from `omp_init_allocator` is a **value**. This means it is (usually) only known at runtime. Whereas **attributes** are known at compile time.
>
> Previously for the built-in allocators an attribute made sense because the mapping from the keyword to the integer is always known. This isn't true for user-defined allocators because the handle is returned from a runtime call. I'm worried this will make lowering code difficult.
Thanks for the explanation @tblah :)
Can you please suggest type which I can use in Op definition which covers both and predefined and user-defined allocators?
https://github.com/llvm/llvm-project/pull/157399
More information about the Mlir-commits
mailing list