Home
last modified time | relevance | path

Searched refs:CallInst (Results 1 – 25 of 418) sorted by relevance

12345678910>>...17

/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSimplifyLibCalls.h24 class CallInst; variable
54 Value *optimizeCall(CallInst *CI, IRBuilderBase &B);
57 Value *optimizeMemCpyChk(CallInst *CI, IRBuilderBase &B);
58 Value *optimizeMemMoveChk(CallInst *CI, IRBuilderBase &B);
59 Value *optimizeMemSetChk(CallInst *CI, IRBuilderBase &B);
62 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilderBase &B, LibFunc Func);
63 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilderBase &B, LibFunc Func);
64 Value *optimizeStrLenChk(CallInst *CI, IRBuilderBase &B);
65 Value *optimizeMemPCpyChk(CallInst *CI, IRBuilderBase &B);
66 Value *optimizeMemCCpyChk(CallInst *CI, IRBuilderBase &B);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLibCallsShrinkWrap.cpp57 void visitCallInst(CallInst &CI) { checkCandidate(CI); } in visitCallInst()
72 bool perform(CallInst *CI);
73 void checkCandidate(CallInst &CI);
74 void shrinkWrapCI(CallInst *CI, Value *Cond);
75 bool performCallDomainErrorOnly(CallInst *CI, const LibFunc &Func);
76 bool performCallErrors(CallInst *CI, const LibFunc &Func);
77 bool performCallRangeErrorOnly(CallInst *CI, const LibFunc &Func);
78 Value *generateOneRangeCond(CallInst *CI, const LibFunc &Func);
79 Value *generateTwoRangeCond(CallInst *CI, const LibFunc &Func);
80 Value *generateCondForPow(CallInst *CI, const LibFunc &Func);
[all …]
H A DEntryExitInstrumenter.cpp45 CallInst *Call = CallInst::Create( in insertCall()
56 Instruction *RetAddr = CallInst::Create( in insertCall()
64 CallInst *Call = CallInst::Create(Fn, RetAddr, "", InsertionPt); in insertCall()
73 CallInst *Call = CallInst::Create(Fn, "", InsertionPt); in insertCall()
85 Instruction *RetAddr = CallInst::Create( in insertCall()
92 CallInst *Call = in insertCall()
93 CallInst::Create(Fn, ArrayRef<Value *>(Args), "", InsertionPt); in insertCall()
149 if (CallInst *CI = BB.getTerminatingMustTailCall()) in runOnFunction()
H A DSimplifyLibCalls.cpp121 static bool callHasFloatingPointArgument(const CallInst *CI) { in callHasFloatingPointArgument()
127 static bool callHasFP128Argument(const CallInst *CI) { in callHasFP128Argument()
140 static Value *convertStrToInt(CallInst *CI, StringRef &Str, Value *EndPtr, in convertStrToInt()
254 static bool canTransformToMemCmp(CallInst *CI, Value *Str, uint64_t Len, in canTransformToMemCmp()
268 static void annotateDereferenceableBytes(CallInst *CI, in annotateDereferenceableBytes()
293 static void annotateNonNullNoUndefBasedOnAccess(CallInst *CI, in annotateNonNullNoUndefBasedOnAccess()
315 static void annotateNonNullAndDereferenceable(CallInst *CI, ArrayRef<unsigned> ArgNos, in annotateNonNullAndDereferenceable()
336 static Value *copyFlags(const CallInst &Old, Value *New) { in copyFlags()
339 if (auto *NewCI = dyn_cast_or_null<CallInst>(New)) in copyFlags()
344 static Value *mergeAttributesAndFlags(CallInst *NewCI, const CallInst &Old) { in mergeAttributesAndFlags()
[all …]
H A DEscapeEnumerator.cpp44 if (CallInst *CI = CurBB->getTerminatingMustTailCall()) in Next()
63 if (CallInst *CI = dyn_cast<CallInst>(&II)) in Next()
91 CallInst *CI = cast<CallInst>(Calls[--I]); in Next()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp105 CallInst *
109 CallInst *CI = CreateCall(Callee, Ops, OpBundles, Name); in createCallHelper()
165 CallInst *IRBuilderBase::CreateMemSet(Value *Ptr, Value *Val, Value *Size, in CreateMemSet()
171 CallInst *CI = CreateIntrinsic(Intrinsic::memset, Tys, Ops); in CreateMemSet()
179 CallInst *IRBuilderBase::CreateMemSetInline(Value *Dst, MaybeAlign DstAlign, in CreateMemSetInline()
186 CallInst *CI = CreateIntrinsic(Intrinsic::memset_inline, Tys, Ops); in CreateMemSetInline()
194 CallInst *IRBuilderBase::CreateElementUnorderedAtomicMemSet( in CreateElementUnorderedAtomicMemSet()
201 CallInst *CI = in CreateElementUnorderedAtomicMemSet()
209 CallInst *IRBuilderBase::CreateMemTransferInst(Intrinsic::ID IntrID, Value *Dst, in CreateMemTransferInst()
220 CallInst *CI = CreateIntrinsic(IntrID, Tys, Ops); in CreateMemTransferInst()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h50 class CallInst; variable
485 void LowerDeoptimizeCall(const CallInst *CI);
539 void visitCallBrLandingPad(const CallInst &I);
596 void visitMaskedLoad(const CallInst &I, bool IsExpanding = false);
597 void visitMaskedStore(const CallInst &I, bool IsCompressing = false);
598 void visitMaskedGather(const CallInst &I);
599 void visitMaskedScatter(const CallInst &I);
604 void visitCall(const CallInst &I);
605 bool visitMemCmpBCmpCall(const CallInst &I);
606 bool visitMemPCpyCall(const CallInst &I);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.h41 Value *OldArg = cast<CallInst>(CI)->getArgOperand(0); in EraseInstruction()
68 if (const auto *C = dyn_cast<CallInst>(Opnd)) in getreturnRVOperand()
101 CallInst *createCallInstWithColors(
119 CallInst *insertRVCall(BasicBlock::iterator InsertPt,
123 CallInst *insertRVCallWithColors(
129 if (auto *CI = dyn_cast<CallInst>(I)) in contains()
135 void eraseInst(CallInst *CI) { in eraseInst()
140 if (auto *CI = dyn_cast<CallInst>(U)) in eraseInst()
159 DenseMap<CallInst *, CallBase *> RVCalls;
H A DObjCARCOpts.cpp99 cast<CallInst>(Arg)->getArgOperand(0)); in FindSingleUseIdentifiedObject()
644 cast<CallInst>(RetainRV)->setCalledFunction(NewDecl); in OptimizeRetainRVCall()
682 cast<CallInst>(AutoreleaseRV)->getArgOperand(0)); in OptimizeInlinedAutoreleaseRVCall()
687 Inst->replaceAllUsesWith(cast<CallInst>(Inst)->getArgOperand(0)); in OptimizeInlinedAutoreleaseRVCall()
695 Value *CallArg = cast<CallInst>(Inst)->getArgOperand(0); in OptimizeInlinedAutoreleaseRVCall()
696 CallInst *Release = in OptimizeInlinedAutoreleaseRVCall()
697 CallInst::Create(EP.get(ARCRuntimeEntryPointKind::Release), CallArg, "", in OptimizeInlinedAutoreleaseRVCall()
750 CallInst *AutoreleaseRVCI = cast<CallInst>(AutoreleaseRV); in OptimizeAutoreleaseRVCall()
810 if (auto *CI = dyn_cast<CallInst>(Inst)) in OptimizeIndividualCalls()
933 CallInst *CI = cast<CallInst>(Inst); in OptimizeIndividualCallImpl()
[all …]
H A DObjCARC.cpp24 CallInst *objcarc::createCallInstWithColors( in createCallInstWithColors()
40 return CallInst::Create(FTy, Callee, Args, OpBundles, NameStr, InsertBefore); in createCallInstWithColors()
74 CallInst *BundledRetainClaimRVs::insertRVCall(BasicBlock::iterator InsertPt, in insertRVCall()
80 CallInst *BundledRetainClaimRVs::insertRVCallWithColors( in insertRVCallWithColors()
102 if (auto *CI = dyn_cast<CallInst>(CB)) in ~BundledRetainClaimRVs()
103 CI->setTailCallKind(CallInst::TCK_NoTail); in ~BundledRetainClaimRVs()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILOpLowering.cpp43 SmallVector<CallInst *> CleanupCasts;
54 llvm::function_ref<Error(CallInst *CI)> ReplaceCall) { in replaceFunction()
56 CallInst *CI = dyn_cast<CallInst>(U); in replaceFunction()
86 Error replaceNamedStructUses(CallInst *Intrin, CallInst *DXILOp) { in replaceNamedStructUses()
109 return replaceFunction(F, [&](CallInst *CI) -> Error { in replaceFunctionWithOp()
130 Expected<CallInst *> OpCall = in replaceFunctionWithOp()
152 CallInst *Cast = OpBuilder.getIRB().CreateIntrinsic( in createTmpHandleCast()
159 SmallVector<CallInst *> ToRemove; in cleanupHandleCasts()
162 for (CallInst *Cast : CleanupCasts) { in cleanupHandleCasts()
177 CallInst *Def = cast<CallInst>(Cast->getOperand(0)); in cleanupHandleCasts()
[all …]
H A DDXILIntrinsicExpansion.cpp101 static Value *expandUsubSat(CallInst *Orig) { in expandUsubSat()
114 static Value *expandVecReduceAdd(CallInst *Orig, Intrinsic::ID IntrinsicId) { in expandVecReduceAdd()
146 static Value *expandAbs(CallInst *Orig) { in expandAbs()
162 static Value *expandCrossIntrinsic(CallInst *Orig) { in expandCrossIntrinsic()
200 static Value *expandFloatDotIntrinsic(CallInst *Orig, Value *A, Value *B) { in expandFloatDotIntrinsic()
241 static Value *expandFloatDotIntrinsic(CallInst *Orig) { in expandFloatDotIntrinsic()
247 static Value *expandIntegerDotIntrinsic(CallInst *Orig, in expandIntegerDotIntrinsic()
280 static Value *expandExpIntrinsic(CallInst *Orig) { in expandExpIntrinsic()
299 static Value *expandIsFPClass(CallInst *Orig) { in expandIsFPClass()
351 static Value *expandAnyOrAllIntrinsic(CallInst *Orig, in expandAnyOrAllIntrinsic()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCGenScalarMASSEntries.cpp53 bool isCandidateSafeToLower(const CallInst &CI) const;
54 bool isFiniteCallSafe(const CallInst &CI) const;
55 bool createScalarMASSCall(StringRef MASSEntry, CallInst &CI,
63 bool PPCGenScalarMASSEntries::isCandidateSafeToLower(const CallInst &CI) const { in isCandidateSafeToLower()
73 bool PPCGenScalarMASSEntries::isFiniteCallSafe(const CallInst &CI) const { in isFiniteCallSafe()
87 CallInst &CI, in createScalarMASSCall()
128 if (auto *CI = dyn_cast_or_null<CallInst>(User)) { in runOnModule()
H A DPPCBoolRetToInt.cpp80 if (CurrUser && !isa<CallInst>(Curr) && !isa<Constant>(Curr)) in findAllDefs()
138 return isa<ReturnInst>(V) || isa<CallInst>(V) || isa<PHINode>(V); in getPromotablePHINodes()
141 return isa<Constant>(V) || isa<Argument>(V) || isa<CallInst>(V) || in getPromotablePHINodes()
203 if (auto *CI = dyn_cast<CallInst>(&I)) in runOnFunction()
226 !isa<Argument>(V) && !isa<CallInst>(V)) in runOnUse()
236 if (isa<CallInst>(U.getUser())) in runOnUse()
254 if (First && !isa<CallInst>(First) && !isa<Constant>(First)) in runOnUse()
H A DPPCLowerMASSVEntries.cpp57 bool handlePowSpecialCases(CallInst *CI, Function &Func, Module &M);
58 bool lowerMASSVCall(CallInst *CI, Function &Func, Module &M,
107 bool PPCLowerMASSVEntries::handlePowSpecialCases(CallInst *CI, Function &Func, in handlePowSpecialCases()
136 bool PPCLowerMASSVEntries::lowerMASSVCall(CallInst *CI, Function &Func, in lowerMASSVCall()
178 auto *CI = dyn_cast<CallInst>(User); in runOnModule()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFPreserveStaticOffset.cpp129 if (auto *Call = dyn_cast<CallInst>(I)) in isIntrinsicCall()
139 static CallInst *isGEPAndLoad(Value *I) { in isGEPAndLoad()
141 return cast<CallInst>(I); in isGEPAndLoad()
145 static CallInst *isGEPAndStore(Value *I) { in isGEPAndStore()
147 return cast<CallInst>(I); in isGEPAndStore()
159 static CallInst *makeIntrinsicCall(Module *M, in makeIntrinsicCall()
165 return CallInst::Create(Fn, Args); in makeIntrinsicCall()
168 static void setParamElementType(CallInst *Call, unsigned ArgNo, Type *Type) { in setParamElementType()
173 static void setParamReadNone(CallInst *Call, unsigned ArgNo) { in setParamReadNone()
178 static void setParamReadOnly(CallInst *Call, unsigned ArgNo) { in setParamReadOnly()
[all …]
H A DBPFAbstractMemberAccess.cpp111 auto *NewInst = CallInst::Create(Fn, {SeqNumVal, Input}); in insertPassThrough()
133 typedef std::stack<std::pair<CallInst *, CallInfo>> CallInfoStack;
149 std::map<CallInst *, std::pair<CallInst *, CallInfo>> AIChain;
153 std::map<CallInst *, CallInfo> BaseAICalls;
164 void traceAICall(CallInst *Call, CallInfo &ParentInfo);
165 void traceBitCast(BitCastInst *BitCast, CallInst *Parent,
167 void traceGEP(GetElementPtrInst *GEP, CallInst *Parent,
171 bool IsPreserveDIAccessIndexCall(const CallInst *Call, CallInfo &Cinfo);
182 Value *computeBaseAndAccessKey(CallInst *Call, CallInfo &CInfo,
184 MDNode *computeAccessKey(CallInst *Call, CallInfo &CInfo,
[all …]
H A DBPFCheckAndAdjustIR.cpp107 CallInst *ToBeDeleted = nullptr; in removePassThroughBuiltin()
116 auto *Call = dyn_cast<CallInst>(&I); in removePassThroughBuiltin()
137 CallInst *ToBeDeleted = nullptr; in removeCompareBuiltin()
146 auto *Call = dyn_cast<CallInst>(&I); in removeCompareBuiltin()
176 CallInst *MinMax;
201 auto *Call = dyn_cast<CallInst>(V); in sinkMinMaxInBB()
272 CallInst *MinMax = Info.MinMax; in sinkMinMaxInBB()
368 static void unrollGEPLoad(CallInst *Call) { in unrollGEPLoad()
376 static void unrollGEPStore(CallInst *Call) { in unrollGEPStore()
384 SmallVector<CallInst *> GEPLoads; in removeGEPBuiltinsInFunc()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp69 bool TDOFold(CallInst *CI, const FuncInfo &FInfo);
80 bool sincosUseNative(CallInst *aCI, const FuncInfo &FInfo);
85 bool evaluateCall(CallInst *aCI, const FuncInfo &FInfo);
98 bool fold_read_write_pipe(CallInst *CI, IRBuilder<> &B,
106 bool shouldReplaceLibcallWithIntrinsic(const CallInst *CI,
110 void replaceLibCallWithSimpleIntrinsic(IRBuilder<> &B, CallInst *CI,
113 bool tryReplaceLibcallWithSimpleIntrinsic(IRBuilder<> &B, CallInst *CI,
137 bool fold(CallInst *CI);
143 bool useNative(CallInst *CI);
149 static CallInst *CreateCallEx(IRB &B, FunctionCallee Callee, Value *Arg, in CreateCallEx()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTypeMetadataUtils.h24 class CallInst; variable
51 SmallVectorImpl<CallInst *> &Assumes, const CallInst *CI,
60 const CallInst *CI, DominatorTree &DT);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp237 SmallVector<CallInst *, 32> DeferredTails; in markTails()
246 CallInst *CI = dyn_cast<CallInst>(&I); in markTails()
327 for (CallInst *CI : DeferredTails) { in markTails()
344 static bool canMoveAboveCall(Instruction *I, CallInst *CI, AliasAnalysis *AA) { in canMoveAboveCall()
378 static bool canTransformAccumulatorRecursion(Instruction *I, CallInst *CI) { in canTransformAccumulatorRecursion()
456 CallInst *findTRECandidate(BasicBlock *BB);
458 void createTailRecurseLoopHeader(CallInst *CI);
462 bool eliminateCall(CallInst *CI);
468 void copyByValueOperandIntoLocalTemp(CallInst *CI, int OpndIdx);
470 void copyLocalTempOfByValueOperandIntoArguments(CallInst *CI, int OpndIdx);
[all …]
H A DLowerExpectIntrinsic.cpp56 getBranchWeight(Intrinsic::ID IntrinsicID, CallInst *CI, int BranchCount) { in getBranchWeight()
77 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
116 static void handlePhiDef(CallInst *Expect) { in handlePhiDef()
287 CallInst *CI; in handleBrSelExpect()
293 CI = dyn_cast<CallInst>(BSI.getCondition()); in handleBrSelExpect()
303 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBrSelExpect()
381 CallInst *CI = dyn_cast<CallInst>(&Inst); in lowerExpectIntrinsic()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h630 CallInst *CreateMemSet(Value *Ptr, Value *Val, uint64_t Size,
636 LLVM_ABI CallInst *CreateMemSet(Value *Ptr, Value *Val, Value *Size,
640 LLVM_ABI CallInst *CreateMemSetInline(Value *Dst, MaybeAlign DstAlign,
650 CallInst *
658 LLVM_ABI CallInst *CreateMalloc(Type *IntPtrTy, Type *AllocTy,
669 LLVM_ABI CallInst *CreateMalloc(Type *IntPtrTy, Type *AllocTy,
674 LLVM_ABI CallInst *CreateFree(Value *Source,
677 LLVM_ABI CallInst *
687 CallInst *CreateMemCpy(Value *Dst, MaybeAlign DstAlign, Value *Src,
695 LLVM_ABI CallInst *
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DIntrinsicLowering.h19 class CallInst; variable
38 void LowerIntrinsicCall(CallInst *CI);
42 static bool LowerToByteSwap(CallInst *CI);
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DAlignmentFromAssumptions.h25 class CallInst; variable
42 bool extractAlignmentInfo(CallInst *I, unsigned Idx, Value *&AAPtr,
44 bool processAssumption(CallInst *I, unsigned Idx);

12345678910>>...17