• Home
  • Raw
  • Download

Lines Matching refs:CS

207     ImmutableCallSite CS(CI);  in HandleCallsInBlockInlinedThroughInvoke()  local
208 SmallVector<Value*, 8> InvokeArgs(CS.arg_begin(), CS.arg_end()); in HandleCallsInBlockInlinedThroughInvoke()
288 static void CloneAliasScopeMetadata(CallSite CS, ValueToValueMapTy &VMap) { in CloneAliasScopeMetadata() argument
289 const Function *CalledFunc = CS.getCalledFunction(); in CloneAliasScopeMetadata()
368 CS.getInstruction()->getMetadata(LLVMContext::MD_alias_scope)) in CloneAliasScopeMetadata()
373 CS.getInstruction()->getMetadata(LLVMContext::MD_alias_scope)) in CloneAliasScopeMetadata()
383 CS.getInstruction()->getMetadata(LLVMContext::MD_noalias)) in CloneAliasScopeMetadata()
387 if (MDNode *M = CS.getInstruction()->getMetadata(LLVMContext::MD_noalias)) in CloneAliasScopeMetadata()
397 static void AddAliasScopeMetadata(CallSite CS, ValueToValueMapTy &VMap, in AddAliasScopeMetadata() argument
402 const Function *CalledFunc = CS.getCalledFunction(); in AddAliasScopeMetadata()
623 static void AddAlignmentAssumptions(CallSite CS, InlineFunctionInfo &IFI) { in AddAlignmentAssumptions() argument
626 auto &DL = CS.getCaller()->getParent()->getDataLayout(); in AddAlignmentAssumptions()
633 Function *CalledFunc = CS.getCalledFunction(); in AddAlignmentAssumptions()
640 DT.recalculate(const_cast<Function&>(*CS.getInstruction()->getParent() in AddAlignmentAssumptions()
647 Value *Arg = CS.getArgument(I->getArgNo()); in AddAlignmentAssumptions()
648 if (getKnownAlignment(Arg, DL, CS.getInstruction(), in AddAlignmentAssumptions()
653 IRBuilder<>(CS.getInstruction()) in AddAlignmentAssumptions()
663 static void UpdateCallGraphAfterInlining(CallSite CS, in UpdateCallGraphAfterInlining() argument
668 const Function *Caller = CS.getInstruction()->getParent()->getParent(); in UpdateCallGraphAfterInlining()
669 const Function *Callee = CS.getCalledFunction(); in UpdateCallGraphAfterInlining()
701 CallSite CS = CallSite(NewCall); in UpdateCallGraphAfterInlining() local
702 if (CS && CS.getCalledFunction() && CS.getCalledFunction()->isIntrinsic()) in UpdateCallGraphAfterInlining()
727 CallerNode->removeCallEdgeFor(CS); in UpdateCallGraphAfterInlining()
920 bool llvm::InlineFunction(CallSite CS, InlineFunctionInfo &IFI, in InlineFunction() argument
922 Instruction *TheCall = CS.getInstruction(); in InlineFunction()
929 const Function *CalledFunc = CS.getCalledFunction(); in InlineFunction()
936 bool MarkNoUnwind = CS.doesNotThrow(); in InlineFunction()
1001 assert(CalledFunc->arg_size() == CS.arg_size() && in InlineFunction()
1006 CallSite::arg_iterator AI = CS.arg_begin(); in InlineFunction()
1016 if (CS.isByValArgument(ArgNo)) { in InlineFunction()
1029 AddAlignmentAssumptions(CS, IFI); in InlineFunction()
1049 UpdateCallGraphAfterInlining(CS, FirstNewBlock, VMap, IFI); in InlineFunction()
1055 CloneAliasScopeMetadata(CS, VMap); in InlineFunction()
1058 AddAliasScopeMetadata(CS, VMap, DL, IFI.AA); in InlineFunction()