24 if (
auto symbolVal = dyn_cast<Value>(callable))
25 return symbolVal.getDefiningOp();
28 auto symbolRef = callable.get<SymbolRefAttr>();
38 #include "mlir/Interfaces/CallInterfaces.cpp.inc"
Operation is the basic unit of execution within MLIR.
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,...
Include the generated interface declarations.
A callable is either a symbol, or an SSA value, that is referenced by a call-like operation.