summaryrefslogtreecommitdiff
path: root/compiler/luci/pass/src/ShapeInferencePass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/luci/pass/src/ShapeInferencePass.cpp')
-rw-r--r--compiler/luci/pass/src/ShapeInferencePass.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler/luci/pass/src/ShapeInferencePass.cpp b/compiler/luci/pass/src/ShapeInferencePass.cpp
index f681b3d5f..4bd0aaed4 100644
--- a/compiler/luci/pass/src/ShapeInferencePass.cpp
+++ b/compiler/luci/pass/src/ShapeInferencePass.cpp
@@ -28,6 +28,19 @@
namespace luci
{
+bool ShapeInferencePass::run(luci::Module *m)
+{
+ bool changed = false;
+
+ for (size_t g = 0; g < m->size(); ++g)
+ {
+ if (run(m->graph(g)))
+ changed = true;
+ }
+
+ return changed;
+}
+
bool ShapeInferencePass::run(loco::Graph *g)
{
loco::CanonicalShapeInferenceRule canonical_rule;