[Mlir-commits] [mlir] 21b638d - [mlir-vulkan-runner] Fix build failure after 200889f

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Oct 3 13:12:40 PDT 2022


Author: rkayaith
Date: 2022-10-03T16:11:49-04:00
New Revision: 21b638da6bc7427233c8e131919f3a6f9bfcfa25

URL: https://github.com/llvm/llvm-project/commit/21b638da6bc7427233c8e131919f3a6f9bfcfa25
DIFF: https://github.com/llvm/llvm-project/commit/21b638da6bc7427233c8e131919f3a6f9bfcfa25.diff

LOG: [mlir-vulkan-runner] Fix build failure after 200889f

Added: 
    

Modified: 
    mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp b/mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp
index d04cb573adaa1..06a4b26712dac 100644
--- a/mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp
+++ b/mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp
@@ -41,7 +41,10 @@
 
 using namespace mlir;
 
-static LogicalResult runMLIRPasses(ModuleOp module) {
+static LogicalResult runMLIRPasses(Operation *op) {
+  auto module = dyn_cast<ModuleOp>(op);
+  if (!module)
+    return op->emitOpError("expected a 'builtin.module' op");
   PassManager passManager(module.getContext());
   applyPassManagerCLOptions(passManager);
 


        


More information about the Mlir-commits mailing list