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

12345678

/external/llvm/include/llvm/CodeGen/
H A DIntrinsicLowering.h22 class CallInst;
50 void LowerIntrinsicCall(CallInst *CI);
55 static bool LowerToByteSwap(CallInst *CI);
/external/llvm/include/llvm/Transforms/Utils/
H A DSimplifyLibCalls.h20 class CallInst;
45 Value *optimizeCall(CallInst *CI);
/external/llvm/tools/bugpoint-passes/
H A DTestPasses.cpp38 if (isa<CallInst>(*I))
61 if (CallInst *CI = dyn_cast<CallInst>(I)) {
/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));
85 /// isArrayMalloc - Returns the corresponding CallInst if the instruction
88 const CallInst *isArrayMalloc(const Value *I, const DataLayout *DL,
96 PointerType *getMallocType(const CallInst *CI, const TargetLibraryInfo *TLI);
103 Type *getMallocAllocatedType(const CallInst *C
[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,
70 /// isCall - true if a CallInst is enclosed.
164 /// CallInst can be tail call optimized.
166 return isCall() && cast<CallInst>(getInstruction())->isMustTailCall();
171 return isCall() && cast<CallInst>(getInstruction())->isTailCall();
177 ? cast<CallInst>(II)->METHOD \
183 cast<CallInst>(II)->METHOD; \
325 return cast<CallInst>(getInstruction())->op_end() - 1;
332 CallInst, InvokeIns
[all...]
/external/llvm/lib/Analysis/
H A DCodeMetrics.cpp32 if (isa<CallInst>(II) || isa<InvokeInst>(II)) {
67 if (const CallInst *CI = dyn_cast<CallInst>(II))
/external/llvm/unittests/IR/
H A DWaymarkTest.cpp33 const CallInst *A = CallInst::Create(F, makeArrayRef(values));
34 ASSERT_NE(A, (const CallInst*)nullptr);
/external/llvm/lib/IR/
H A DIRBuilder.cpp55 static CallInst *createCallHelper(Value *Callee, ArrayRef<Value *> Ops,
57 CallInst *CI = CallInst::Create(Callee, Ops, "");
63 CallInst *IRBuilderBase::
72 CallInst *CI = createCallHelper(TheFn, Ops, this);
81 CallInst *IRBuilderBase::
92 CallInst *CI = createCallHelper(TheFn, Ops, this);
105 CallInst *IRBuilderBase::
116 CallInst *CI = createCallHelper(TheFn, Ops, this);
125 CallInst *IRBuilderBas
[all...]
H A DInstruction.cpp286 if (const CallInst *CI = dyn_cast<CallInst>(I1))
287 return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() &&
288 CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() &&
289 CI->getAttributes() == cast<CallInst>(I2)->getAttributes();
413 return !cast<CallInst>(this)->doesNotAccessMemory();
433 return !cast<CallInst>(this)->onlyReadsMemory();
442 if (const CallInst *CI = dyn_cast<CallInst>(this))
448 if (const CallInst *C
[all...]
/external/llvm/lib/Transforms/Utils/
H A DLowerExpectIntrinsic.cpp62 CallInst *CI = dyn_cast<CallInst>(SI->getCondition());
106 CallInst *CI;
110 CI = dyn_cast<CallInst>(BI->getCondition());
114 CI = dyn_cast<CallInst>(CmpI->getOperand(0));
165 CallInst *CI = dyn_cast<CallInst>(BI++);
H A DLowerInvoke.cpp60 CallInst *NewCall = CallInst::Create(II->getCalledValue(),
H A DSimplifyLibCalls.cpp60 virtual Value *callOptimizer(Function *Callee, CallInst *CI, IRBuilder<> &B)
67 Value *optimizeCall(CallInst *CI, const DataLayout *DL,
117 static bool callHasFloatingPointArgument(const CallInst *CI) {
118 for (CallInst::const_op_iterator it = CI->op_begin(), e = CI->op_end();
152 CallInst *CI;
178 Value *callOptimizer(Function *Callee, CallInst *CI,
202 Value *callOptimizer(Function *Callee, CallInst *CI,
226 Value *callOptimizer(Function *Callee, CallInst *CI,
251 Value *callOptimizer(Function *Callee, CallInst *CI,
297 Value *callOptimizer(Function *Callee, CallInst *C
[all...]
/external/llvm/examples/Fibonacci/
H A Dfibonacci.cpp72 CallInst *CallFibX1 = CallInst::Create(FibF, Sub, "fibx1", RecurseBB);
77 CallInst *CallFibX2 = CallInst::Create(FibF, Sub, "fibx2", RecurseBB);
/external/llvm/lib/Transforms/Scalar/
H A DPartiallyInlineLibCalls.cpp44 bool optimizeSQRT(CallInst *Call, Function *CalledFunc,
70 CallInst *Call = dyn_cast<CallInst>(&*II);
102 bool PartiallyInlineLibCalls::optimizeSQRT(CallInst *Call,
H A DTailRecursionElimination.cpp103 CallInst *FindTRECandidate(Instruction *I,
105 bool EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret,
119 bool CanMoveAboveCall(Instruction *I, CallInst *CI);
120 Value *CanTransformAccumulatorRecursion(Instruction *I, CallInst *CI);
290 SmallVector<CallInst *, 32> DeferredTails;
299 CallInst *CI = dyn_cast<CallInst>(&I);
365 for (CallInst *CI : DeferredTails) {
440 bool TailCallElim::CanMoveAboveCall(Instruction *I, CallInst *CI) {
478 static bool isDynamicConstant(Value *V, CallInst *C
[all...]
/external/llvm/lib/Transforms/IPO/
H A DPruneEH.cpp116 if (CallInst *CI = dyn_cast<CallInst>(I)) {
181 CallInst *Call = CallInst::Create(II->getCalledValue(), Args, "", II);
211 if (CallInst *CI = dyn_cast<CallInst>(I++))
243 if (CallInst *CI = dyn_cast<CallInst>(I)) {
/external/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.h204 if (const CallInst *CI = dyn_cast<CallInst>(V)) {
226 V = cast<CallInst>(V)->getArgOperand(0);
240 V = cast<CallInst>(V)->getArgOperand(0);
253 V = cast<CallInst>(V)->getArgOperand(0);
262 return StripPointerCastsAndObjCCalls(cast<CallInst>(Inst)->getArgOperand(0));
283 Value *OldArg = cast<CallInst>(CI)->getArgOperand(0);
367 if (isa<CallInst>(V) || isa<InvokeInst>(V) ||
H A DObjCARCContract.cpp69 SmallPtrSet<CallInst *, 8> StoreStrongCalls;
143 cast<CallInst>(Retain)->setCalledFunction(Decl);
161 CallInst *Retain = nullptr;
177 Retain = dyn_cast_or_null<CallInst>(*DependingInstructions.begin());
278 CallInst *StoreStrong = CallInst::Create(Decl, Args, "", Store);
400 CallInst::Create(IA, "", Inst);
407 CallInst *CI = cast<CallInst>(Inst);
444 Value *Arg = cast<CallInst>(Ins
[all...]
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h34 class CallInst;
413 const CallInst &StackProtCheckCall) {
629 std::pair<SDValue, SDValue> LowerCallOperands(const CallInst &CI,
750 void visitCall(const CallInst &I);
751 bool visitMemCmpCall(const CallInst &I);
752 bool visitMemChrCall(const CallInst &I);
753 bool visitStrCpyCall(const CallInst &I, bool isStpcpy);
754 bool visitStrCmpCall(const CallInst &I);
755 bool visitStrLenCall(const CallInst &I);
756 bool visitStrNLenCall(const CallInst
[all...]
/external/llvm/lib/Target/R600/
H A DSIAnnotateControlFlow.cpp193 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term);
200 Value *Ret = CallInst::Create(Else, popSaved(), "", Term);
236 CallInst *OldEnd = dyn_cast<CallInst>(Parent->getFirstInsertionPt());
239 Ret = CallInst::Create(ElseBreak, Args, "", OldEnd);
244 Value *PhiArg = CallInst::Create(Break, Broken, "", Insert);
254 return CallInst::Create(IfBreak, Args, "", Insert);
278 Term->setCondition(CallInst::Create(Loop, Arg, "", Term));
284 CallInst::Create(EndCf, popSaved(), "", BB->getFirstInsertionPt());
/external/llvm/lib/CodeGen/
H A DDwarfEHPrepare.cpp142 CallInst *CI = CallInst::Create(RewindFunction, ExnObj, "", UnwindBB);
169 CallInst *CI = CallInst::Create(RewindFunction, PN, "", UnwindBB);
/external/llvm/lib/Target/NVPTX/
H A DNVVMReflect.cpp135 // Each of them should a CallInst with a ConstantArray argument.
138 // found in VarMap. If so, replace the uses of CallInst with the
141 assert(isa<CallInst>(U) && "Only a call instruction can use _reflect");
142 CallInst *Reflect = cast<CallInst>(U);
149 if (isa<CallInst>(Str)) {
151 const CallInst *ConvCall = cast<CallInst>(Str);
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/
H A 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 *, 1
[all...]
/external/mesa3d/src/gallium/drivers/radeon/
H A 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 *, 1
[all...]

Completed in 417 milliseconds

12345678