projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4ca3a2
)
[mlir-vulkan-runner] Fix build failure after 200889f
author
rkayaith
<rkayaith@gmail.com>
Mon, 3 Oct 2022 20:01:40 +0000
(16:01 -0400)
committer
rkayaith
<rkayaith@gmail.com>
Mon, 3 Oct 2022 20:11:49 +0000
(16:11 -0400)
mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp
patch
|
blob
|
history
diff --git
a/mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp
b/mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp
index
d04cb57
..
06a4b26
100644
(file)
--- 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);