Lines Matching defs:callOp
282 /// Return the func::FuncOp called by `callOp`.
283 static func::FuncOp getCalledFunction(func::CallOp callOp) {
285 llvm::dyn_cast_if_present<SymbolRefAttr>(callOp.getCallableForCallee());
289 SymbolTable::lookupNearestSymbolFrom(callOp, sym));
299 funcOp->walk([&](func::CallOp callOp) {
300 func::FuncOp calledFunction = getCalledFunction(callOp);
310 if (!state.isInPlace(callOp->getOpOperand(bbargIdx)))
312 Value returnVal = callOp.getResult(returnIdx);
313 Value argVal = callOp->getOperand(bbargIdx);
349 return funcOp.walk([&](func::CallOp callOp) -> WalkResult {
350 func::FuncOp calledFunction = getCalledFunction(callOp);
357 callerMap[calledFunction].insert(callOp);