21 if (
auto symbolVal = dyn_cast<Value>(callable))
22 return symbolVal.getDefiningOp();
25 auto symbolRef = cast<SymbolRefAttr>(callable);
35 #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,...
Operation * resolveCallable(CallOpInterface call, SymbolTableCollection *symbolTable=nullptr)
Resolve the callable operation for given callee to a CallableOpInterface, or nullptr if a valid calla...
Include the generated interface declarations.
A callable is either a symbol, or an SSA value, that is referenced by a call-like operation.