• Home
  • Raw
  • Download

Lines Matching refs:CS

90     CallSite CS(cast<Value>(I));  in checkFunctionMemoryAccess()  local
91 if (CS) { in checkFunctionMemoryAccess()
96 if (!CS.hasOperandBundles() && CS.getCalledFunction() && in checkFunctionMemoryAccess()
97 SCCNodes.count(CS.getCalledFunction())) in checkFunctionMemoryAccess()
99 FunctionModRefBehavior MRB = AAR.getModRefBehavior(CS); in checkFunctionMemoryAccess()
117 for (CallSite::arg_iterator CI = CS.arg_begin(), CE = CS.arg_end(); in checkFunctionMemoryAccess()
281 CallSite CS(U->getUser()); in captured() local
282 if (!CS.getInstruction()) { in captured()
287 Function *F = CS.getCalledFunction(); in captured()
298 std::distance(const_cast<const Use *>(CS.arg_begin()), U); in captured()
300 assert(UseIndex < CS.data_operands_size() && in captured()
303 if (UseIndex >= CS.getNumArgOperands()) { in captured()
305 assert(CS.hasOperandBundles() && "Must be!"); in captured()
407 CallSite CS(I); in determinePointerReadAttrs() local
408 if (CS.doesNotAccessMemory()) { in determinePointerReadAttrs()
413 Function *F = CS.getCalledFunction(); in determinePointerReadAttrs()
415 if (CS.onlyReadsMemory()) { in determinePointerReadAttrs()
427 unsigned UseIndex = std::distance(CS.arg_begin(), U); in determinePointerReadAttrs()
433 assert(UseIndex < CS.data_operands_size() && in determinePointerReadAttrs()
436 bool IsOperandBundleUse = UseIndex >= CS.getNumArgOperands(); in determinePointerReadAttrs()
443 Captures &= !CS.doesNotCapture(UseIndex); in determinePointerReadAttrs()
455 if (!CS.onlyReadsMemory() && !CS.onlyReadsMemory(UseIndex)) in determinePointerReadAttrs()
457 if (!CS.doesNotAccessMemory(UseIndex)) in determinePointerReadAttrs()
723 CallSite CS(RVI); in isFunctionMallocLike() local
724 if (CS.paramHasAttr(0, Attribute::NoAlias)) in isFunctionMallocLike()
726 if (CS.getCalledFunction() && SCCNodes.count(CS.getCalledFunction())) in isFunctionMallocLike()
828 CallSite CS(RVI); in isReturnNonNull() local
829 Function *Callee = CS.getCalledFunction(); in isReturnNonNull()
926 CallSite CS(&I); in removeConvergentAttrs() local
928 if (CS && CS.isConvergent() && in removeConvergentAttrs()
929 SCCNodes.count(CS.getCalledFunction()) == 0) in removeConvergentAttrs()
974 if (auto CS = CallSite(&I)) { in addNoRecurseAttrs() local
975 Function *Callee = CS.getCalledFunction(); in addNoRecurseAttrs()
1017 if (auto CS = CallSite(&I)) in run() local
1018 if (!CS.getCalledFunction()) { in run()
1175 CallSite CS(I); in addNoRecurseAttrsTopDown() local
1176 if (!CS || !CS.getParent()->getParent()->doesNotRecurse()) in addNoRecurseAttrsTopDown()