reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/PtrUseVisitor.h
  299     PI.setEscaped(CS.getInstruction());
include/llvm/CodeGen/FastISel.h
  113       IsReturnValueUsed = !Call.getInstruction()->use_empty();
  137       IsReturnValueUsed = !Call.getInstruction()->use_empty();
include/llvm/CodeGen/TargetLowering.h
  203       return setAttributes(cast<CallBase>(CS->getInstruction()), ArgIdx);
 3513            isa<UnreachableInst>(Call.getInstruction()->getNextNode()));
 3515       IsReturnValueUsed = !Call.getInstruction()->use_empty();
include/llvm/IR/CallSite.h
   91   bool isInvoke() const { return getInstruction() && I.getInt() == 0; }
  101   BBTy* getParent() const { return getInstruction()->getParent(); }
  105     assert(getInstruction() && "Not a call, invoke or callbr instruction!");
  122     if (const CallBase *CB = dyn_cast<CallBase>(getInstruction()))
  131     assert(getInstruction() && "Not a call, callbr, or invoke instruction!");
  133                cast<CallBase>(getInstruction())->getFunctionType() &&
  164     assert(getInstruction() == U->getUser());
  175     assert(getInstruction() == U->getUser());
  199     assert(getInstruction() && "Not a call, invoke or callbr instruction!");
  201     getInstruction()->setOperand(ArgNo, newVal);
  213     assert(getInstruction() && "Not a call, invoke or callbr instruction!");
  237     assert(getInstruction() && "Not a call, invoke or callbr instruction!");
  254     assert(getInstruction() && "Not a call or invoke instruction!");
  255     return cast<CallBase>(getInstruction())->data_operands_begin();
  258     assert(getInstruction() && "Not a call or invoke instruction!");
  259     return cast<CallBase>(getInstruction())->data_operands_end();
  280     return isCall() && cast<CallInst>(getInstruction())->isMustTailCall();
  285     return isCall() && cast<CallInst>(getInstruction())->isTailCall();
  316     return cast<CallBase>(getInstruction())->isInlineAsm();
  598     cast<CallBase>(getInstruction())->getOperandBundlesAsDefs(Defs);
  668     return cast<CallBase>(getInstruction())->op_end() - 1;
  687     return getInstruction() < CS.getInstruction();
  687     return getInstruction() < CS.getInstruction();
  772   Instruction *getInstruction() const { return CS.getInstruction(); }
  914   ImmutableCallSite(CallSite CS) : CallSiteBase(CS.getInstruction()) {}
include/llvm/IR/InstVisitor.h
  288     Instruction &I = *CS.getInstruction();
include/llvm/Transforms/IPO/Attributor.h
  206     return IRPosition::callsite_function(cast<CallBase>(*ICS.getInstruction()));
  211     return IRPosition::callsite_returned(cast<CallBase>(*ICS.getInstruction()));
  217     return IRPosition::callsite_argument(cast<CallBase>(*ICS.getInstruction()),
lib/Analysis/Lint.cpp
  225   Instruction &I = *CS.getInstruction();
  300     const CallInst *CI = cast<CallInst>(CS.getInstruction());
lib/Analysis/MemoryBuiltins.cpp
  121   if (!CS.getInstruction())
  665   Optional<AllocFnsTy> FnData = getAllocationSize(CS.getInstruction(), TLI);
  930   Optional<AllocFnsTy> FnData = getAllocationSize(CS.getInstruction(), TLI);
lib/Analysis/ProfileSummaryInfo.cpp
  337   auto C = getProfileCount(CS.getInstruction(), BFI);
  343   auto C = getProfileCount(CS.getInstruction(), BFI);
lib/Analysis/ValueTracking.cpp
 1924               Arg.hasNonNullAttr() && DT->dominates(CS.getInstruction(), CtxI))
lib/Bitcode/Writer/BitcodeWriter.cpp
 2570   LLVMContext &C = CS.getInstruction()->getContext();
