• Home
  • Raw
  • Download

Lines Matching refs:TheCall

330 static Value *HandleByValArgument(Value *Arg, Instruction *TheCall,  in HandleByValArgument()  argument
370 Function *Caller = TheCall->getParent()->getParent(); in HandleByValArgument()
379 Value *DestCast = new BitCastInst(NewAlloca, VoidPtrTy, "tmp", TheCall); in HandleByValArgument()
380 Value *SrcCast = new BitCastInst(Arg, VoidPtrTy, "tmp", TheCall); in HandleByValArgument()
397 IRBuilder<>(TheCall).CreateCall(MemCpyFn, CallArgs); in HandleByValArgument()
458 Instruction *TheCall) { in fixupLineNumbers() argument
459 DebugLoc TheCallDL = TheCall->getDebugLoc(); in fixupLineNumbers()
491 Instruction *TheCall = CS.getInstruction(); in InlineFunction() local
492 assert(TheCall->getParent() && TheCall->getParent()->getParent() && in InlineFunction()
506 !(isa<CallInst>(TheCall) && cast<CallInst>(TheCall)->isTailCall()); in InlineFunction()
512 BasicBlock *OrigBB = TheCall->getParent(); in InlineFunction()
587 ActualArg = HandleByValArgument(ActualArg, TheCall, CalledFunc, IFI, in InlineFunction()
605 &InlinedFunctionInfo, IFI.TD, TheCall); in InlineFunction()
615 fixupLineNumbers(Caller, FirstNewBlock, TheCall); in InlineFunction()
736 if (InvokeInst *II = dyn_cast<InvokeInst>(TheCall)) in InlineFunction()
744 OrigBB->getInstList().splice(TheCall, FirstNewBlock->getInstList(), in InlineFunction()
751 if (InvokeInst *II = dyn_cast<InvokeInst>(TheCall)) in InlineFunction()
752 BranchInst::Create(II->getNormalDest(), TheCall); in InlineFunction()
756 if (!TheCall->use_empty()) { in InlineFunction()
758 if (TheCall == R->getReturnValue()) in InlineFunction()
759 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType())); in InlineFunction()
761 TheCall->replaceAllUsesWith(R->getReturnValue()); in InlineFunction()
764 TheCall->eraseFromParent(); in InlineFunction()
780 if (InvokeInst *II = dyn_cast<InvokeInst>(TheCall)) { in InlineFunction()
783 BranchInst *NewBr = BranchInst::Create(II->getNormalDest(), TheCall); in InlineFunction()
795 AfterCallBB = OrigBB->splitBasicBlock(TheCall, in InlineFunction()
822 if (!TheCall->use_empty()) { in InlineFunction()
823 PHI = PHINode::Create(RTy, Returns.size(), TheCall->getName(), in InlineFunction()
827 TheCall->replaceAllUsesWith(PHI); in InlineFunction()
851 if (!TheCall->use_empty()) { in InlineFunction()
852 if (TheCall == Returns[0]->getReturnValue()) in InlineFunction()
853 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType())); in InlineFunction()
855 TheCall->replaceAllUsesWith(Returns[0]->getReturnValue()); in InlineFunction()
870 } else if (!TheCall->use_empty()) { in InlineFunction()
873 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType())); in InlineFunction()
877 TheCall->eraseFromParent(); in InlineFunction()