IsIsolatedFromAbove and visibility of global constants

Hello,

I’d like to make global values (e.g. constants) visible in the dataflow nodes of the dialect I build (nodes are the equivalent of functions in the dialect). Upto now, nodes had the IsolatedFromAbove trait that allows per-node processing under the form of passes. But when I remove the trait from the NodeOp operation, I suddenly get processing errors:
'lus.node' op trying to schedule a pass on an operation not marked as 'IsolatedFromAbove'

Can you point me to code examples and/or documentation showing how to handle operations that don’t have the trait IsolatedFromAbove?

Best regards,
Dumitru

You have to schedule pass on the enclosing isolate layer, ultimately the top-level module if this is it.

1 Like