[Mlir-commits] [mlir] [MLIR][SROA] Reuse allocators to avoid rewalking the IR (PR #91971)
Christian Ulmann
llvmlistbot at llvm.org
Mon May 13 22:58:03 PDT 2024
================
@@ -298,14 +298,20 @@ def DestructurableAllocationOpInterface
"destructure",
(ins "const ::mlir::DestructurableMemorySlot &":$slot,
"const ::llvm::SmallPtrSetImpl<::mlir::Attribute> &":$usedIndices,
- "::mlir::OpBuilder &":$builder)
+ "::mlir::OpBuilder &":$builder,
+ "::mlir::SmallVectorImpl<::mlir::DestructurableAllocationOpInterface> &":
+ $newAllocators)
>,
InterfaceMethod<[{
Hook triggered once the destructuring of a slot is complete, meaning the
original slot is no longer being refered to and could be deleted.
This will only be called for slots declared by this operation.
+
+ Must return a new destructurable allocation op if this operation
+ produced multiple destructurable slots, nullopt otherwise.
----------------
Dinistro wrote:
I was explicitly referring to the case where the alloca originally produced multiple destructurable memory slots. I'll non-the-less update the comment.
https://github.com/llvm/llvm-project/pull/91971
More information about the Mlir-commits
mailing list