Hi:
If one defines an Op such as GetGlobal with Trait DeclareOpInterfaceMethods<SymbolUserOpInterface>]
then the AsmParser for GetGlobal automatically calls verifySymbolUses
(such as in …
GetGlobalOp::verifySymbolUses(SymbolTableCollection &)
.
But how do I verify the symbol use for in-memory built mlir (i.e. not read through parser). I mean 'how to I get hold of the right SymbolTableCollection? Or is that not needed (cannot be done) ?
My question may seem odd in case I may have misunderstood how verifySymbolUse is intended to be used.
This topic is related to Extracting attributes as operands - #10 by mehdi_amini , Using SymbolUserOpInterface properly - #5 by javedabsar and Globals in MLIR - #4 by javedabsar