We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef3e166 commit 3e4e3b6Copy full SHA for 3e4e3b6
devito/ir/support/guards.py
@@ -292,6 +292,12 @@ def filter(self, key):
292
293
return Guards(m)
294
295
+ def as_map(self, d, cls):
296
+ if cls not in (Le, Lt, Ge, Gt):
297
+ raise ValueError(f"Unsupported class {cls}")
298
+
299
+ return dict(i.args for i in search(self.get(d), cls))
300
301
302
class GuardExpr(LocalObject, BooleanFunction):
303
0 commit comments