[Mlir-commits] [mlir] [mlir][acc] Extend PointerLikeType to provide alloc, dealloc, copy (PR #162328)

Andy Kaylor llvmlistbot at llvm.org
Wed Oct 8 10:32:37 PDT 2025


================
@@ -70,6 +70,86 @@ def OpenACC_PointerLikeTypeInterface : TypeInterface<"PointerLikeType"> {
         return ::mlir::acc::VariableTypeCategory::uncategorized;
       }]
     >,
+    InterfaceMethod<
+      /*description=*/[{
+        Generates allocation operations for the pointer-like type. It will create
+        an allocate that produces memory space for an instance of the current type.
----------------
andykaylor wrote:

```suggestion
        an allocate operation that produces memory space for an instance of the current type.
```
Seeing `allocate` used as a noun is somehow jarring to me. Is this idiomatic in a way I'm just not familiar with?

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


More information about the Mlir-commits mailing list