17 while (dialectOp && !isa<DialectOp>(dialectOp))
21 llvm_unreachable(
"symbol lookup near dialect must originate from "
22 "within a dialect definition");
29 Operation *source, SymbolRefAttr symbol) {
35 SymbolRefAttr symbol) {
static Operation * lookupDialectOp(Operation *source)
Operation is the basic unit of execution within MLIR.
Operation * getParentOp()
Returns the closest surrounding operation that contains this operation or nullptr if this is a top-le...
This class represents a collection of SymbolTables.
Operation * lookupNearestSymbolFrom(Operation *from, StringAttr symbol)
Returns the operation registered with the given symbol name within the closest parent operation of,...
static Operation * lookupNearestSymbolFrom(Operation *from, StringAttr symbol)
Returns the operation registered with the given symbol name within the closest parent operation of,...
Operation * lookupSymbolNearDialect(SymbolTableCollection &symbolTable, Operation *source, SymbolRefAttr symbol)
Looks up a symbol from the symbol table containing the source operation's dialect definition operatio...
Include the generated interface declarations.