Lines Matching refs:CS
289 static ArrayRef<Use> GetDeoptBundleOperands(ImmutableCallSite CS) { in GetDeoptBundleOperands() argument
291 CS.getOperandBundle(LLVMContext::OB_deopt); in GetDeoptBundleOperands()
375 GCPtrLivenessData &OriginalLivenessData, CallSite CS, in analyzeParsePointLiveness() argument
377 Instruction *Inst = CS.getInstruction(); in analyzeParsePointLiveness()
388 dbgs() << "Safepoint For: " << CS.getCalledValue()->getName() << "\n"; in analyzeParsePointLiveness()
1181 CallSite CS, in findBasePointers() argument
1203 CallSite CS,
1402 static StringRef getDeoptLowering(CallSite CS) { in getDeoptLowering() argument
1404 if (CS.hasFnAttr(DeoptLowering)) { in getDeoptLowering()
1407 const AttributeList &CSAS = CS.getAttributes(); in getDeoptLowering()
1411 Function *F = CS.getCalledFunction(); in getDeoptLowering()
1419 makeStatepointExplicitImpl(const CallSite CS, /* to replace */ in makeStatepointExplicitImpl() argument
1430 Instruction *InsertBefore = CS.getInstruction(); in makeStatepointExplicitImpl()
1438 ArrayRef<Use> CallArgs(CS.arg_begin(), CS.arg_end()); in makeStatepointExplicitImpl()
1439 ArrayRef<Use> DeoptArgs = GetDeoptBundleOperands(CS); in makeStatepointExplicitImpl()
1442 CS.getOperandBundle(LLVMContext::OB_gc_transition)) { in makeStatepointExplicitImpl()
1453 parseStatepointDirectivesFromAttrs(CS.getAttributes()); in makeStatepointExplicitImpl()
1460 StringRef DeoptLowering = getDeoptLowering(CS); in makeStatepointExplicitImpl()
1467 Value *CallTarget = CS.getCalledValue(); in makeStatepointExplicitImpl()
1493 if (CS.isCall()) { in makeStatepointExplicitImpl()
1494 CallInst *ToReplace = cast<CallInst>(CS.getInstruction()); in makeStatepointExplicitImpl()
1516 InvokeInst *ToReplace = cast<InvokeInst>(CS.getInstruction()); in makeStatepointExplicitImpl()
1571 DeferredReplacement::createDeoptimizeReplacement(CS.getInstruction())); in makeStatepointExplicitImpl()
1574 if (!CS.getType()->isVoidTy() && !CS.getInstruction()->use_empty()) { in makeStatepointExplicitImpl()
1576 CS.getInstruction()->hasName() ? CS.getInstruction()->getName() : ""; in makeStatepointExplicitImpl()
1577 CallInst *GCResult = Builder.CreateGCResult(Token, CS.getType(), Name); in makeStatepointExplicitImpl()
1580 CS.getAttributes().getRetAttributes())); in makeStatepointExplicitImpl()
1589 DeferredReplacement::createRAUW(CS.getInstruction(), GCResult)); in makeStatepointExplicitImpl()
1592 DeferredReplacement::createDelete(CS.getInstruction())); in makeStatepointExplicitImpl()
1609 makeStatepointExplicit(DominatorTree &DT, CallSite CS, in makeStatepointExplicit() argument
1628 makeStatepointExplicitImpl(CS, BaseVec, LiveVec, Result, Replacements); in makeStatepointExplicit()
1896 static void insertUseHolderAfter(CallSite &CS, const ArrayRef<Value *> Values, in insertUseHolderAfter() argument
1902 Module *M = CS.getInstruction()->getModule(); in insertUseHolderAfter()
1906 if (CS.isCall()) { in insertUseHolderAfter()
1909 &*++CS.getInstruction()->getIterator())); in insertUseHolderAfter()
1914 auto *II = cast<InvokeInst>(CS.getInstruction()); in insertUseHolderAfter()
2025 static void rematerializeLiveValues(CallSite CS, in rematerializeLiveValues() argument
2079 if (CS.isInvoke()) { in rematerializeLiveValues()
2147 if (CS.isCall()) { in rematerializeLiveValues()
2148 Instruction *InsertBefore = CS.getInstruction()->getNextNode(); in rematerializeLiveValues()
2154 InvokeInst *Invoke = cast<InvokeInst>(CS.getInstruction()); in rematerializeLiveValues()
2186 for (CallSite CS : ToUpdate) in insertParsePoints() local
2187 assert(CS.getInstruction()->getFunction() == &F); in insertParsePoints()
2194 for (CallSite CS : ToUpdate) { in insertParsePoints() local
2195 if (!CS.isInvoke()) in insertParsePoints()
2197 auto *II = cast<InvokeInst>(CS.getInstruction()); in insertParsePoints()
2210 for (CallSite CS : ToUpdate) { in insertParsePoints() local
2213 for (Value *Arg : GetDeoptBundleOperands(CS)) { in insertParsePoints()
2220 insertUseHolderAfter(CS, DeoptValues, Holders); in insertParsePoints()
2479 if (CallSite CS = CallSite(&I)) { in stripNonValidDataFromBody() local
2480 for (int i = 0, e = CS.arg_size(); i != e; i++) in stripNonValidDataFromBody()
2481 if (isa<PointerType>(CS.getArgument(i)->getType())) in stripNonValidDataFromBody()
2482 RemoveNonValidAttrAtIndex(Ctx, CS, i + AttributeList::FirstArgIndex); in stripNonValidDataFromBody()
2483 if (isa<PointerType>(CS.getType())) in stripNonValidDataFromBody()
2484 RemoveNonValidAttrAtIndex(Ctx, CS, AttributeList::ReturnIndex); in stripNonValidDataFromBody()
2529 if (ImmutableCallSite CS = ImmutableCallSite(&I)) in runOnFunction() local
2530 return !callsGCLeafFunction(CS, TLI) && !isStatepoint(CS); in runOnFunction()
2789 CallSite CS, in recomputeLiveInValues() argument
2791 Instruction *Inst = CS.getInstruction(); in recomputeLiveInValues()