Lines Matching refs:CalledFunc
727 const Function *CalledFunc = CS.getCalledFunction(); in CloneAliasScopeMetadata() local
735 for (const BasicBlock &I : *CalledFunc) in CloneAliasScopeMetadata()
762 DummyNodes.push_back(MDTuple::getTemporary(CalledFunc->getContext(), None)); in CloneAliasScopeMetadata()
779 MDNode *NewM = MDNode::get(CalledFunc->getContext(), NewOps); in CloneAliasScopeMetadata()
837 const Function *CalledFunc = CS.getCalledFunction(); in AddAliasScopeMetadata() local
840 for (const Argument &Arg : CalledFunc->args()) in AddAliasScopeMetadata()
850 DT.recalculate(const_cast<Function&>(*CalledFunc)); in AddAliasScopeMetadata()
859 MDBuilder MDB(CalledFunc->getContext()); in AddAliasScopeMetadata()
863 MDB.createAnonymousAliasScopeDomain(CalledFunc->getName()); in AddAliasScopeMetadata()
867 std::string Name = CalledFunc->getName(); in AddAliasScopeMetadata()
1022 MDNode::get(CalledFunc->getContext(), NoAliases))); in AddAliasScopeMetadata()
1048 MDNode::get(CalledFunc->getContext(), Scopes))); in AddAliasScopeMetadata()
1065 Function *CalledFunc = CS.getCalledFunction(); in AddAlignmentAssumptions() local
1066 for (Function::arg_iterator I = CalledFunc->arg_begin(), in AddAlignmentAssumptions()
1067 E = CalledFunc->arg_end(); in AddAlignmentAssumptions()
1179 const Function *CalledFunc, in HandleByValArgument() argument
1190 if (CalledFunc->onlyReadsMemory()) { in HandleByValArgument()
1359 const Function *CalledFunc = CS.getCalledFunction(); in InlineFunction() local
1360 if (!CalledFunc || // Can't inline external function or indirect in InlineFunction()
1361 CalledFunc->isDeclaration() || // call, or call to a vararg function! in InlineFunction()
1362 CalledFunc->getFunctionType()->isVarArg()) return false; in InlineFunction()
1391 if (CalledFunc->hasGC()) { in InlineFunction()
1393 Caller->setGC(CalledFunc->getGC()); in InlineFunction()
1394 else if (CalledFunc->getGC() != Caller->getGC()) in InlineFunction()
1400 CalledFunc->hasPersonalityFn() in InlineFunction()
1401 ? CalledFunc->getPersonalityFn()->stripPointerCasts() in InlineFunction()
1442 for (const BasicBlock &CalledBB : *CalledFunc) { in InlineFunction()
1450 for (const BasicBlock &CalledBB : *CalledFunc) { in InlineFunction()
1489 assert(CalledFunc->arg_size() == CS.arg_size() && in InlineFunction()
1496 for (Function::const_arg_iterator I = CalledFunc->arg_begin(), in InlineFunction()
1497 E = CalledFunc->arg_end(); I != E; ++I, ++AI, ++ArgNo) { in InlineFunction()
1505 ActualArg = HandleByValArgument(ActualArg, TheCall, CalledFunc, IFI, in InlineFunction()
1506 CalledFunc->getParamAlignment(ArgNo+1)); in InlineFunction()
1523 CloneAndPruneFunctionInto(Caller, CalledFunc, VMap, in InlineFunction()
2000 CalledFunc->getName() + ".exit"); in InlineFunction()
2007 CalledFunc->getName() + ".exit"); in InlineFunction()
2027 Type *RTy = CalledFunc->getReturnType(); in InlineFunction()