Searched refs:oldCall (Results 1 – 2 of 2) sorted by relevance
636 static void rewriteCallsiteForCoroutine(func::CallOp oldCall, in rewriteCallsiteForCoroutine() argument639 ImplicitLocOpBuilder callBuilder(loc, oldCall); in rewriteCallsiteForCoroutine()641 func.getName(), func.getCallableResults(), oldCall.getArgOperands()); in rewriteCallsiteForCoroutine()652 oldCall.replaceAllUsesWith(unwrappedResults); in rewriteCallsiteForCoroutine()653 oldCall.erase(); in rewriteCallsiteForCoroutine()
2364 auto *oldCall = cast<llvm::CallBase>(value); in emitOptimizedARCReturnCall() local2366 oldCall, llvm::LLVMContext::OB_clang_arc_attachedcall, OB, oldCall); in emitOptimizedARCReturnCall()2367 newCall->copyMetadata(*oldCall); in emitOptimizedARCReturnCall()2368 oldCall->replaceAllUsesWith(newCall); in emitOptimizedARCReturnCall()2369 oldCall->eraseFromParent(); in emitOptimizedARCReturnCall()