• Home
  • Raw
  • Download

Lines Matching refs:CS

67       ImmutableCallSite CS(cast<Instruction>(II));  in analyzeBasicBlock()  local
69 if (const Function *F = CS.getCalledFunction()) { in analyzeBasicBlock()
84 if (!isa<IntrinsicInst>(II) && !callIsSmall(CS.getCalledFunction())) { in analyzeBasicBlock()
86 NumInsts += CS.arg_size(); in analyzeBasicBlock()
90 if (!isa<InlineAsm>(CS.getCalledValue())) in analyzeBasicBlock()
302 int InlineCostAnalyzer::ConstantFunctionBonus(CallSite CS, Constant *C) { in ConstantFunctionBonus() argument
310 int Bonus = InlineConstants::IndirectCallBonus + getInlineSize(CS, F); in ConstantFunctionBonus()
362 int InlineCostAnalyzer::getInlineSize(CallSite CS, Function *Callee) { in getInlineSize() argument
380 CallSite::arg_iterator I = CS.arg_begin(); in getInlineSize()
401 InlineCost -= (CS.arg_size() * InlineConstants::InstrCost); in getInlineSize()
415 int InlineCostAnalyzer::getInlineBonuses(CallSite CS, Function *Callee) { in getInlineBonuses() argument
423 bool isDirectCall = CS.getCalledFunction() == Callee; in getInlineBonuses()
424 Instruction *TheCall = CS.getInstruction(); in getInlineBonuses()
452 CallSite::arg_iterator I = CS.arg_begin(); in getInlineBonuses()
465 InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS, in getInlineCost() argument
467 return getInlineCost(CS, CS.getCalledFunction(), NeverInline); in getInlineCost()
470 InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS, in getInlineCost() argument
473 Instruction *TheCall = CS.getInstruction(); in getInlineCost()
481 CS.isNoInline()) in getInlineCost()
527 int InlineCost = getInlineSize(CS, Callee) + getInlineBonuses(CS, Callee); in getInlineCost()
565 float InlineCostAnalyzer::getInlineFudgeFactor(CallSite CS) { in getInlineFudgeFactor() argument
566 Function *Callee = CS.getCalledFunction(); in getInlineFudgeFactor()