24 for (
auto ®ion : top->getRegions())
25 for (
auto &block : region.getBlocks())
26 for (
auto symOp : block.getOps<mlir::SymbolOpInterface>())
void addDefinitions(mlir::Operation *top)
Populate the symbol cache with all symbol-defining operations within the 'top' operation.
void addSymbol(mlir::SymbolOpInterface op)
Adds the symbol-defining 'op' to the cache.
virtual ~SymbolCacheBase()
Virtual method anchor.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.