Skip to content

Commit f7efc67

Browse files
committed
Revert "[MLIR] one-shot-bufferize: Add bufferize-bodiless-function-results option"
This reverts commit 151f763, except for the test added by it
1 parent 494134c commit f7efc67

File tree

4 files changed

+1
-13
lines changed

4 files changed

+1
-13
lines changed

mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,6 @@ struct BufferizationOptions {
359359
/// If `bufferizeFunctionBoundaries` is not set, this flag has no effect.
360360
bool inferFunctionResultLayout = true;
361361

362-
/// If true, bufferize results of bodiless functions using the
363-
/// `functionArgTypeConverterFn`.
364-
/// Otherwise, bufferization fails when encountering bodiless functions that
365-
/// have tensor results.
366-
///
367-
/// If `bufferizeFunctionBoundaries` is not set, this flag has no effect.
368-
bool bufferizeBodilessFunctionResults = false;
369-
370362
/// Type converter from tensors to memrefs. This type converter is used if no
371363
/// memref type could be inferred during bufferization. By default, a type
372364
/// converter that returns a memref type with a fully dynamic layout map is

mlir/include/mlir/Dialect/Bufferization/Transforms/Passes.td

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,6 @@ def OneShotBufferize : Pass<"one-shot-bufferize", "ModuleOp"> {
507507
Option<"bufferizeFunctionBoundaries", "bufferize-function-boundaries",
508508
"bool", /*default=*/"0",
509509
"Bufferize function boundaries (experimental).">,
510-
Option<"bufferizeBodilessFunctionResults", "bufferize-bodiless-function-results",
511-
"bool", /*default=*/"0",
512-
"Bufferize results of bodiless functions.">,
513510
Option<"checkParallelRegions", "check-parallel-regions", "bool",
514511
/*default=*/"true", "Account for parallel regions in RaW analysis.">,
515512
Option<"copyBeforeWrite", "copy-before-write", "bool", /*default=*/"false",

mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ struct OneShotBufferizePass
227227
opt.bufferAlignment = bufferAlignment;
228228
opt.testAnalysisOnly = testAnalysisOnly;
229229
opt.bufferizeFunctionBoundaries = bufferizeFunctionBoundaries;
230-
opt.bufferizeBodilessFunctionResults = bufferizeBodilessFunctionResults;
231230
opt.checkParallelRegions = checkParallelRegions;
232231
opt.noAnalysisFuncFilter = noAnalysisFuncFilter;
233232

mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize-bodiless-functions-results.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: mlir-opt %s -one-shot-bufferize="bufferize-function-boundaries=1 bufferize-bodiless-function-results=1" -split-input-file | FileCheck %s
1+
// RUN: mlir-opt %s -one-shot-bufferize="bufferize-function-boundaries=1" -split-input-file | FileCheck %s
22

33
func.func private @foo() -> tensor<?xf32>
44
// CHECK: func.func private @foo() -> memref<?xf32, strided<[?], offset: ?>>

0 commit comments

Comments
 (0)