/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | SimplifyLibCalls.h | 24 class CallInst; variable 53 Value *optimizeCall(CallInst *CI); 56 Value *optimizeMemCpyChk(CallInst *CI, IRBuilder<> &B); 57 Value *optimizeMemMoveChk(CallInst *CI, IRBuilder<> &B); 58 Value *optimizeMemSetChk(CallInst *CI, IRBuilder<> &B); 61 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc Func); 62 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc Func); 63 Value *optimizeMemCCpyChk(CallInst *CI, IRBuilder<> &B); 64 Value *optimizeSNPrintfChk(CallInst *CI, IRBuilder<> &B); 65 Value *optimizeSPrintfChk(CallInst *CI,IRBuilder<> &B); [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | SimplifyLibCalls.h | 25 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-10.0/llvm/lib/Transforms/Utils/ |
D | LibCallsShrinkWrap.cpp | 78 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 …]
|
D | SimplifyLibCalls.cpp | 60 static bool isCallingConvCCompatible(CallInst *CI) { in isCallingConvCCompatible() 104 static bool callHasFloatingPointArgument(const CallInst *CI) { in callHasFloatingPointArgument() 110 static bool callHasFP128Argument(const CallInst *CI) { in callHasFP128Argument() 116 static Value *convertStrToNumber(CallInst *CI, StringRef &Str, int64_t Base) { in convertStrToNumber() 141 static bool isLocallyOpenedFile(Value *File, CallInst *CI, IRBuilder<> &B, in isLocallyOpenedFile() 143 CallInst *FOpen = dyn_cast<CallInst>(File); in isLocallyOpenedFile() 175 static bool canTransformToMemCmp(CallInst *CI, Value *Str, uint64_t Len, in canTransformToMemCmp() 190 static void annotateDereferenceableBytes(CallInst *CI, in annotateDereferenceableBytes() 217 static void annotateNonNullBasedOnAccess(CallInst *CI, in annotateNonNullBasedOnAccess() 235 static void annotateNonNullAndDereferenceable(CallInst *CI, ArrayRef<unsigned> ArgNos, in annotateNonNullAndDereferenceable() [all …]
|
D | EntryExitInstrumenter.cpp | 35 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/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | IRBuilder.cpp | 74 static CallInst *createCallHelper(Function *Callee, ArrayRef<Value *> Ops, in createCallHelper() 78 CallInst *CI = CallInst::Create(Callee, Ops, Name); in createCallHelper() 99 CallInst *IRBuilderBase::CreateMemSet(Value *Ptr, Value *Val, Value *Size, in CreateMemSet() 109 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemSet() 127 CallInst *IRBuilderBase::CreateElementUnorderedAtomicMemSet( in CreateElementUnorderedAtomicMemSet() 138 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateElementUnorderedAtomicMemSet() 155 CallInst *IRBuilderBase::CreateMemCpy(Value *Dst, unsigned DstAlign, Value *Src, in CreateMemCpy() 165 CallInst *IRBuilderBase::CreateMemCpy(Value *Dst, MaybeAlign DstAlign, in CreateMemCpy() 178 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemCpy() 203 CallInst *IRBuilderBase::CreateElementUnorderedAtomicMemCpy( in CreateElementUnorderedAtomicMemCpy() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | MemoryBuiltins.h | 28 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 …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 85 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-10.0/llvm/include/llvm/Analysis/ |
D | MemoryBuiltins.h | 33 class CallInst; variable 119 const CallInst * 122 inline CallInst * 125 return const_cast<CallInst *>(extractMallocCall((const Value *)I, GetTLI)); in extractMallocCall() 133 PointerType *getMallocType(const CallInst *CI, const TargetLibraryInfo *TLI); 140 Type *getMallocAllocatedType(const CallInst *CI, const TargetLibraryInfo *TLI); 147 Value *getMallocArraySize(CallInst *CI, const DataLayout &DL, 157 const CallInst *extractCallocCall(const Value *I, const TargetLibraryInfo *TLI); 158 inline CallInst *extractCallocCall(Value *I, const TargetLibraryInfo *TLI) { in extractCallocCall() 159 return const_cast<CallInst*>(extractCallocCall((const Value*)I, TLI)); in extractCallocCall() [all …]
|
/external/llvm/lib/IR/ |
D | IRBuilder.cpp | 59 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/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPULibCalls.cpp | 77 bool replaceWithNative(CallInst *CI, const FuncInfo &FInfo); 82 bool TDOFold(CallInst *CI, const FuncInfo &FInfo); 87 bool fold_recip(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo); 90 bool fold_divide(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo); 93 bool fold_pow(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo); 96 bool fold_rootn(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo); 99 bool fold_fma_mad(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo); 102 bool sincosUseNative(CallInst *aCI, const FuncInfo &FInfo); 107 bool evaluateCall(CallInst *aCI, FuncInfo &FInfo); 110 bool fold_exp(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo); [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 50 class CallInst; variable 636 void LowerDeoptimizeCall(const CallInst *CI); 743 void visitMaskedLoad(const CallInst &I, bool IsExpanding = false); 744 void visitMaskedStore(const CallInst &I, bool IsCompressing = false); 745 void visitMaskedGather(const CallInst &I); 746 void visitMaskedScatter(const CallInst &I); 751 void visitCall(const CallInst &I); 752 bool visitMemCmpCall(const CallInst &I); 753 bool visitMemPCpyCall(const CallInst &I); 754 bool visitMemChrCall(const CallInst &I); [all …]
|
D | StatepointLowering.h | 27 class CallInst; variable 68 void scheduleRelocCall(const CallInst &RelocCall) { in scheduleRelocCall() 77 void relocCallVisited(const CallInst &RelocCall) { in relocCallVisited() 123 SmallVector<const CallInst *, 10> PendingGCRelocateCalls;
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | PreISelIntrinsicLowering.cpp | 40 auto CI = dyn_cast<CallInst>(I->getUser()); in lowerLoadRelative() 63 static CallInst::TailCallKind getOverridingTailCallKind(const Function &F) { in getOverridingTailCallKind() 66 return CallInst::TCK_Tail; in getOverridingTailCallKind() 68 return CallInst::TCK_NoTail; in getOverridingTailCallKind() 69 return CallInst::TCK_None; in getOverridingTailCallKind() 91 CallInst::TailCallKind OverridingTCK = getOverridingTailCallKind(F); in lowerObjCCall() 94 auto *CI = cast<CallInst>(I->getUser()); in lowerObjCCall() 100 CallInst *NewCI = Builder.CreateCall(FCache, Args); in lowerObjCCall() 110 CallInst::TailCallKind TCK = CI->getTailCallKind(); in lowerObjCCall()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/ |
D | BPFAbstractMemberAccess.cpp | 124 typedef std::stack<std::pair<CallInst *, CallInfo>> CallInfoStack; 138 std::map<CallInst *, std::pair<CallInst *, CallInfo>> AIChain; 142 std::map<CallInst *, CallInfo> BaseAICalls; 146 void traceAICall(CallInst *Call, CallInfo &ParentInfo); 147 void traceBitCast(BitCastInst *BitCast, CallInst *Parent, 149 void traceGEP(GetElementPtrInst *GEP, CallInst *Parent, 153 bool IsPreserveDIAccessIndexCall(const CallInst *Call, CallInfo &Cinfo); 157 void replaceWithGEP(std::vector<CallInst *> &CallList, 166 Value *computeBaseAndAccessKey(CallInst *Call, CallInfo &CInfo, 169 bool transformGEPChain(Module &M, CallInst *Call, CallInfo &CInfo); [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCOpts.cpp | 102 cast<CallInst>(Arg)->getArgOperand(0)); in FindSingleUseIdentifiedObject() 644 cast<CallInst>(RetainRV)->setCalledFunction(NewDecl); in OptimizeRetainRVCall() 680 cast<CallInst>(AutoreleaseRV)->getArgOperand(0)); in OptimizeInlinedAutoreleaseRVCall() 684 Inst->replaceAllUsesWith(cast<CallInst>(Inst)->getArgOperand(0)); in OptimizeInlinedAutoreleaseRVCall() 692 Value *CallArg = cast<CallInst>(Inst)->getArgOperand(0); in OptimizeInlinedAutoreleaseRVCall() 693 CallInst *Release = CallInst::Create( in OptimizeInlinedAutoreleaseRVCall() 747 CallInst *AutoreleaseRVCI = cast<CallInst>(AutoreleaseRV); in OptimizeAutoreleaseRVCall() 758 CloneCallInstForBB(CallInst &CI, BasicBlock &BB, in CloneCallInstForBB() 777 return CallInst::Create(&CI, OpBundles); in CloneCallInstForBB() 923 CallInst *CI = cast<CallInst>(Inst); in OptimizeIndividualCallImpl() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 57 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/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | AssumptionCache.cpp | 57 static void findAffectedValues(CallInst *CI, in findAffectedValues() 114 void AssumptionCache::updateAffectedValues(CallInst *CI) { in updateAffectedValues() 125 void AssumptionCache::unregisterAssumption(CallInst *CI) { in unregisterAssumption() 187 updateAffectedValues(cast<CallInst>(A)); in scanFunction() 190 void AssumptionCache::registerAssumption(CallInst *CI) { in registerAssumption() 217 assert(match(cast<CallInst>(VH), m_Intrinsic<Intrinsic::assume>()) && in registerAssumption() 236 OS << " " << *cast<CallInst>(VH)->getArgOperand(0) << "\n"; in run() 280 SmallPtrSet<const CallInst *, 4> AssumptionSet; in verifyAnalysis() 284 AssumptionSet.insert(cast<CallInst>(VH)); in verifyAnalysis() 289 !AssumptionSet.count(cast<CallInst>(&II))) in verifyAnalysis()
|
D | TypeMetadataUtils.cpp | 26 const CallInst *CI, DominatorTree &DT) { in findCallsAtConstantOffset() 40 } else if (auto CI = dyn_cast<CallInst>(User)) { in findCallsAtConstantOffset() 53 int64_t Offset, const CallInst *CI, DominatorTree &DT) { in findLoadCallsAtConstantOffset() 75 SmallVectorImpl<CallInst *> &Assumes, const CallInst *CI, in findDevirtualizableCallsForTypeTest() 83 if (auto *AssumeCI = dyn_cast<CallInst>(CIU.getUser())) { in findDevirtualizableCallsForTypeTest() 101 const CallInst *CI, DominatorTree &DT) { in findDevirtualizableCallsForTypeCheckedLoad()
|
/external/llvm/lib/Analysis/ |
D | AssumptionCache.cpp | 42 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/lib/Transforms/ObjCARC/ |
D | ObjCARCOpts.cpp | 64 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/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 38 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/llvm/include/llvm/IR/ |
D | CallSite.h | 37 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/ |
D | SIAnnotateControlFlow.cpp | 219 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/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 72 TEST_F(ModuleWithFunctionTest, CallInst) { in TEST_F() argument 76 std::unique_ptr<CallInst> Call(CallInst::Create(F, Args)); in TEST_F() 503 std::unique_ptr<CallInst> Call(CallInst::Create(Callee, Args, "result")); in TEST() 506 CallInst::TailCallKind Kinds[] = {CallInst::TCK_None, CallInst::TCK_Tail, in TEST() 507 CallInst::TCK_MustTail}; in TEST() 508 for (CallInst::TailCallKind TCK : Kinds) { in TEST() 510 std::unique_ptr<CallInst> Clone(cast<CallInst>(Call->clone())); in TEST() 513 Call->setTailCallKind(CallInst::TCK_None); in TEST() 520 std::unique_ptr<CallInst> Clone(cast<CallInst>(Call->clone())); in TEST() 532 std::unique_ptr<CallInst> Call( in TEST() [all …]
|