[Mlir-commits] [mlir] [MLIR] Make `OneShotModuleBufferize` use `OpInterface` (PR #107295)

Tzung-Han Juang llvmlistbot at llvm.org
Fri Sep 6 08:06:28 PDT 2024


================
@@ -388,27 +401,33 @@ mlir::bufferization::analyzeModuleOp(ModuleOp moduleOp,
     return failure();
 
   // Analyze ops.
-  for (func::FuncOp funcOp : orderedFuncOps) {
-    if (!state.getOptions().isOpAllowed(funcOp))
+  for (FunctionOpInterface funcOp : orderedFuncOps) {
+
+    // The following analysis is specific to the FuncOp type.
+    if(!isa<FuncOp>(funcOp))
+        continue;
----------------
tzunghanjuang wrote:

We have made all fields in `FuncAnalysisState` use `FunctionOpInterface` instead of `func::FuncOp`.

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


More information about the Mlir-commits mailing list