lib/CodeGen/Analysis.cpp
  513   const Instruction *I = CS.getInstruction();
lib/CodeGen/GlobalISel/CallLowering.cpp
   63       CS.getInstruction()->getMetadata(LLVMContext::MD_callees);
lib/CodeGen/GlobalISel/IRTranslator.cpp
 1546   const Instruction &I = *CS.getInstruction();
lib/CodeGen/SelectionDAG/FastISel.cpp
 1238     updateValueMap(CLI.CS->getInstruction(), CLI.ResultReg, CLI.NumResultRegs);
 1242     if (MDNode *MD = CLI.CS->getInstruction()->getMetadata("heapallocsite"))
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 7086       EHInfo->addIPToStateRange(cast<InvokeInst>(CLI.CS.getInstruction()),
 7112   auto *Caller = CS.getInstruction()->getParent()->getParent();
 7137           SwiftError.getOrCreateVRegUseAt(CS.getInstruction(), FuncInfo.MBB, V),
 7180     const Instruction *Inst = CS.getInstruction();
 7192         CS.getInstruction(), FuncInfo.MBB, SwiftErrorVal);
 8069       const Instruction *I = CS.getInstruction();
 8128   bool IsCallBr = isa<CallBrInst>(CS.getInstruction());
 8183   const MDNode *SrcLoc = CS.getInstruction()->getMetadata("srcloc");
 8284                                     CS.getInstruction());
 8383                                         Chain, &Flag, CS.getInstruction());
 8465             DAG, FuncInfo, getCurSDLoc(), Chain, &Flag, CS.getInstruction());
 8506     setValue(CS.getInstruction(), V);
 8521   Ctx.emitError(CS.getInstruction(), Message);
 8535   setValue(CS.getInstruction(), DAG.getMergeValues(Ops, getCurSDLoc()));
 8789   populateCallLoweringInfo(CLI, cast<CallBase>(CS.getInstruction()),
 8878       setValue(CS.getInstruction(), SDValue(MN, 0));
 8880       setValue(CS.getInstruction(), Result.first);
 9234                      CLI.CS.getInstruction(), CLI.CallConv, ExtendKind);
