[Mlir-commits] [flang] [llvm] [mlir] [Flang] [OpenMP] [MLIR] Add lowering support for OMP ALLOCATE directives and its clauses (PR #187167)

Tom Eccles llvmlistbot at llvm.org
Wed Mar 18 04:03:55 PDT 2026


================
@@ -3191,6 +3191,20 @@ class OpenMPIRBuilder {
   LLVM_ABI CallInst *createOMPAlloc(const LocationDescription &Loc, Value *Size,
                                     Value *Allocator, std::string Name = "");
 
+  /// Create a runtime call for kmpc_align_alloc
----------------
tblah wrote:

Please could you document the assuemd types of the `Value *`. This function will silently generate UB if the values have incorrect types (e.g. if Allocator is an i8). Please clso document createOMPAlloc

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


More information about the Mlir-commits mailing list