Lines Matching defs:callOp
78 /// Return the FuncOp called by `callOp`.
79 static FuncOp getCalledFunction(CallOpInterface callOp) {
81 llvm::dyn_cast_if_present<SymbolRefAttr>(callOp.getCallableForCallee());
85 SymbolTable::lookupNearestSymbolFrom(callOp, sym));
137 func::CallOp callOp = cast<func::CallOp>(op);
138 FuncOp funcOp = getCalledFunction(callOp);
152 func::CallOp callOp = cast<func::CallOp>(op);
153 FuncOp funcOp = getCalledFunction(callOp);
167 func::CallOp callOp = cast<func::CallOp>(op);
168 FuncOp funcOp = getCalledFunction(callOp);
191 result.addAlias({callOp->getOpResult(resultIdx),
201 auto callOp = cast<func::CallOp>(op);
202 FuncOp funcOp = getCalledFunction(callOp);
223 func::CallOp callOp = cast<func::CallOp>(op);
227 for (Value result : callOp.getResults()) {
246 FuncOp funcOp = getCalledFunction(callOp);
250 for (OpOperand &opOperand : callOp->getOpOperands()) {
299 callOp.getLoc(), funcOp.getSymName(), resultTypes, newOperands);
300 newCallOp->setAttrs(callOp->getAttrs());
303 replaceOpWithBufferizedValues(rewriter, callOp, newCallOp->getResults());