Home
last modified time | relevance | path

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

123456789

/external/llvm/include/llvm/Transforms/Utils/
DSimplifyLibCalls.h25 class CallInst; variable
51 Value *optimizeCall(CallInst *CI);
54 Value *optimizeMemCpyChk(CallInst *CI, IRBuilder<> &B);
55 Value *optimizeMemMoveChk(CallInst *CI, IRBuilder<> &B);
56 Value *optimizeMemSetChk(CallInst *CI, IRBuilder<> &B);
59 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc::Func Func);
60 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc::Func Func);
64 bool isFortifiedCallFoldable(CallInst *CI, unsigned ObjSizeOp,
100 Value *optimizeCall(CallInst *CI);
104 Value *optimizeStrCat(CallInst *CI, IRBuilder<> &B);
[all …]
/external/llvm/include/llvm/Analysis/
DMemoryBuiltins.h28 class CallInst; variable
79 const CallInst *extractMallocCall(const Value *I, const TargetLibraryInfo *TLI);
80 static inline CallInst *extractMallocCall(Value *I, in extractMallocCall()
82 return const_cast<CallInst*>(extractMallocCall((const Value*)I, TLI)); in extractMallocCall()
90 PointerType *getMallocType(const CallInst *CI, const TargetLibraryInfo *TLI);
97 Type *getMallocAllocatedType(const CallInst *CI, const TargetLibraryInfo *TLI);
104 Value *getMallocArraySize(CallInst *CI, const DataLayout &DL,
114 const CallInst *extractCallocCall(const Value *I, const TargetLibraryInfo *TLI);
115 static inline CallInst *extractCallocCall(Value *I, in extractCallocCall()
117 return const_cast<CallInst*>(extractCallocCall((const Value*)I, TLI)); in extractCallocCall()
[all …]
DVectorUtils.h48 Intrinsic::ID checkUnaryFloatSignature(const CallInst &I,
56 Intrinsic::ID checkBinaryFloatSignature(const CallInst &I,
62 Intrinsic::ID getIntrinsicIDForCall(CallInst *CI, const TargetLibraryInfo *TLI);
/external/llvm/lib/IR/
DIRBuilder.cpp59 static CallInst *createCallHelper(Value *Callee, ArrayRef<Value *> Ops, in createCallHelper()
62 CallInst *CI = CallInst::Create(Callee, Ops, Name); in createCallHelper()
81 CallInst *IRBuilderBase::
91 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemSet()
106 CallInst *IRBuilderBase::
118 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemCpy()
137 CallInst *IRBuilderBase::
149 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemMove()
164 CallInst *IRBuilderBase::CreateLifetimeStart(Value *Ptr, ConstantInt *Size) { in CreateLifetimeStart()
179 CallInst *IRBuilderBase::CreateLifetimeEnd(Value *Ptr, ConstantInt *Size) { in CreateLifetimeEnd()
[all …]
DStatepoint.cpp32 if (isa<InvokeInst>(inst) || isa<CallInst>(inst)) { in isStatepoint()
51 if (const CallInst *call = dyn_cast<CallInst>(inst)) { in isGCRelocate()
68 if (const CallInst *call = dyn_cast<CallInst>(inst)) { in isGCResult()
DInstruction.cpp296 if (const CallInst *CI = dyn_cast<CallInst>(I1)) in haveSameSpecialState()
297 return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() && in haveSameSpecialState()
298 CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() && in haveSameSpecialState()
299 CI->getAttributes() == cast<CallInst>(I2)->getAttributes() && in haveSameSpecialState()
300 CI->hasIdenticalOperandBundleSchema(*cast<CallInst>(I2)); in haveSameSpecialState()
426 return !cast<CallInst>(this)->doesNotAccessMemory(); in mayReadFromMemory()
448 return !cast<CallInst>(this)->onlyReadsMemory(); in mayWriteToMemory()
472 if (const CallInst *CI = dyn_cast<CallInst>(this)) in mayThrow()
482 if (const CallInst *CI = dyn_cast<CallInst>(this)) in mayReturn()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp88 static bool callHasFloatingPointArgument(const CallInst *CI) { in callHasFloatingPointArgument()
194 Value *LibCallSimplifier::optimizeStrCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrCat()
242 Value *LibCallSimplifier::optimizeStrNCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCat()
284 Value *LibCallSimplifier::optimizeStrChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrChr()
329 Value *LibCallSimplifier::optimizeStrRChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrRChr()
364 Value *LibCallSimplifier::optimizeStrCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrCmp()
405 Value *LibCallSimplifier::optimizeStrNCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCmp()
453 Value *LibCallSimplifier::optimizeStrCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrCpy()
475 Value *LibCallSimplifier::optimizeStpCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStpCpy()
502 Value *LibCallSimplifier::optimizeStrNCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCpy()
[all …]
DBuildLibCalls.cpp51 CallInst *CI = B.CreateCall(StrLen, CastToCStr(Ptr, B), "strlen"); in EmitStrLen()
77 CallInst *CI = B.CreateCall( in EmitStrChr()
101 CallInst *CI = B.CreateCall( in EmitStrNCmp()
126 CallInst *CI = in EmitStrCpy()
151 CallInst *CI = B.CreateCall( in EmitStrNCpy()
178 CallInst *CI = B.CreateCall(MemCpy, {Dst, Src, Len, ObjSize}); in EmitMemCpyChk()
199 CallInst *CI = B.CreateCall(MemChr, {CastToCStr(Ptr, B), Val, Len}, "memchr"); in EmitMemChr()
224 CallInst *CI = B.CreateCall( in EmitMemCmp()
260 CallInst *CI = B.CreateCall(Callee, Op, Name); in EmitUnaryFloatFnCall()
281 CallInst *CI = B.CreateCall(Callee, {Op1, Op2}, Name); in EmitBinaryFloatFnCall()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h38 class CallInst; variable
484 const CallInst &StackProtCheckCall) { in initialize()
824 void visitMaskedLoad(const CallInst &I);
825 void visitMaskedStore(const CallInst &I);
826 void visitMaskedGather(const CallInst &I);
827 void visitMaskedScatter(const CallInst &I);
832 void visitCall(const CallInst &I);
833 bool visitMemCmpCall(const CallInst &I);
834 bool visitMemChrCall(const CallInst &I);
835 bool visitStrCpyCall(const CallInst &I, bool isStpcpy);
[all …]
DStatepointLowering.h62 void scheduleRelocCall(const CallInst &RelocCall) { in scheduleRelocCall()
68 void relocCallVisited(const CallInst &RelocCall) { in relocCallVisited()
69 SmallVectorImpl<const CallInst *>::iterator itr = in relocCallVisited()
112 SmallVector<const CallInst *, 10> PendingGCRelocateCalls;
/external/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp45 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
87 CallInst *CI; in handleBranchExpect()
91 CI = dyn_cast<CallInst>(BI.getCondition()); in handleBranchExpect()
95 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBranchExpect()
144 CallInst *CI = dyn_cast<CallInst>(BI++); in lowerExpectIntrinsic()
DTailRecursionElimination.cpp105 CallInst *FindTRECandidate(Instruction *I,
107 bool EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret,
121 bool CanMoveAboveCall(Instruction *I, CallInst *CI);
122 Value *CanTransformAccumulatorRecursion(Instruction *I, CallInst *CI);
294 SmallVector<CallInst *, 32> DeferredTails; in markTails()
303 CallInst *CI = dyn_cast<CallInst>(&I); in markTails()
371 for (CallInst *CI : DeferredTails) { in markTails()
446 bool TailCallElim::CanMoveAboveCall(Instruction *I, CallInst *CI) { in CanMoveAboveCall()
482 static bool isDynamicConstant(Value *V, CallInst *CI, ReturnInst *RI) { in isDynamicConstant()
516 static Value *getCommonReturnValue(ReturnInst *IgnoreRI, CallInst *CI) { in getCommonReturnValue()
[all …]
DPlaceSafepoints.cpp199 CallInst *call = cast<CallInst>(CS.getInstruction()); in needsStatepoint()
282 std::vector<CallInst *> &calls, in scanOneBB()
288 if (CallInst *CI = dyn_cast<CallInst>(&*itr)) { in scanOneBB()
308 std::vector<CallInst *> &calls, in scanInlinedCode()
462 if (isa<CallInst>(inst) || isa<InvokeInst>(inst)) { in findCallSafepoints()
769 CallInst *PollCall = CallInst::Create(F, "", InsertBefore); in INITIALIZE_PASS_DEPENDENCY()
791 std::vector<CallInst *> calls; // new calls in INITIALIZE_PASS_DEPENDENCY()
885 CallInst *ToReplace = cast<CallInst>(CS.getInstruction()); in ReplaceWithStatepoint()
886 CallInst *Call = Builder.CreateGCStatepointCall( in ReplaceWithStatepoint()
945 CallInst *GCResult = Builder.CreateGCResult(Token, CS.getType(), TakenName); in ReplaceWithStatepoint()
/external/llvm/lib/Analysis/
DAssumptionCache.cpp42 void AssumptionCache::registerAssumption(CallInst *CI) { in registerAssumption()
69 assert(match(cast<CallInst>(VH), m_Intrinsic<Intrinsic::assume>()) && in registerAssumption()
86 OS << " " << *cast<CallInst>(VH)->getArgOperand(0) << "\n"; in run()
117 SmallPtrSet<const CallInst *, 4> AssumptionSet; in verifyAnalysis()
121 AssumptionSet.insert(cast<CallInst>(VH)); in verifyAnalysis()
126 assert(AssumptionSet.count(cast<CallInst>(&II)) && in verifyAnalysis()
/external/llvm/include/llvm/IR/
DCallSite.h37 class CallInst; variable
46 typename CallTy = const CallInst,
196 return isCall() && cast<CallInst>(getInstruction())->isMustTailCall(); in isMustTailCall()
201 return isCall() && cast<CallInst>(getInstruction())->isTailCall(); in isTailCall()
207 ? cast<CallInst>(II)->METHOD \
213 cast<CallInst>(II)->METHOD; \
227 return cast<CallInst>(getInstruction())->isInlineAsm(); in isInlineAsm()
397 cast<CallInst>(II)->getOperandBundlesAsDefs(Defs); in getOperandBundlesAsDefs()
464 return cast<CallInst>(getInstruction())->op_end() - 1; in getCallee()
471 Instruction, CallInst, InvokeInst,
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILPeepholeOptimizer.cpp85 bool expandBFI(CallInst *CI);
88 bool expandBFM(CallInst *CI);
92 bool isSigned24BitOps(CallInst *CI);
93 void expandSigned24BitOps(CallInst *CI);
97 bool isRWGLocalOpt(CallInst *CI);
101 bool convertAccurateDivide(CallInst *CI);
102 void expandAccurateDivide(CallInst *CI);
111 bool propagateSamplerInst(CallInst *CI);
129 SmallVector< std::pair<CallInst *, Function *>, 16> atomicFuncs;
130 SmallVector<CallInst *, 16> isConstVec;
[all …]
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCOpts.cpp64 cast<CallInst>(Arg)->getArgOperand(0)); in FindSingleUseIdentifiedObject()
633 cast<CallInst>(RetainRV)->setCalledFunction(NewDecl); in OptimizeRetainRVCall()
667 CallInst *AutoreleaseRVCI = cast<CallInst>(AutoreleaseRV); in OptimizeAutoreleaseRVCall()
716 CallInst *CI = cast<CallInst>(Inst); in OptimizeIndividualCalls()
734 CallInst *CI = cast<CallInst>(Inst); in OptimizeIndividualCalls()
764 CallInst *Call = cast<CallInst>(Inst); in OptimizeIndividualCalls()
775 CallInst *NewCall = CallInst::Create(Decl, Call->getArgOperand(0), "", in OptimizeIndividualCalls()
796 cast<CallInst>(Inst)->setTailCall(); in OptimizeIndividualCalls()
805 cast<CallInst>(Inst)->setTailCall(false); in OptimizeIndividualCalls()
813 cast<CallInst>(Inst)->setDoesNotThrow(); in OptimizeIndividualCalls()
[all …]
DObjCARCContract.cpp74 SmallPtrSet<CallInst *, 8> StoreStrongCalls;
139 cast<CallInst>(Retain)->setCalledFunction(Decl); in optimizeRetainCall()
154 CallInst *Retain = nullptr; in contractAutorelease()
170 Retain = dyn_cast_or_null<CallInst>(*DependingInstructions.begin()); in contractAutorelease()
385 CallInst *StoreStrong = CallInst::Create(Decl, Args, "", Store); in tryToContractReleaseIntoStoreStrong()
458 CallInst::Create(IA, "", Inst); in tryToPeepholeInstruction()
465 CallInst *CI = cast<CallInst>(Inst); in tryToPeepholeInstruction()
549 Value *Arg = cast<CallInst>(Inst)->getArgOperand(0); in runOnFunction()
618 for (CallInst *CI : StoreStrongCalls) in runOnFunction()
/external/llvm/lib/Target/NVPTX/
DNVVMReflect.cpp162 assert(isa<CallInst>(U) && "Only a call instruction can use _reflect"); in handleFunction()
163 CallInst *Reflect = cast<CallInst>(U); in handleFunction()
170 if (isa<CallInst>(Str)) { in handleFunction()
172 const CallInst *ConvCall = cast<CallInst>(Str); in handleFunction()
/external/llvm/include/llvm/CodeGen/
DIntrinsicLowering.h22 class CallInst; variable
49 void LowerIntrinsicCall(CallInst *CI);
54 static bool LowerToByteSwap(CallInst *CI);
/external/llvm/lib/Transforms/IPO/
DPruneEH.cpp129 if (const auto *CI = dyn_cast<CallInst>(&I)) { in runOnSCC()
194 CallInst *Call = CallInst::Create(II->getCalledValue(), Args, OpBundles, in SimplifyFunction()
225 if (CallInst *CI = dyn_cast<CallInst>(I++)) in SimplifyFunction()
257 if (CallInst *CI = dyn_cast<CallInst>(I)) { in DeleteBasicBlock()
/external/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp197 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term); in openIf()
204 Value *Ret = CallInst::Create(Else, popSaved(), "", Term); in insertElse()
249 CallInst *OldEnd = dyn_cast<CallInst>(Parent->getFirstInsertionPt()); in handleLoopCondition()
252 Ret = CallInst::Create(ElseBreak, Args, "", OldEnd); in handleLoopCondition()
257 Value *PhiArg = CallInst::Create(Break, Broken, "", Insert); in handleLoopCondition()
272 return CallInst::Create(IfBreak, Args, "", Insert); in handleLoopCondition()
297 Term->setCondition(CallInst::Create(Loop, Arg, "", Term)); in handleLoop()
318 CallInst::Create(EndCf, popSaved(), "", &*BB->getFirstInsertionPt()); in closeControlFlow()
/external/llvm/unittests/IR/
DInstructionsTest.cpp72 TEST_F(ModuleWithFunctionTest, CallInst) { in TEST_F() argument
76 std::unique_ptr<CallInst> Call(CallInst::Create(F, Args)); in TEST_F()
499 std::unique_ptr<CallInst> Call(CallInst::Create(Callee, Args, "result")); in TEST()
502 CallInst::TailCallKind Kinds[] = {CallInst::TCK_None, CallInst::TCK_Tail, in TEST()
503 CallInst::TCK_MustTail}; in TEST()
504 for (CallInst::TailCallKind TCK : Kinds) { in TEST()
506 std::unique_ptr<CallInst> Clone(cast<CallInst>(Call->clone())); in TEST()
509 Call->setTailCallKind(CallInst::TCK_None); in TEST()
516 std::unique_ptr<CallInst> Clone(cast<CallInst>(Call->clone())); in TEST()
DWaymarkTest.cpp34 const CallInst *A = CallInst::Create(F.get(), makeArrayRef(values)); in TEST()
35 ASSERT_NE(A, (const CallInst*)nullptr); in TEST()
/external/llvm/examples/Fibonacci/
Dfibonacci.cpp72 CallInst *CallFibX1 = CallInst::Create(FibF, Sub, "fibx1", RecurseBB); in CreateFibFunction()
77 CallInst *CallFibX2 = CallInst::Create(FibF, Sub, "fibx2", RecurseBB); in CreateFibFunction()

123456789