Home
last modified time | relevance | path

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

12345678910>>...22

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
DSimplifyLibCalls.h25 class CallInst; variable
52 Value *optimizeCall(CallInst *CI);
55 Value *optimizeMemCpyChk(CallInst *CI, IRBuilder<> &B);
56 Value *optimizeMemMoveChk(CallInst *CI, IRBuilder<> &B);
57 Value *optimizeMemSetChk(CallInst *CI, IRBuilder<> &B);
60 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc Func);
61 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc Func);
65 bool isFortifiedCallFoldable(CallInst *CI, unsigned ObjSizeOp,
103 Value *optimizeCall(CallInst *CI);
107 Value *optimizeStrCat(CallInst *CI, IRBuilder<> &B);
[all …]
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLibCallsShrinkWrap.cpp78 void visitCallInst(CallInst &CI) { checkCandidate(CI); } in visitCallInst()
93 bool perform(CallInst *CI);
94 void checkCandidate(CallInst &CI);
95 void shrinkWrapCI(CallInst *CI, Value *Cond);
96 bool performCallDomainErrorOnly(CallInst *CI, const LibFunc &Func);
97 bool performCallErrors(CallInst *CI, const LibFunc &Func);
98 bool performCallRangeErrorOnly(CallInst *CI, const LibFunc &Func);
99 Value *generateOneRangeCond(CallInst *CI, const LibFunc &Func);
100 Value *generateTwoRangeCond(CallInst *CI, const LibFunc &Func);
101 Value *generateCondForPow(CallInst *CI, const LibFunc &Func);
[all …]
DSimplifyLibCalls.cpp56 static bool isCallingConvCCompatible(CallInst *CI) { in isCallingConvCCompatible()
100 static bool callHasFloatingPointArgument(const CallInst *CI) { in callHasFloatingPointArgument()
106 static Value *convertStrToNumber(CallInst *CI, StringRef &Str, int64_t Base) { in convertStrToNumber()
131 static bool isLocallyOpenedFile(Value *File, CallInst *CI, IRBuilder<> &B, in isLocallyOpenedFile()
133 CallInst *FOpen = dyn_cast<CallInst>(File); in isLocallyOpenedFile()
157 Value *LibCallSimplifier::optimizeStrCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrCat()
195 Value *LibCallSimplifier::optimizeStrNCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCat()
228 Value *LibCallSimplifier::optimizeStrChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrChr()
268 Value *LibCallSimplifier::optimizeStrRChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrRChr()
295 Value *LibCallSimplifier::optimizeStrCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrCmp()
[all …]
DEntryExitInstrumenter.cpp35 CallInst *Call = CallInst::Create(Fn, "", InsertionPt); in insertCall()
46 Instruction *RetAddr = CallInst::Create( in insertCall()
55 CallInst *Call = in insertCall()
56 CallInst::Create(Fn, ArrayRef<Value *>(Args), "", InsertionPt); in insertCall()
102 if (CallInst *CI = dyn_cast_or_null<CallInst>(Prev)) { in runOnFunction()
/external/llvm/include/llvm/Analysis/
DMemoryBuiltins.h28 class CallInst; variable
74 const CallInst *extractMallocCall(const Value *I, const TargetLibraryInfo *TLI);
75 static inline CallInst *extractMallocCall(Value *I, in extractMallocCall()
77 return const_cast<CallInst*>(extractMallocCall((const Value*)I, TLI)); in extractMallocCall()
85 PointerType *getMallocType(const CallInst *CI, const TargetLibraryInfo *TLI);
92 Type *getMallocAllocatedType(const CallInst *CI, const TargetLibraryInfo *TLI);
99 Value *getMallocArraySize(CallInst *CI, const DataLayout &DL,
109 const CallInst *extractCallocCall(const Value *I, const TargetLibraryInfo *TLI);
110 static inline CallInst *extractCallocCall(Value *I, in extractCallocCall()
112 return const_cast<CallInst*>(extractCallocCall((const Value*)I, TLI)); in extractCallocCall()
[all …]
DTypeMetadataUtils.h35 SmallVectorImpl<CallInst *> &Assumes, CallInst *CI);
42 SmallVectorImpl<Instruction *> &Preds, bool &HasNonCallUses, CallInst *CI);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DIRBuilder.cpp74 static CallInst *createCallHelper(Value *Callee, ArrayRef<Value *> Ops, in createCallHelper()
78 CallInst *CI = CallInst::Create(Callee, Ops, Name); in createCallHelper()
99 CallInst *IRBuilderBase::
109 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemSet()
127 CallInst *IRBuilderBase::CreateElementUnorderedAtomicMemSet( in CreateElementUnorderedAtomicMemSet()
140 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateElementUnorderedAtomicMemSet()
157 CallInst *IRBuilderBase::
171 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemCpy()
196 CallInst *IRBuilderBase::CreateElementUnorderedAtomicMemCpy( in CreateElementUnorderedAtomicMemCpy()
213 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateElementUnorderedAtomicMemCpy()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DMemoryBuiltins.h33 class CallInst; variable
94 const CallInst *extractMallocCall(const Value *I, const TargetLibraryInfo *TLI);
95 inline CallInst *extractMallocCall(Value *I, const TargetLibraryInfo *TLI) { in extractMallocCall()
96 return const_cast<CallInst*>(extractMallocCall((const Value*)I, TLI)); in extractMallocCall()
104 PointerType *getMallocType(const CallInst *CI, const TargetLibraryInfo *TLI);
111 Type *getMallocAllocatedType(const CallInst *CI, const TargetLibraryInfo *TLI);
118 Value *getMallocArraySize(CallInst *CI, const DataLayout &DL,
128 const CallInst *extractCallocCall(const Value *I, const TargetLibraryInfo *TLI);
129 inline CallInst *extractCallocCall(Value *I, const TargetLibraryInfo *TLI) { in extractCallocCall()
130 return const_cast<CallInst*>(extractCallocCall((const Value*)I, TLI)); in extractCallocCall()
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp85 static bool callHasFloatingPointArgument(const CallInst *CI) { in callHasFloatingPointArgument()
110 Value *LibCallSimplifier::optimizeStrCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrCat()
149 Value *LibCallSimplifier::optimizeStrNCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCat()
182 Value *LibCallSimplifier::optimizeStrChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrChr()
222 Value *LibCallSimplifier::optimizeStrRChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrRChr()
249 Value *LibCallSimplifier::optimizeStrCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrCmp()
282 Value *LibCallSimplifier::optimizeStrNCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCmp()
321 Value *LibCallSimplifier::optimizeStrCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrCpy()
338 Value *LibCallSimplifier::optimizeStpCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStpCpy()
362 Value *LibCallSimplifier::optimizeStrNCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCpy()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPULibCalls.cpp79 bool replaceWithNative(CallInst *CI, const FuncInfo &FInfo);
84 bool TDOFold(CallInst *CI, const FuncInfo &FInfo);
89 bool fold_recip(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
92 bool fold_divide(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
95 bool fold_pow(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
98 bool fold_rootn(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
101 bool fold_fma_mad(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
104 bool sincosUseNative(CallInst *aCI, const FuncInfo &FInfo);
109 bool evaluateCall(CallInst *aCI, FuncInfo &FInfo);
112 bool fold_exp(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
[all …]
DSIAnnotateControlFlow.cpp213 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term); in openIf()
223 Value *Ret = CallInst::Create(Else, popSaved(), "", Term); in insertElse()
281 CallInst *OldEnd = dyn_cast<CallInst>(Parent->getFirstInsertionPt()); in handleLoopCondition()
283 OldEnd = dyn_cast<CallInst>(OldEnd->getNextNode()); in handleLoopCondition()
286 Ret = CallInst::Create(ElseBreak, Args, "", OldEnd); in handleLoopCondition()
292 Value *PhiArg = CallInst::Create(Break, Broken, "", Insert); in handleLoopCondition()
310 return CallInst::Create(IfBreak, Args, "", Insert); in handleLoopCondition()
319 return CallInst::Create(IfBreak, Args, "", Insert); in handleLoopCondition()
346 Term->setCondition(CallInst::Create(Loop, Arg, "", Term)); in handleLoop()
381 CallInst::Create(EndCf, Exec, "", FirstInsertionPt); in closeControlFlow()
/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 …]
/external/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp57 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
99 CallInst *CI; in handleBranchExpect()
103 CI = dyn_cast<CallInst>(BI.getCondition()); in handleBranchExpect()
107 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBranchExpect()
156 CallInst *CI = dyn_cast<CallInst>(BI++); in lowerExpectIntrinsic()
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/ObjCARC/
DObjCARCOpts.cpp96 cast<CallInst>(Arg)->getArgOperand(0)); in FindSingleUseIdentifiedObject()
635 cast<CallInst>(RetainRV)->setCalledFunction(NewDecl); in OptimizeRetainRVCall()
682 CallInst *AutoreleaseRVCI = cast<CallInst>(AutoreleaseRV); in OptimizeAutoreleaseRVCall()
693 CloneCallInstForBB(CallInst &CI, BasicBlock &BB, in CloneCallInstForBB()
712 return CallInst::Create(&CI, OpBundles); in CloneCallInstForBB()
760 CallInst *CI = cast<CallInst>(Inst); in OptimizeIndividualCalls()
780 CallInst *CI = cast<CallInst>(Inst); in OptimizeIndividualCalls()
812 CallInst *Call = cast<CallInst>(Inst); in OptimizeIndividualCalls()
823 CallInst *NewCall = CallInst::Create(Decl, Call->getArgOperand(0), "", in OptimizeIndividualCalls()
847 cast<CallInst>(Inst)->setTailCall(); in OptimizeIndividualCalls()
[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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h49 class CallInst; variable
803 void LowerDeoptimizeCall(const CallInst *CI);
908 void visitMaskedLoad(const CallInst &I, bool IsExpanding = false);
909 void visitMaskedStore(const CallInst &I, bool IsCompressing = false);
910 void visitMaskedGather(const CallInst &I);
911 void visitMaskedScatter(const CallInst &I);
916 void visitCall(const CallInst &I);
917 bool visitMemCmpCall(const CallInst &I);
918 bool visitMemPCpyCall(const CallInst &I);
919 bool visitMemChrCall(const CallInst &I);
[all …]
DStatepointLowering.h28 class CallInst; variable
69 void scheduleRelocCall(const CallInst &RelocCall) { in scheduleRelocCall()
76 void relocCallVisited(const CallInst &RelocCall) { in relocCallVisited()
119 SmallVector<const CallInst *, 10> PendingGCRelocateCalls;
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h38 class CallInst; variable
778 void LowerDeoptimizeCall(const CallInst *CI);
878 void visitMaskedLoad(const CallInst &I);
879 void visitMaskedStore(const CallInst &I);
880 void visitMaskedGather(const CallInst &I);
881 void visitMaskedScatter(const CallInst &I);
886 void visitCall(const CallInst &I);
887 bool visitMemCmpCall(const CallInst &I);
888 bool visitMemChrCall(const CallInst &I);
889 bool visitStrCpyCall(const CallInst &I, bool isStpcpy);
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DAssumptionCache.cpp57 void AssumptionCache::updateAffectedValues(CallInst *CI) { in updateAffectedValues()
166 updateAffectedValues(cast<CallInst>(A)); in scanFunction()
169 void AssumptionCache::registerAssumption(CallInst *CI) { in registerAssumption()
196 assert(match(cast<CallInst>(VH), m_Intrinsic<Intrinsic::assume>()) && in registerAssumption()
215 OS << " " << *cast<CallInst>(VH)->getArgOperand(0) << "\n"; in run()
252 SmallPtrSet<const CallInst *, 4> AssumptionSet; in verifyAnalysis()
256 AssumptionSet.insert(cast<CallInst>(VH)); in verifyAnalysis()
261 !AssumptionSet.count(cast<CallInst>(&II))) in verifyAnalysis()
/external/llvm/include/llvm/IR/
DCallSite.h37 class CallInst; variable
46 typename CallTy = const CallInst,
247 return isCall() && cast<CallInst>(getInstruction())->isMustTailCall(); in isMustTailCall()
252 return isCall() && cast<CallInst>(getInstruction())->isTailCall(); in isTailCall()
258 ? cast<CallInst>(II)->METHOD \
264 cast<CallInst>(II)->METHOD; \
282 return cast<CallInst>(getInstruction())->isInlineAsm(); in isInlineAsm()
528 cast<CallInst>(II)->getOperandBundlesAsDefs(Defs); in getOperandBundlesAsDefs()
595 return cast<CallInst>(getInstruction())->op_end() - 1; in getCallee()
602 Instruction, CallInst, InvokeInst,
[all …]
/external/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp219 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term); in openIf()
229 Value *Ret = CallInst::Create(Else, popSaved(), "", Term); in insertElse()
288 CallInst *OldEnd = dyn_cast<CallInst>(Parent->getFirstInsertionPt()); in handleLoopCondition()
290 OldEnd = dyn_cast<CallInst>(OldEnd->getNextNode()); in handleLoopCondition()
293 Ret = CallInst::Create(ElseBreak, Args, "", OldEnd); in handleLoopCondition()
298 Value *PhiArg = CallInst::Create(Break, Broken, "", Insert); in handleLoopCondition()
313 return CallInst::Create(IfBreak, Args, "", Insert); in handleLoopCondition()
318 return CallInst::Create(IfBreak, Args, "", Term); in handleLoopCondition()
347 Term->setCondition(CallInst::Create(Loop, Arg, "", Term)); in handleLoop()
372 CallInst::Create(EndCf, Exec, "", &*BB->getFirstInsertionPt()); in closeControlFlow()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dtarget_util.cc40 std::function<llvm::CallInst*(llvm::IRBuilder<>*)>>
78 [](llvm::IRBuilder<>* b_) -> llvm::CallInst* { in GetIntrinsic()
86 [](llvm::IRBuilder<>* b_) -> llvm::CallInst* { in GetIntrinsic()
94 [](llvm::IRBuilder<>* b_) -> llvm::CallInst* { in GetIntrinsic()
190 llvm::CallInst* EmitDeviceFunctionCall( in EmitDeviceFunctionCall()
220 llvm::CallInst* EmitCallToTargetIntrinsic( in EmitCallToTargetIntrinsic()
236 std::function<llvm::CallInst*(llvm::IRBuilder<>*)>* builder_func = in EmitCallToTargetIntrinsic()
237 absl::get_if<std::function<llvm::CallInst*(llvm::IRBuilder<>*)>>( in EmitCallToTargetIntrinsic()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DCallSite.h58 typename CallTy = const CallInst,
118 if (const CallInst *CI = dyn_cast<CallInst>(getInstruction())) { in isIndirectCall()
272 return isCall() && cast<CallInst>(getInstruction())->isMustTailCall(); in isMustTailCall()
277 return isCall() && cast<CallInst>(getInstruction())->isTailCall(); in isTailCall()
283 ? cast<CallInst>(II)->METHOD \
289 cast<CallInst>(II)->METHOD; \
307 return cast<CallInst>(getInstruction())->isInlineAsm(); in isInlineAsm()
587 cast<CallInst>(II)->getOperandBundlesAsDefs(Defs); in getOperandBundlesAsDefs()
660 return cast<CallInst>(getInstruction())->op_end() - 1; in getCallee()
667 Instruction, CallInst, InvokeInst,
[all …]

12345678910>>...22