@@ -15,7 +15,7 @@ class BufferScopePass<string name>
1515 : PassBase<name, "::mlir::bufferization::BufferScopePassBase">;
1616
1717
18- def OwnershipBasedBufferDeallocation : BufferScopePass<
18+ def OwnershipBasedBufferDeallocationPass : BufferScopePass<
1919 "ownership-based-buffer-deallocation"> {
2020 let summary = "Adds all required dealloc operations for all allocations in "
2121 "the input program";
@@ -156,7 +156,7 @@ def OwnershipBasedBufferDeallocation : BufferScopePass<
156156 ];
157157}
158158
159- def BufferDeallocationSimplification :
159+ def BufferDeallocationSimplificationPass :
160160 BufferScopePass<"buffer-deallocation-simplification"> {
161161 let summary = "Optimizes `bufferization.dealloc` operation for more "
162162 "efficient codegen";
@@ -173,7 +173,7 @@ def BufferDeallocationSimplification :
173173 ];
174174}
175175
176- def OptimizeAllocationLiveness
176+ def OptimizeAllocationLivenessPass
177177 : BufferScopePass<"optimize-allocation-liveness"> {
178178 let summary = "This pass optimizes the liveness of temp allocations in the "
179179 "input function";
@@ -188,7 +188,7 @@ def OptimizeAllocationLiveness
188188 let dependentDialects = ["mlir::memref::MemRefDialect"];
189189}
190190
191- def LowerDeallocations : BufferScopePass<"bufferization-lower-deallocations"> {
191+ def LowerDeallocationsPass : BufferScopePass<"bufferization-lower-deallocations"> {
192192 let summary = "Lowers `bufferization.dealloc` operations to `memref.dealloc`"
193193 "operations";
194194 let description = [{
@@ -208,7 +208,7 @@ def LowerDeallocations : BufferScopePass<"bufferization-lower-deallocations"> {
208208 ];
209209}
210210
211- def BufferHoisting : BufferScopePass<"buffer-hoisting"> {
211+ def BufferHoistingPass : BufferScopePass<"buffer-hoisting"> {
212212 let summary = "Optimizes placement of allocation operations by moving them "
213213 "into common dominators and out of nested regions";
214214 let description = [{
@@ -217,7 +217,7 @@ def BufferHoisting : BufferScopePass<"buffer-hoisting"> {
217217 }];
218218}
219219
220- def BufferLoopHoisting : BufferScopePass<"buffer-loop-hoisting"> {
220+ def BufferLoopHoistingPass : BufferScopePass<"buffer-loop-hoisting"> {
221221 let summary = "Optimizes placement of allocation operations by moving them "
222222 "out of loop nests";
223223 let description = [{
@@ -466,7 +466,7 @@ def OneShotBufferizePass : Pass<"one-shot-bufferize", "ModuleOp"> {
466466 ];
467467}
468468
469- def PromoteBuffersToStack : BufferScopePass<"promote-buffers-to-stack"> {
469+ def PromoteBuffersToStackPass : BufferScopePass<"promote-buffers-to-stack"> {
470470 let summary = "Promotes heap-based allocations to automatically managed "
471471 "stack-based allocations";
472472 let description = [{
@@ -486,7 +486,7 @@ def PromoteBuffersToStack : BufferScopePass<"promote-buffers-to-stack"> {
486486 ];
487487}
488488
489- def EmptyTensorElimination : BufferScopePass<"eliminate-empty-tensors"> {
489+ def EmptyTensorEliminationPass : BufferScopePass<"eliminate-empty-tensors"> {
490490 let summary = "Try to eliminate all tensor.empty ops.";
491491 let description = [{
492492 Try to eliminate "tensor.empty" ops inside `op`. This transformation looks
0 commit comments