Lines Matching refs:callOp
235 static func::FuncOp getCalledFunction(CallOpInterface callOp) { in getCalledFunction() argument
236 SymbolRefAttr sym = callOp.getCallableForCallee().dyn_cast<SymbolRefAttr>(); in getCalledFunction()
240 SymbolTable::lookupNearestSymbolFrom(callOp, sym)); in getCalledFunction()
251 funcOp->walk([&](func::CallOp callOp) { in equivalenceAnalysis() argument
252 func::FuncOp calledFunction = getCalledFunction(callOp); in equivalenceAnalysis()
262 if (!state.isInPlace(callOp->getOpOperand(bbargIdx))) in equivalenceAnalysis()
264 Value returnVal = callOp.getResult(returnIdx); in equivalenceAnalysis()
265 Value argVal = callOp->getOperand(bbargIdx); in equivalenceAnalysis()
297 return funcOp.walk([&](CallOpInterface callOp) -> WalkResult { in getFuncOpsOrderedByCalls() argument
299 if (!isa<func::CallOp>(callOp.getOperation())) in getFuncOpsOrderedByCalls()
300 return callOp->emitError() << "expected a CallOp"; in getFuncOpsOrderedByCalls()
301 func::FuncOp calledFunction = getCalledFunction(callOp); in getFuncOpsOrderedByCalls()
303 callerMap[calledFunction].insert(callOp); in getFuncOpsOrderedByCalls()