[Mlir-commits] [mlir] [MLIR] [OpenMP] Modify definition of ALLOCATOR clause to support allocator type defined in user program. (PR #157399)

Tom Eccles llvmlistbot at llvm.org
Wed Sep 10 12:50:43 PDT 2025


tblah 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.

https://github.com/llvm/llvm-project/pull/157399


More information about the Mlir-commits mailing list