Lines Matching refs:Call
582 if (const Instruction *Call = CS.getInstruction()) { in OptimizeRetainRVCall() local
583 if (Call->getParent() == RetainRV->getParent()) { in OptimizeRetainRVCall()
584 BasicBlock::const_iterator I = Call; in OptimizeRetainRVCall()
589 } else if (const InvokeInst *II = dyn_cast<InvokeInst>(Call)) { in OptimizeRetainRVCall()
759 CallInst *Call = cast<CallInst>(Inst); in OptimizeIndividualCalls() local
760 const Value *Arg = Call->getArgOperand(0); in OptimizeIndividualCalls()
770 CallInst *NewCall = CallInst::Create(Decl, Call->getArgOperand(0), "", in OptimizeIndividualCalls()
771 Call); in OptimizeIndividualCalls()
776 "since x is otherwise unused.\nOld: " << *Call << "\nNew: " in OptimizeIndividualCalls()
779 EraseInstruction(Call); in OptimizeIndividualCalls()
1492 CallInst *Call = CallInst::Create(Decl, MyArg, "", InsertPt); in MoveCalls() local
1493 Call->setDoesNotThrow(); in MoveCalls()
1494 Call->setTailCall(); in MoveCalls()
1496 DEBUG(dbgs() << "Inserting new Retain: " << *Call << "\n" in MoveCalls()
1503 CallInst *Call = CallInst::Create(Decl, MyArg, "", InsertPt); in MoveCalls() local
1506 Call->setMetadata(MDKindCache.get(ARCMDKindID::ImpreciseRelease), M); in MoveCalls()
1507 Call->setDoesNotThrow(); in MoveCalls()
1509 Call->setTailCall(); in MoveCalls()
1511 DEBUG(dbgs() << "Inserting new Release: " << *Call << "\n" in MoveCalls()
1844 CallInst *Call = cast<CallInst>(Inst); in OptimizeWeakCalls() local
1846 Value *Arg = Call->getArgOperand(0); in OptimizeWeakCalls()
1854 CallInst *CI = CallInst::Create(Decl, EarlierCall, "", Call); in OptimizeWeakCalls()
1858 Call->replaceAllUsesWith(EarlierCall); in OptimizeWeakCalls()
1859 Call->eraseFromParent(); in OptimizeWeakCalls()
1873 CallInst *Call = cast<CallInst>(Inst); in OptimizeWeakCalls() local
1875 Value *Arg = Call->getArgOperand(0); in OptimizeWeakCalls()
1883 CallInst *CI = CallInst::Create(Decl, EarlierCall, "", Call); in OptimizeWeakCalls()
1887 Call->replaceAllUsesWith(EarlierCall->getArgOperand(1)); in OptimizeWeakCalls()
1888 Call->eraseFromParent(); in OptimizeWeakCalls()
1925 CallInst *Call = cast<CallInst>(Inst); in OptimizeWeakCalls() local
1926 Value *Arg = Call->getArgOperand(0); in OptimizeWeakCalls()
2003 auto *Call = dyn_cast_or_null<CallInst>(*DepInsts.begin()); in HasSafePathToPredecessorCall() local
2006 if (!Call || Arg != Call) in HasSafePathToPredecessorCall()
2010 ARCInstKind Class = GetBasicARCInstKind(Call); in HasSafePathToPredecessorCall()
2011 if (Class != ARCInstKind::CallOrUser && Class != ARCInstKind::Call) in HasSafePathToPredecessorCall()