[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.
+
+ The `varName` parameter is optional and can be used to provide a name
----------------
andykaylor wrote:
Can this be ignored if it is present? I suppose the answer is yes, since your memref implementation does that. Maybe mention that in the description?
https://github.com/llvm/llvm-project/pull/162328
More information about the Mlir-commits
mailing list