lib/ExecutionEngine/Interpreter/Execution.cpp
  905     if (Instruction *I = CallingSF.Caller.getInstruction()) {
 1129       SetValue(CS.getInstruction(), ArgIndex, SF);
 1135       SetValue(CS.getInstruction(), getOperandValue(*CS.arg_begin(), SF), SF);
 1141       BasicBlock::iterator me(CS.getInstruction());
 1142       BasicBlock *Parent = CS.getInstruction()->getParent();
 1146       IL->LowerIntrinsicCall(cast<CallInst>(CS.getInstruction()));
 2124   assert((ECStack.empty() || !ECStack.back().Caller.getInstruction() ||
lib/IR/Instructions.cpp
   70   return cast<CallBase>(getInstruction())->op_end() - 1;
lib/Target/AMDGPU/AMDGPUInline.cpp
  217   auto IC = llvm::getInlineCost(cast<CallBase>(*CS.getInstruction()), Callee,
lib/Target/AMDGPU/SIISelLowering.cpp
 2698   if (!CLI.CS.getInstruction())
lib/Target/Hexagon/HexagonISelLowering.cpp
  332   unsigned NumParams = CLI.CS.getInstruction()
lib/Target/NVPTX/NVPTXISelLowering.cpp
 1318         const CallInst *CallI = cast<CallInst>(CS.getInstruction());
 1385     const Instruction *CalleeI = CS.getInstruction();
lib/Target/WebAssembly/WebAssemblyOptimizeReturned.cpp
   61       Instruction *Inst = CS.getInstruction();
lib/Target/X86/X86FastISel.cpp
 3189       CLI.CS ? dyn_cast<CallInst>(CLI.CS->getInstruction()) : nullptr;
 3195       CLI.CS ? dyn_cast<InvokeInst>(CLI.CS->getInstruction()) : nullptr;
 3272               (TI->getParent() == CLI.CS->getInstruction()->getParent()) &&
lib/Target/X86/X86ISelLowering.cpp
 3622   const auto *CI = dyn_cast_or_null<CallInst>(CLI.CS.getInstruction());
 3626   const auto *II = dyn_cast_or_null<InvokeInst>(CLI.CS.getInstruction());
lib/Target/X86/X86WinEHState.cpp
  468   Instruction *Inst = CS.getInstruction();
  508   Instruction *NewInst = NewCS.getInstruction();
  537   if (auto *II = dyn_cast<InvokeInst>(CS.getInstruction())) {
  782     IRBuilder<> Builder(CS.getInstruction());
lib/Transforms/Coroutines/CoroEarly.cpp
   53       makeSubFnCall(CS.getArgOperand(0), Index, CS.getInstruction());
lib/Transforms/Coroutines/CoroSplit.cpp
 1086   auto *CallInstr = CS.getInstruction();
lib/Transforms/IPO/ArgumentPromotion.cpp
  245     Instruction *Call = CS.getInstruction();
  352       Call->replaceAllUsesWith(NewCS.getInstruction());
  909     if (CS.getInstruction() == nullptr || !CS.isCallee(&U))
  916     if (CS.getInstruction()->getParent()->getParent() == F)
 1138         Function *Caller = OldCS.getInstruction()->getParent()->getParent();
 1142         CallerNode->replaceCallEdge(*cast<CallBase>(OldCS.getInstruction()),
 1143                                     *cast<CallBase>(NewCS.getInstruction()),
lib/Transforms/IPO/Attributor.cpp
  424         IRPosition::callsite_function(cast<CallBase>(*ICS.getInstruction())));
 3109     PotentialCopies.push_back(CS.getInstruction());
lib/Transforms/IPO/CalledValuePropagation.cpp
  260     Instruction *I = CS.getInstruction();
lib/Transforms/IPO/DeadArgumentElimination.cpp
  180     Instruction *Call = CS.getInstruction();
  204       cast<CallInst>(NewCS.getInstruction())
  217       Call->replaceAllUsesWith(NewCS.getInstruction());
  569     const Instruction *TheCall = CS.getInstruction();
  879     Instruction *Call = CS.getInstruction();
  942       cast<CallInst>(NewCS.getInstruction())
  954     Instruction *New = NewCS.getInstruction();
lib/Transforms/IPO/FunctionAttrs.cpp
  365     if (!CS.getInstruction()) {
lib/Transforms/IPO/GlobalOpt.cpp
 2167   auto CallSiteBB = CS.getInstruction()->getParent();
 2191     Function *CallerFunc = CS.getInstruction()->getParent()->getParent();
lib/Transforms/IPO/IPConstantPropagation.cpp
  225     Instruction* Call = CS.getInstruction();
lib/Transforms/IPO/InlineSimple.cpp
   72         cast<CallBase>(*CS.getInstruction()), Params, TTI, GetAssumptionCache,
lib/Transforms/IPO/Inliner.cpp
  424   Instruction *Call = CS.getInstruction();
  430                       << ", Call: " << *CS.getInstruction() << "\n");
  436                       << ", Call: " << *CS.getInstruction() << "\n");
  448                       << ", Call: " << *CS.getInstruction() << "\n");
  459     LLVM_DEBUG(dbgs() << "    NOT Inlining: " << *CS.getInstruction()
  476                     << ", Call: " << *CS.getInstruction() << '\n');
  628       Instruction *Instr = CS.getInstruction();
  676         CG[Caller]->removeCallEdgeFor(*cast<CallBase>(CS.getInstruction()));
 1016       return getInlineCost(cast<CallBase>(*CS.getInstruction()), Params,
lib/Transforms/IPO/MergeFunctions.cpp
  474       remove(CS.getInstruction()->getFunction());
lib/Transforms/IPO/PartialInlining.cpp
  323     DebugLoc DLoc = CS.getInstruction()->getDebugLoc();
  766   Instruction *Call = CS.getInstruction();
  956     BasicBlock *CallBB = CS.getInstruction()->getParent();
 1158       BasicBlock *OutliningCallBB = OCS.getInstruction()->getParent();
 1226             .getInstruction()
 1404     OptimizationRemark OR(DEBUG_TYPE, "PartiallyInlined", CS.getInstruction());
lib/Transforms/IPO/SyntheticCountsPropagation.cpp
  120     BasicBlock *CSBB = CS.getInstruction()->getParent();
lib/Transforms/IPO/WholeProgramDevirt.cpp
  338     if (auto II = dyn_cast<InvokeInst>(CS.getInstruction())) {
  339       BranchInst::Create(II->getNormalDest(), CS.getInstruction());
 1117       IRBuilder<> IRB(CS.getInstruction());
 1129             cast<InvokeInst>(CS.getInstruction())->getNormalDest(),
 1130             cast<InvokeInst>(CS.getInstruction())->getUnwindDest(), Args);
 1144       CS->replaceAllUsesWith(NewCS.getInstruction());
 1302     IRBuilder<> B(Call.CS.getInstruction());
 1371     IRBuilder<> B(Call.CS.getInstruction());
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1079     Instruction *I = CS.getInstruction();
 2689             NoReturnCalls.push_back(CS.getInstruction());
lib/Transforms/Instrumentation/CGProfile.cpp
   59           if (!getValueProfDataFromInst(*CS.getInstruction(),
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
 1538     visitOperandShadowInst(*CS.getInstruction());
 1547   IRBuilder<> IRB(CS.getInstruction());
 1558       DFSF.setShadow(CS.getInstruction(), DFSF.DFS.ZeroShadow);
 1562       DFSF.setShadow(CS.getInstruction(), DFSF.DFS.ZeroShadow);
 1566       visitOperandShadowInst(*CS.getInstruction());
 1572       if (CallInst *CI = dyn_cast<CallInst>(CS.getInstruction())) {
 1677                       DFSF.getArgTLS(i, CS.getInstruction()));
 1683     if (InvokeInst *II = dyn_cast<InvokeInst>(CS.getInstruction())) {
 1700       DFSF.setShadow(CS.getInstruction(), LI);
 1737     if (InvokeInst *II = dyn_cast<InvokeInst>(CS.getInstruction())) {
 1746         AttributeFuncs::typeIncompatible(NewCS.getInstruction()->getType())));
 1750           ExtractValueInst::Create(NewCS.getInstruction(), 0, "", Next);
 1753           ExtractValueInst::Create(NewCS.getInstruction(), 1, "", Next);
 1758       CS.getInstruction()->replaceAllUsesWith(ExVal);
 1761     CS.getInstruction()->eraseFromParent();
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 3254     Instruction &I = *CS.getInstruction();
lib/Transforms/ObjCARC/ObjCARCContract.cpp
  121   const Instruction *Call = CS.getInstruction();
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
  599   if (const Instruction *Call = CS.getInstruction()) {
lib/Transforms/Scalar/CallSiteSplitting.cpp
  191   Instruction *Instr = CS.getInstruction();
  308   Instruction *Instr = CS.getInstruction();
  420   Instruction *Instr = CS.getInstruction();
  453   auto Preds = getTwoPredecessors(CS.getInstruction()->getParent());
  462   auto Preds = getTwoPredecessors(CS.getInstruction()->getParent());
  471   auto *CSDTNode = DTU.getDomTree().getNode(CS.getInstruction()->getParent());
  478     recordCondition(CS, Pred, CS.getInstruction()->getParent(), Conditions);
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  541   if (auto *WO = dyn_cast<WithOverflowInst>(CS.getInstruction())) {
  548   if (auto *SI = dyn_cast<SaturatingInst>(CS.getInstruction())) {
  570       Constant *C = LVI->getConstant(V, CS.getParent(), CS.getInstruction());
  588                             CS.getInstruction()) == LazyValueInfo::False)
  599   LLVMContext &Ctx = CS.getInstruction()->getContext();
lib/Transforms/Scalar/DeadStoreElimination.cpp
  263     return CS.getInstruction()->use_empty();
lib/Transforms/Scalar/MemCpyOptimizer.cpp
 1266       CS.getInstruction()->getIterator(), CS.getInstruction()->getParent());
 1266       CS.getInstruction()->getIterator(), CS.getInstruction()->getParent());
 1294                                  CS.getInstruction(), &AC, &DT) < ByValAlign)
 1313       CS.getInstruction()->getIterator(), MDep->getParent());
 1320                               "tmpcast", CS.getInstruction());
 1324                     << "  " << *CS.getInstruction() << "\n");
