Lines Matching refs:callOp
93 static FuncOp getCalledFunction(CallOpInterface callOp) { in getCalledFunction() argument
94 SymbolRefAttr sym = callOp.getCallableForCallee().dyn_cast<SymbolRefAttr>(); in getCalledFunction()
98 SymbolTable::lookupNearestSymbolFrom(callOp, sym)); in getCalledFunction()
149 func::CallOp callOp = cast<func::CallOp>(op); in bufferizesToMemoryRead() local
150 FuncOp funcOp = getCalledFunction(callOp); in bufferizesToMemoryRead()
164 func::CallOp callOp = cast<func::CallOp>(op); in bufferizesToMemoryWrite() local
165 FuncOp funcOp = getCalledFunction(callOp); in bufferizesToMemoryWrite()
179 func::CallOp callOp = cast<func::CallOp>(op); in getAliasingOpResult() local
180 FuncOp funcOp = getCalledFunction(callOp); in getAliasingOpResult()
199 result.push_back(callOp->getOpResult(resultIdx)); in getAliasingOpResult()
206 func::CallOp callOp = cast<func::CallOp>(op); in getAliasingOpOperand() local
207 FuncOp funcOp = getCalledFunction(callOp); in getAliasingOpOperand()
225 result.push_back(&callOp->getOpOperand(bbArgIdx)); in getAliasingOpOperand()
231 func::CallOp callOp = cast<func::CallOp>(op); in bufferRelation() local
232 FuncOp funcOp = getCalledFunction(callOp); in bufferRelation()
261 func::CallOp callOp = cast<func::CallOp>(op); in bufferize() local
262 unsigned numResults = callOp.getNumResults(); in bufferize()
263 unsigned numOperands = callOp->getNumOperands(); in bufferize()
264 FuncOp funcOp = getCalledFunction(callOp); in bufferize()
280 for (const auto &it : llvm::enumerate(callOp.getResultTypes())) { in bufferize()
296 for (OpOperand &opOperand : callOp->getOpOperands()) { in bufferize()
327 Value castBuffer = rewriter.create<memref::CastOp>(callOp.getLoc(), in bufferize()
336 callOp.getLoc(), funcOp.getSymName(), resultTypes, newOperands); in bufferize()
337 newCallOp->setAttrs(callOp->getAttrs()); in bufferize()
346 replaceOpWithBufferizedValues(rewriter, callOp, replacementValues); in bufferize()