We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e911da9 commit 462e604Copy full SHA for 462e604
1 file changed
devito/ir/iet/nodes.py
@@ -102,10 +102,16 @@ def ccode(self):
102
103
@property
104
def view(self):
105
- """A representation of the IET rooted in ``self``."""
+ """A high-level representation of the IET rooted in `self`."""
106
from devito.ir.iet.visitors import printAST
107
return printAST(self)
108
109
+ @property
110
+ def view_cir(self):
111
+ from devito.ir.iet.visitors import CGen
112
+ from devito.passes.iet.languages.CIR import CIRPrinter
113
+ return str(CGen(printer=CIRPrinter).visit(self))
114
+
115
116
def children(self):
117
"""Return the traversable children."""
@@ -148,7 +154,7 @@ def writes(self):
148
154
return ()
149
155
150
156
def _signature_items(self):
151
- return (str(self),)
157
+ return (self.view_cir,)
152
158
153
159
160
class ExprStmt:
0 commit comments