lib/Transforms/Scalar/SCCP.cpp
 1200   Instruction *I = CS.getInstruction();
 1272         canConstantFoldCallTo(cast<CallBase>(CS.getInstruction()), F)) {
 1293       if (Constant *C = ConstantFoldCall(cast<CallBase>(CS.getInstruction()), F,
lib/Transforms/Scalar/TailRecursionElimination.cpp
  172     AllocaUsers.insert(CS.getInstruction());
  180       EscapePoints.insert(CS.getInstruction());
lib/Transforms/Utils/CallPromotionUtils.cpp
  166   for (User *U : CS.getInstruction()->users())
  172   if (auto *Invoke = dyn_cast<InvokeInst>(CS.getInstruction()))
  176     InsertBefore = &*std::next(CS.getInstruction()->getIterator());
  179   auto *Cast = CastInst::CreateBitOrPointerCast(CS.getInstruction(), RetTy, "",
  186     U->replaceUsesOfWith(CS.getInstruction(), Cast);
  259   IRBuilder<> Builder(CS.getInstruction());
  260   Instruction *OrigInst = CS.getInstruction();
  274   SplitBlockAndInsertIfThenElse(Cond, CS.getInstruction(), &ThenTerm, &ElseTerm,
  327   Type *CallRetTy = CS.getInstruction()->getType();
  371   cast<CallBase>(CS.getInstruction())->setCalledOperand(Callee);
  376   CS.getInstruction()->setMetadata(LLVMContext::MD_prof, nullptr);
  377   CS.getInstruction()->setMetadata(LLVMContext::MD_callees, nullptr);
  382     return CS.getInstruction();
  385   Type *CallSiteRetTy = CS.getInstruction()->getType();
  409                                                     CS.getInstruction());
  446   return CS.getInstruction();
lib/Transforms/Utils/Evaluator.cpp
  482       if (isa<DbgInfoIntrinsic>(CS.getInstruction())) {
  494       if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(CS.getInstruction())) {
  570         if (Constant *C = ConstantFoldCall(cast<CallBase>(CS.getInstruction()),
lib/Transforms/Utils/InlineFunction.cpp
  773     CS.getInstruction()->getMetadata(LLVMContext::MD_mem_parallel_loop_access);
  775       CS.getInstruction()->getMetadata(LLVMContext::MD_access_group);
  890               CS.getInstruction()->getMetadata(LLVMContext::MD_alias_scope))
  895               CS.getInstruction()->getMetadata(LLVMContext::MD_alias_scope))
  905               CS.getInstruction()->getMetadata(LLVMContext::MD_noalias))
  909       if (MDNode *M = CS.getInstruction()->getMetadata(LLVMContext::MD_noalias))
 1165       if (getKnownAlignment(ArgVal, DL, CS.getInstruction(), AC, &DT) >= Align)
 1168       CallInst *NewAsmp = IRBuilder<>(CS.getInstruction())
 1243   CallerNode->removeCallEdgeFor(*cast<CallBase>(CS.getInstruction()));
 1541   Instruction *TheCall = CS.getInstruction();
unittests/Analysis/SparsePropagation.cpp
  165     Instruction *I = CS.getInstruction();