• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/llvmCore-3425.0.34/lib/Analysis/

Lines Matching defs:CS

126   bool visitCallSite(CallSite CS);
141 bool analyzeCall(CallSite CS);
615 bool CallAnalyzer::visitCallSite(CallSite CS) {
616 if (CS.isCall() && cast<CallInst>(CS.getInstruction())->canReturnTwice() &&
623 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(CS.getInstruction())) {
626 return Base::visitCallSite(CS);
636 if (Function *F = CS.getCalledFunction()) {
637 if (F == CS.getInstruction()->getParent()->getParent()) {
644 if (!callIsSmall(CS)) {
647 Cost += CS.arg_size() * InlineConstants::InstrCost;
651 if (!isa<InlineAsm>(CS.getCalledValue()))
655 return Base::visitCallSite(CS);
660 Value *Callee = CS.getCalledValue();
664 Cost += CS.arg_size() * InlineConstants::InstrCost;
670 return Base::visitCallSite(CS);
678 if (CA.analyzeCall(CS)) {
684 return Base::visitCallSite(CS);
798 bool CallAnalyzer::analyzeCall(CallSite CS) {
821 for (unsigned I = 0, E = CS.arg_size(); I != E; ++I) {
822 if (TD && CS.isByValArgument(I)) {
825 PointerType *PTy = cast<PointerType>(CS.getArgument(I)->getType());
849 if (F.hasLocalLinkage() && F.hasOneUse() && &F == CS.getCalledFunction())
856 Instruction *Instr = CS.getInstruction();
876 Function *Caller = CS.getInstruction()->getParent()->getParent();
896 CallSite::arg_iterator CAI = CS.arg_begin();
899 assert(CAI != CS.arg_end());
1037 InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS, int Threshold) {
1038 return getInlineCost(CS, CS.getCalledFunction(), Threshold);
1041 InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS, Function *Callee,
1047 Callee->getFnAttributes().hasNoInlineAttr() || CS.isNoInline())
1054 bool ShouldInline = CA.analyzeCall(CS);