Searched refs:CallInst (Results 1 - 25 of 204) sorted by relevance

123456789

/external/llvm/include/llvm/Transforms/Utils/
H A DSimplifyLibCalls.h25 class CallInst;
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 *C
[all...]
/external/llvm/include/llvm/CodeGen/
H A DIntrinsicLowering.h22 class CallInst;
50 void LowerIntrinsicCall(CallInst *CI);
55 static bool LowerToByteSwap(CallInst *CI);
/external/llvm/lib/IR/
H A DStatepoint.cpp32 if (isa<InvokeInst>(inst) || isa<CallInst>(inst)) {
51 if (const CallInst *call = dyn_cast<CallInst>(inst)) {
68 if (const CallInst *call = dyn_cast<CallInst>(inst)) {
H A DIRBuilder.cpp56 static CallInst *createCallHelper(Value *Callee, ArrayRef<Value *> Ops,
59 CallInst *CI = CallInst::Create(Callee, Ops, Name);
65 CallInst *IRBuilderBase::
75 CallInst *CI = createCallHelper(TheFn, Ops, this);
90 CallInst *IRBuilderBase::
102 CallInst *CI = createCallHelper(TheFn, Ops, this);
121 CallInst *IRBuilderBase::
133 CallInst *CI = createCallHelper(TheFn, Ops, this);
148 CallInst *IRBuilderBas
[all...]
H A DInstruction.cpp280 if (const CallInst *CI = dyn_cast<CallInst>(I1))
281 return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() &&
282 CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() &&
283 CI->getAttributes() == cast<CallInst>(I2)->getAttributes();
407 return !cast<CallInst>(this)->doesNotAccessMemory();
427 return !cast<CallInst>(this)->onlyReadsMemory();
451 if (const CallInst *CI = dyn_cast<CallInst>(this))
457 if (const CallInst *C
[all...]
/external/llvm/tools/bugpoint-passes/
H A DTestPasses.cpp38 if (isa<CallInst>(*I))
61 if (CallInst *CI = dyn_cast<CallInst>(I)) {
/external/llvm/lib/Analysis/
H A DAssumptionCache.cpp42 void AssumptionCache::registerAssumption(CallInst *CI) {
69 assert(match(cast<CallInst>(VH), m_Intrinsic<Intrinsic::assume>()) &&
86 OS << " " << *cast<CallInst>(VH)->getArgOperand(0) << "\n";
117 SmallPtrSet<const CallInst *, 4> AssumptionSet;
121 AssumptionSet.insert(cast<CallInst>(VH));
126 assert(AssumptionSet.count(cast<CallInst>(&II)) &&
/external/llvm/include/llvm/Analysis/
H A DMemoryBuiltins.h28 class CallInst;
76 /// extractMallocCall - Returns the corresponding CallInst if the instruction
77 /// is a malloc call. Since CallInst::CreateMalloc() only creates calls, we
79 const CallInst *extractMallocCall(const Value *I, const TargetLibraryInfo *TLI);
80 static inline CallInst *extractMallocCall(Value *I,
82 return const_cast<CallInst*>(extractMallocCall((const Value*)I, TLI));
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,
112 /// extractCallocCall - Returns the corresponding CallInst i
[all...]
/external/llvm/include/llvm/IR/
H A DAutoUpgrade.h20 class CallInst;
37 void UpgradeIntrinsicCall(CallInst *CI, Function *NewFn);
H A DCallSite.h36 class CallInst;
43 typename CallTy = const CallInst,
71 /// isCall - true if a CallInst is enclosed.
165 /// CallInst can be tail call optimized.
167 return isCall() && cast<CallInst>(getInstruction())->isMustTailCall();
172 return isCall() && cast<CallInst>(getInstruction())->isTailCall();
178 ? cast<CallInst>(II)->METHOD \
184 cast<CallInst>(II)->METHOD; \
345 return cast<CallInst>(getInstruction())->op_end() - 1;
352 CallInst, InvokeIns
[all...]
/external/llvm/lib/CodeGen/SelectionDAG/
H A DStatepointLowering.h82 void scheduleRelocCall(const CallInst &RelocCall) {
88 void relocCallVisited(const CallInst &RelocCall) {
89 SmallVectorImpl<const CallInst *>::iterator itr =
134 SmallVector<const CallInst *, 10> PendingGCRelocateCalls;
H A DSelectionDAGBuilder.h37 class CallInst;
411 const CallInst &StackProtCheckCall) {
775 void visitMaskedLoad(const CallInst &I);
776 void visitMaskedStore(const CallInst &I);
781 void visitCall(const CallInst &I);
782 bool visitMemCmpCall(const CallInst &I);
783 bool visitMemChrCall(const CallInst &I);
784 bool visitStrCpyCall(const CallInst &I, bool isStpcpy);
785 bool visitStrCmpCall(const CallInst &I);
786 bool visitStrLenCall(const CallInst
[all...]
/external/llvm/unittests/IR/
H A DWaymarkTest.cpp34 const CallInst *A = CallInst::Create(F.get(), makeArrayRef(values));
35 ASSERT_NE(A, (const CallInst*)nullptr);
/external/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp45 CallInst *CI = dyn_cast<CallInst>(SI.getCondition());
87 CallInst *CI;
91 CI = dyn_cast<CallInst>(BI.getCondition());
95 CI = dyn_cast<CallInst>(CmpI->getOperand(0));
144 CallInst *CI = dyn_cast<CallInst>(BI++);
H A DPartiallyInlineLibCalls.cpp44 bool optimizeSQRT(CallInst *Call, Function *CalledFunc,
72 CallInst *Call = dyn_cast<CallInst>(&*II);
104 bool PartiallyInlineLibCalls::optimizeSQRT(CallInst *Call,
H A DTailRecursionElimination.cpp104 CallInst *FindTRECandidate(Instruction *I,
106 bool EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret,
120 bool CanMoveAboveCall(Instruction *I, CallInst *CI);
121 Value *CanTransformAccumulatorRecursion(Instruction *I, CallInst *CI);
289 SmallVector<CallInst *, 32> DeferredTails;
298 CallInst *CI = dyn_cast<CallInst>(&I);
364 for (CallInst *CI : DeferredTails) {
439 bool TailCallElim::CanMoveAboveCall(Instruction *I, CallInst *CI) {
475 static bool isDynamicConstant(Value *V, CallInst *C
[all...]
/external/llvm/examples/Fibonacci/
H A Dfibonacci.cpp71 CallInst *CallFibX1 = CallInst::Create(FibF, Sub, "fibx1", RecurseBB);
76 CallInst *CallFibX2 = CallInst::Create(FibF, Sub, "fibx2", RecurseBB);
/external/llvm/lib/Transforms/IPO/
H A DPruneEH.cpp118 if (CallInst *CI = dyn_cast<CallInst>(I)) {
183 CallInst *Call = CallInst::Create(II->getCalledValue(), Args, "", II);
213 if (CallInst *CI = dyn_cast<CallInst>(I++))
245 if (CallInst *CI = dyn_cast<CallInst>(I)) {
/external/llvm/lib/Transforms/ObjCARC/
H A DARCInstKind.h102 if (const CallInst *CI = dyn_cast<CallInst>(V)) {
H A DObjCARCOpts.cpp64 cast<CallInst>(Arg)->getArgOperand(0));
628 cast<CallInst>(RetainRV)->setCalledFunction(NewDecl);
662 CallInst *AutoreleaseRVCI = cast<CallInst>(AutoreleaseRV);
711 CallInst *CI = cast<CallInst>(Inst);
729 CallInst *CI = cast<CallInst>(Inst);
759 CallInst *Call = cast<CallInst>(Ins
[all...]
H A DObjCARCContract.cpp74 SmallPtrSet<CallInst *, 8> StoreStrongCalls;
139 cast<CallInst>(Retain)->setCalledFunction(Decl);
154 CallInst *Retain = nullptr;
170 Retain = dyn_cast_or_null<CallInst>(*DependingInstructions.begin());
385 CallInst *StoreStrong = CallInst::Create(Decl, Args, "", Store);
458 CallInst::Create(IA, "", Inst);
465 CallInst *CI = cast<CallInst>(Inst);
549 Value *Arg = cast<CallInst>(Ins
[all...]
/external/llvm/lib/Transforms/Utils/
H A DLowerInvoke.cpp60 CallInst *NewCall = CallInst::Create(II->getCalledValue(),
H A DSimplifyLibCalls.cpp95 static bool callHasFloatingPointArgument(const CallInst *CI) {
96 for (CallInst::const_op_iterator it = CI->op_begin(), e = CI->op_end();
187 Value *LibCallSimplifier::optimizeStrCat(CallInst *CI, IRBuilder<> &B) {
235 Value *LibCallSimplifier::optimizeStrNCat(CallInst *CI, IRBuilder<> &B) {
277 Value *LibCallSimplifier::optimizeStrChr(CallInst *CI, IRBuilder<> &B) {
322 Value *LibCallSimplifier::optimizeStrRChr(CallInst *CI, IRBuilder<> &B) {
357 Value *LibCallSimplifier::optimizeStrCmp(CallInst *CI, IRBuilder<> &B) {
398 Value *LibCallSimplifier::optimizeStrNCmp(CallInst *CI, IRBuilder<> &B) {
446 Value *LibCallSimplifier::optimizeStrCpy(CallInst *CI, IRBuilder<> &B) {
468 Value *LibCallSimplifier::optimizeStpCpy(CallInst *C
[all...]
/external/llvm/lib/Target/NVPTX/
H A DNVPTXLowerStructArgs.cpp89 CallInst *CallCVT =
90 CallInst::Create(CvtFunc, BitcastArgs, "cvt_to_param", FirstInst);
H A DNVVMReflect.cpp136 // Each of them should a CallInst with a ConstantArray argument.
139 // found in VarMap. If so, replace the uses of CallInst with the
162 assert(isa<CallInst>(U) && "Only a call instruction can use _reflect");
163 CallInst *Reflect = cast<CallInst>(U);
170 if (isa<CallInst>(Str)) {
172 const CallInst *ConvCall = cast<CallInst>(Str);

Completed in 553 milliseconds

123456789