| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
| H A D | IntrinsicLowering.cpp | 31 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, in ReplaceCallWith() argument 36 Module *M = CI->getModule(); in ReplaceCallWith() 44 IRBuilder<> Builder(CI->getParent(), CI->getIterator()); in ReplaceCallWith() 47 NewCI->setName(CI->getName()); in ReplaceCallWith() 48 if (!CI->use_empty()) in ReplaceCallWith() 49 CI->replaceAllUsesWith(NewCI); in ReplaceCallWith() 203 static void ReplaceFPIntrinsicWithCall(CallInst *CI, const char *Fname, in ReplaceFPIntrinsicWithCall() argument 206 CallSite CS(CI); in ReplaceFPIntrinsicWithCall() 207 switch (CI in ReplaceFPIntrinsicWithCall() 226 LowerIntrinsicCall(CallInst *CI) LowerIntrinsicCall() argument 452 LowerToByteSwap(CallInst *CI) LowerToByteSwap() argument [all...] |
| H A D | ScalarizeMaskedMemIntrin.cpp | 66 bool optimizeCallInst(CallInst *CI, bool &ModifiedDT); 127 static void scalarizeMaskedLoad(CallInst *CI, bool &ModifiedDT) { in scalarizeMaskedLoad() argument 128 Value *Ptr = CI->getArgOperand(0); in scalarizeMaskedLoad() 129 Value *Alignment = CI->getArgOperand(1); in scalarizeMaskedLoad() 130 Value *Mask = CI->getArgOperand(2); in scalarizeMaskedLoad() 131 Value *Src0 = CI->getArgOperand(3); in scalarizeMaskedLoad() 134 VectorType *VecType = cast<VectorType>(CI->getType()); in scalarizeMaskedLoad() 138 IRBuilder<> Builder(CI->getContext()); in scalarizeMaskedLoad() 139 Instruction *InsertPt = CI; in scalarizeMaskedLoad() 140 BasicBlock *IfBlock = CI in scalarizeMaskedLoad() 265 scalarizeMaskedStore(CallInst *CI, bool &ModifiedDT) scalarizeMaskedStore() argument 390 scalarizeMaskedGather(CallInst *CI, bool &ModifiedDT) scalarizeMaskedGather() argument 514 scalarizeMaskedScatter(CallInst *CI, bool &ModifiedDT) scalarizeMaskedScatter() argument 599 scalarizeMaskedExpandLoad(CallInst *CI, bool &ModifiedDT) scalarizeMaskedExpandLoad() argument 712 scalarizeMaskedCompressStore(CallInst *CI, bool &ModifiedDT) scalarizeMaskedCompressStore() argument 848 optimizeCallInst(CallInst *CI, bool &ModifiedDT) optimizeCallInst() argument [all...] |
| H A D | PreISelIntrinsicLowering.cpp | 40 auto CI = dyn_cast<CallInst>(I->getUser()); in lowerLoadRelative() local 42 if (!CI || CI->getCalledValue() != &F) in lowerLoadRelative() 45 IRBuilder<> B(CI); in lowerLoadRelative() 47 B.CreateGEP(Int8Ty, CI->getArgOperand(0), CI->getArgOperand(1)); in lowerLoadRelative() 51 Value *ResultPtr = B.CreateGEP(Int8Ty, CI->getArgOperand(0), OffsetI32); in lowerLoadRelative() 53 CI->replaceAllUsesWith(ResultPtr); in lowerLoadRelative() 54 CI->eraseFromParent(); in lowerLoadRelative() 94 auto *CI in lowerObjCCall() local [all...] |
| H A D | GCRootLowering.cpp | 64 void VisitCallPoint(MachineBasicBlock::iterator CI); 135 if (CallInst *CI = dyn_cast<CallInst>(I)) in CouldBecomeSafePoint() 136 if (Function *F = CI->getCalledFunction()) in CouldBecomeSafePoint() 199 IntrinsicInst *CI = dyn_cast<IntrinsicInst>(II++); in DoLowering() local 200 if (!CI) in DoLowering() 203 Function *F = CI->getCalledFunction(); in DoLowering() 208 Value *St = new StoreInst(CI->getArgOperand(0), in DoLowering() 209 CI->getArgOperand(2), CI); in DoLowering() 210 CI in DoLowering() 265 VisitCallPoint(MachineBasicBlock::iterator CI) VisitCallPoint() argument [all...] |
| H A D | ExpandMemCmp.cpp | 65 CallInst *const CI; member in __anon24006::MemCmpExpansion 118 MemCmpExpansion(CallInst *CI, uint64_t Size, 207 CallInst *const CI, uint64_t Size, in MemCmpExpansion() 210 : CI(CI), Size(Size), MaxLoadSize(0), NumLoadsNonOneByte(0), in MemCmpExpansion() 212 IsUsedForZeroCmp(IsUsedForZeroCmp), DL(TheDataLayout), Builder(CI) { in MemCmpExpansion() 253 BasicBlock *BB = BasicBlock::Create(CI->getContext(), "loadbb", in createLoadCmpBlocks() 260 ResBlock.BB = BasicBlock::Create(CI->getContext(), "res_block", in createResultBlock() 270 auto *ByteType = Type::getInt8Ty(CI->getContext()); in getPtrToElementAtOffset() 285 Type *LoadSizeType = Type::getInt8Ty(CI in emitLoadCompareByteBlock() 206 MemCmpExpansion( CallInst *const CI, uint64_t Size, const TargetTransformInfo::MemCmpExpansionOptions &Options, const bool IsUsedForZeroCmp, const DataLayout &TheDataLayout) MemCmpExpansion() argument 726 expandMemCmp(CallInst *CI, const TargetTransformInfo *TTI, const TargetLowering *TLI, const DataLayout *DL, ProfileSummaryInfo *PSI, BlockFrequencyInfo *BFI) expandMemCmp() argument 841 CallInst *CI = dyn_cast<CallInst>(&I); runOnBlock() local [all...] |
| H A D | AtomicExpandPass.cpp | 94 void expandAtomicCmpXchgToMaskedIntrinsic(AtomicCmpXchgInst *CI); 96 AtomicCmpXchgInst *convertCmpXchgToIntegerType(AtomicCmpXchgInst *CI); 102 bool tryExpandAtomicCmpXchg(AtomicCmpXchgInst *CI); 104 bool expandAtomicCmpXchg(AtomicCmpXchgInst *CI); 810 void AtomicExpand::expandPartwordCmpXchg(AtomicCmpXchgInst *CI) { in expandPartwordCmpXchg() argument 846 Value *Addr = CI->getPointerOperand(); in expandPartwordCmpXchg() 847 Value *Cmp = CI->getCompareOperand(); in expandPartwordCmpXchg() 848 Value *NewVal = CI->getNewValOperand(); in expandPartwordCmpXchg() 850 BasicBlock *BB = CI->getParent(); in expandPartwordCmpXchg() 852 IRBuilder<> Builder(CI); in expandPartwordCmpXchg() 974 expandAtomicCmpXchgToMaskedIntrinsic(AtomicCmpXchgInst *CI) expandAtomicCmpXchgToMaskedIntrinsic() argument 1054 convertCmpXchgToIntegerType(AtomicCmpXchgInst *CI) convertCmpXchgToIntegerType() argument 1092 expandAtomicCmpXchg(AtomicCmpXchgInst *CI) expandAtomicCmpXchg() argument 1408 tryExpandAtomicCmpXchg(AtomicCmpXchgInst *CI) tryExpandAtomicCmpXchg() argument [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 60 static bool isCallingConvCCompatible(CallInst *CI) { in isCallingConvCCompatible() argument 61 switch(CI->getCallingConv()) { in isCallingConvCCompatible() 72 if (Triple(CI->getModule()->getTargetTriple()).isiOS()) in isCallingConvCCompatible() 75 auto *FuncTy = CI->getFunctionType(); in isCallingConvCCompatible() 104 static bool callHasFloatingPointArgument(const CallInst *CI) { in callHasFloatingPointArgument() argument 105 return any_of(CI->operands(), [](const Use &OI) { in callHasFloatingPointArgument() 110 static bool callHasFP128Argument(const CallInst *CI) { 111 return any_of(CI->operands(), [](const Use &OI) { 116 static Value *convertStrToNumber(CallInst *CI, StringRef &Str, int64_t Base) { 135 if (!isIntN(CI [all...] |
| H A D | LibCallsShrinkWrap.cpp | 78 void visitCallInst(CallInst &CI) { checkCandidate(CI); } in visitCallInst() argument 81 for (auto &CI : WorkList) { in perform() 82 LLVM_DEBUG(dbgs() << "CDCE calls: " << CI->getCalledFunction()->getName() in perform() 84 if (perform(CI)) { in perform() 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, cons 104 createOrCond(CallInst *CI, CmpInst::Predicate Cmp, float Val, CmpInst::Predicate Cmp2, float Val2) createOrCond() argument 123 createCond(CallInst *CI, CmpInst::Predicate Cmp, float Val) createCond() argument 136 performCallDomainErrorOnly(CallInst *CI, const LibFunc &Func) performCallDomainErrorOnly() argument 188 performCallRangeErrorOnly(CallInst *CI, const LibFunc &Func) performCallRangeErrorOnly() argument 226 performCallErrors(CallInst *CI, const LibFunc &Func) performCallErrors() argument 290 checkCandidate(CallInst &CI) checkCandidate() argument 319 generateOneRangeCond(CallInst *CI, const LibFunc &Func) generateOneRangeCond() argument 341 generateTwoRangeCond(CallInst *CI, const LibFunc &Func) generateTwoRangeCond() argument 420 generateCondForPow(CallInst *CI, const LibFunc &Func) generateCondForPow() argument 485 shrinkWrapCI(CallInst *CI, Value *Cond) shrinkWrapCI() argument 505 perform(CallInst *CI) perform() argument [all...] |
| H A D | InjectTLIMappings.cpp | 44 /// <vparams> = "v", as many as are the number of parameters of CI. 45 /// <scalarname> = the name of the scalar function called by CI. 47 static std::string mangleTLIName(StringRef VectorName, const CallInst &CI, in mangleTLIName() argument 52 for (unsigned I = 0; I < CI.getNumArgOperands(); ++I) in mangleTLIName() 54 Out << "_" << CI.getCalledFunction()->getName() << "(" << VectorName << ")"; in mangleTLIName() 68 /// vectorizes the CallInst CI with a vectorization factor of VF 70 /// CI (other than void) need to be widened to a VectorType of VF 72 static void addVariantDeclaration(CallInst &CI, const unsigned VF, in addVariantDeclaration() argument 74 Module *M = CI.getModule(); in addVariantDeclaration() 77 Type *RetTy = ToVectorTy(CI in addVariantDeclaration() 101 addMappingsFromTLI(const TargetLibraryInfo &TLI, CallInst &CI) addMappingsFromTLI() argument [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
| H A D | SimplifyLibCalls.h | 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); 66 Value *optimizeStrCatChk(CallInst *CI, IRBuilde [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
| H A D | AutoUpgrade.cpp | 1053 static Value *UpgradeX86VPERMT2Intrinsics(IRBuilder<> &Builder, CallInst &CI, in UpgradeX86VPERMT2Intrinsics() argument 1055 Type *Ty = CI.getType(); in UpgradeX86VPERMT2Intrinsics() 1099 Value *Args[] = { CI.getArgOperand(0) , CI.getArgOperand(1), in UpgradeX86VPERMT2Intrinsics() 1100 CI.getArgOperand(2) }; in UpgradeX86VPERMT2Intrinsics() 1106 Value *V = Builder.CreateCall(Intrinsic::getDeclaration(CI.getModule(), IID), in UpgradeX86VPERMT2Intrinsics() 1109 : Builder.CreateBitCast(CI.getArgOperand(1), in UpgradeX86VPERMT2Intrinsics() 1111 return EmitX86Select(Builder, CI.getArgOperand(3), V, PassThru); in UpgradeX86VPERMT2Intrinsics() 1114 static Value *UpgradeX86AddSubSatIntrinsics(IRBuilder<> &Builder, CallInst &CI, in UpgradeX86AddSubSatIntrinsics() argument 1116 Type *Ty = CI in UpgradeX86AddSubSatIntrinsics() 1134 upgradeX86Rotate(IRBuilder< &Builder, CallInst &CI, bool IsRotateRight) upgradeX86Rotate() argument 1161 upgradeX86vpcom(IRBuilder< &Builder, CallInst &CI, unsigned Imm, bool IsSigned) upgradeX86vpcom() argument 1200 upgradeX86ConcatShift(IRBuilder< &Builder, CallInst &CI, bool IsShiftRight, bool ZeroMask) upgradeX86ConcatShift() argument 1274 upgradeAbs(IRBuilder< &Builder, CallInst &CI) upgradeAbs() argument 1288 upgradeIntMinMax(IRBuilder< &Builder, CallInst &CI, ICmpInst::Predicate Pred) upgradeIntMinMax() argument 1301 upgradePMULDQ(IRBuilder< &Builder, CallInst &CI, bool IsSigned) upgradePMULDQ() argument 1353 upgradeMaskedCompare(IRBuilder< &Builder, CallInst &CI, unsigned CC, bool Signed) upgradeMaskedCompare() argument 1383 UpgradeX86MaskedShift(IRBuilder< &Builder, CallInst &CI, Intrinsic::ID IID) UpgradeX86MaskedShift() argument 1391 upgradeMaskedMove(IRBuilder< &Builder, CallInst &CI) upgradeMaskedMove() argument 1406 UpgradeMaskToInt(IRBuilder< &Builder, CallInst &CI) UpgradeMaskToInt() argument 1415 upgradeAVX512MaskToSelect(StringRef Name, IRBuilder<> &Builder, CallInst &CI, Value *&Rep) upgradeAVX512MaskToSelect() argument 1668 UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) UpgradeIntrinsicCall() argument [all...] |
| H A D | IRBuilder.cpp | 78 CallInst *CI = CallInst::Create(Callee, Ops, Name); in createCallHelper() local 80 CI->copyFastMathFlags(FMFSource); in createCallHelper() 81 Builder->GetInsertBlock()->getInstList().insert(Builder->GetInsertPoint(),CI); in createCallHelper() 82 Builder->SetInstDebugLocation(CI); in createCallHelper() 83 return CI; in createCallHelper() 109 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemSet() local 112 cast<MemSetInst>(CI)->setDestAlignment(Align->value()); in CreateMemSet() 116 CI->setMetadata(LLVMContext::MD_tbaa, TBAATag); in CreateMemSet() 119 CI->setMetadata(LLVMContext::MD_alias_scope, ScopeTag); in CreateMemSet() 122 CI in CreateMemSet() 138 CallInst *CI = createCallHelper(TheFn, Ops, this); CreateElementUnorderedAtomicMemSet() local 178 CallInst *CI = createCallHelper(TheFn, Ops, this); CreateMemCpy() local 220 CallInst *CI = createCallHelper(TheFn, Ops, this); CreateElementUnorderedAtomicMemCpy() local 257 CallInst *CI = createCallHelper(TheFn, Ops, this); CreateMemMove() local 295 CallInst *CI = createCallHelper(TheFn, Ops, this); CreateElementUnorderedAtomicMemMove() local [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
| H A D | SILoadStoreOptimizer.cpp | 209 static bool dmasksCanBeCombined(const CombineInfo &CI, 212 static bool offsetsCanBeCombined(CombineInfo &CI, const MCSubtargetInfo &STI, 214 static bool widthsFit(const GCNSubtarget &STM, const CombineInfo &CI, 216 static unsigned getNewOpcode(const CombineInfo &CI, const CombineInfo &Paired); 217 static std::pair<unsigned, unsigned> getSubRegIdxs(const CombineInfo &CI, 219 const TargetRegisterClass *getTargetRegisterClass(const CombineInfo &CI, 222 bool findMatchingInst(CombineInfo &CI, CombineInfo &Paired); 226 MachineBasicBlock::iterator mergeRead2Pair(CombineInfo &CI, CombineInfo &Paired); 230 MachineBasicBlock::iterator mergeWrite2Pair(CombineInfo &CI, CombineInfo &Paired); 231 MachineBasicBlock::iterator mergeImagePair(CombineInfo &CI, CombineInf 659 dmasksCanBeCombined(const CombineInfo &CI, const SIInstrInfo &TII, const CombineInfo &Paired) dmasksCanBeCombined() argument 721 offsetsCanBeCombined(CombineInfo &CI, const MCSubtargetInfo &STI, CombineInfo &Paired) offsetsCanBeCombined() argument 809 widthsFit(const GCNSubtarget &STM, const CombineInfo &CI, const CombineInfo &Paired) widthsFit() argument 827 findMatchingInst(CombineInfo &CI, CombineInfo &Paired) findMatchingInst() argument 953 mergeRead2Pair(CombineInfo &CI, CombineInfo &Paired) mergeRead2Pair() argument 1052 mergeWrite2Pair(CombineInfo &CI, CombineInfo &Paired) mergeWrite2Pair() argument 1119 mergeImagePair(CombineInfo &CI, CombineInfo &Paired) mergeImagePair() argument 1172 mergeSBufferLoadImmPair(CombineInfo &CI, CombineInfo &Paired) mergeSBufferLoadImmPair() argument 1222 mergeBufferLoadPair(CombineInfo &CI, CombineInfo &Paired) mergeBufferLoadPair() argument 1284 mergeTBufferLoadPair(CombineInfo &CI, CombineInfo &Paired) mergeTBufferLoadPair() argument 1351 mergeTBufferStorePair(CombineInfo &CI, CombineInfo &Paired) mergeTBufferStorePair() argument 1413 getNewOpcode(const CombineInfo &CI, const CombineInfo &Paired) getNewOpcode() argument 1446 getSubRegIdxs(const CombineInfo &CI, const CombineInfo &Paired) getSubRegIdxs() argument 1483 getTargetRegisterClass(const CombineInfo &CI, const CombineInfo &Paired) getTargetRegisterClass() argument 1513 mergeBufferStorePair(CombineInfo &CI, CombineInfo &Paired) mergeBufferStorePair() argument 1883 addInstToMergeableList(const CombineInfo &CI, std::list<std::list<CombineInfo> > &MergeableInsts) const addInstToMergeableList() argument 1921 CombineInfo CI; collectMergeableInsts() local 1981 CombineInfo &CI = *I; optimizeInstsWithSameBaseAddr() local [all...] |
| H A 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); 110 bool fold_exp(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo); 113 bool fold_exp2(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo); 116 bool fold_exp10(CallInst *CI, IRBuilde 147 CallInst *CI; global() member in llvm::AMDGPULibCalls 579 fold_read_write_pipe(CallInst *CI, IRBuilder<> &B, FuncInfo &FInfo) fold_read_write_pipe() argument 640 fold(CallInst *CI, AliasAnalysis *AA) fold() argument 736 TDOFold(CallInst *CI, const FuncInfo &FInfo) TDOFold() argument 800 replaceWithNative(CallInst *CI, const FuncInfo &FInfo) replaceWithNative() argument 822 fold_recip(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo) fold_recip() argument 840 fold_divide(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo) fold_divide() argument 870 fold_pow(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo) fold_pow() argument 1155 fold_rootn(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo) fold_rootn() argument 1209 fold_fma_mad(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo) fold_fma_mad() argument 1264 fold_sqrt(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo) fold_sqrt() argument 1282 fold_sincos(CallInst *CI, IRBuilder<> &B, AliasAnalysis *AA) fold_sincos() argument 1382 fold_wavefrontsize(CallInst *CI, IRBuilder<> &B) fold_wavefrontsize() argument 1759 CallInst *CI = dyn_cast<CallInst>(I); runOnFunction() local 1784 CallInst *CI = dyn_cast<CallInst>(I); runOnFunction() local [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
| H A D | TailRecursionElimination.cpp | 240 CallInst *CI = dyn_cast<CallInst>(&I); 241 if (!CI || CI->isTailCall() || isa<DbgInfoIntrinsic>(&I)) 244 bool IsNoTail = CI->isNoTailCall() || CI->hasOperandBundles(); 246 if (!IsNoTail && CI->doesNotAccessMemory()) { 255 for (auto &Arg : CI->arg_operands()) { 267 return OptimizationRemark(DEBUG_TYPE, "tailcall-readnone", CI) 270 CI->setTailCall(); 276 if (!IsNoTail && Escaped == UNESCAPED && !Tracker.AllocaUsers.count(CI)) { [all...] |
| H A D | LowerExpectIntrinsic.cpp | 59 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect() local 60 if (!CI) in handleSwitchExpect() 63 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect() 67 Value *ArgValue = CI->getArgOperand(0); in handleSwitchExpect() 68 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect() 81 MDBuilder(CI->getContext()) in handleSwitchExpect() 88 MDBuilder(CI->getContext()).createBranchWeights(Weights)); in handleSwitchExpect() 189 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef() local 190 if (!CI) in handlePhiDef() 196 if (ExpectedPhiValue == ApplyOperations(CI in handlePhiDef() 250 CallInst *CI; handleBrSelExpect() local 340 CallInst *CI = dyn_cast<CallInst>(Inst); lowerExpectIntrinsic() local [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
| H A D | TypeMetadataUtils.cpp | 26 const CallInst *CI, DominatorTree &DT) { in findCallsAtConstantOffset() 35 if (!DT.dominates(CI, User)) in findCallsAtConstantOffset() 38 findCallsAtConstantOffset(DevirtCalls, HasNonCallUses, User, Offset, CI, in findCallsAtConstantOffset() 40 } else if (auto CI = dyn_cast<CallInst>(User)) { in findCallsAtConstantOffset() 41 DevirtCalls.push_back({Offset, CI}); in findCallsAtConstantOffset() 53 int64_t Offset, const CallInst *CI, DominatorTree &DT) { in findLoadCallsAtConstantOffset() 57 findLoadCallsAtConstantOffset(M, DevirtCalls, User, Offset, CI, DT); in findLoadCallsAtConstantOffset() 59 findCallsAtConstantOffset(DevirtCalls, nullptr, User, Offset, CI, DT); in findLoadCallsAtConstantOffset() 67 CI, DT); in findLoadCallsAtConstantOffset() 75 SmallVectorImpl<CallInst *> &Assumes, const CallInst *CI, in findDevirtualizableCallsForTypeTest() 24 findCallsAtConstantOffset(SmallVectorImpl<DevirtCallSite> &DevirtCalls, bool *HasNonCallUses, Value *FPtr, uint64_t Offset, const CallInst *CI, DominatorTree &DT) findCallsAtConstantOffset() argument 51 findLoadCallsAtConstantOffset( const Module *M, SmallVectorImpl<DevirtCallSite> &DevirtCalls, Value *VPtr, int64_t Offset, const CallInst *CI, DominatorTree &DT) findLoadCallsAtConstantOffset() argument 73 findDevirtualizableCallsForTypeTest( SmallVectorImpl<DevirtCallSite> &DevirtCalls, SmallVectorImpl<CallInst *> &Assumes, const CallInst *CI, DominatorTree &DT) findDevirtualizableCallsForTypeTest() argument 97 findDevirtualizableCallsForTypeCheckedLoad( SmallVectorImpl<DevirtCallSite> &DevirtCalls, SmallVectorImpl<Instruction *> &LoadedPtrs, SmallVectorImpl<Instruction *> &Preds, bool &HasNonCallUses, const CallInst *CI, DominatorTree &DT) findDevirtualizableCallsForTypeCheckedLoad() argument [all...] |
| H A D | AssumptionCache.cpp | 57 static void findAffectedValues(CallInst *CI, in findAffectedValues() argument 79 Value *Cond = CI->getArgOperand(0), *A, *B; in findAffectedValues() 114 void AssumptionCache::updateAffectedValues(CallInst *CI) { in updateAffectedValues() argument 116 findAffectedValues(CI, Affected); in updateAffectedValues() 120 if (std::find(AVV.begin(), AVV.end(), CI) == AVV.end()) in updateAffectedValues() 121 AVV.push_back(CI); in updateAffectedValues() 125 void AssumptionCache::unregisterAssumption(CallInst *CI) { in unregisterAssumption() argument 127 findAffectedValues(CI, Affected); in unregisterAssumption() 136 remove_if(AssumeHandles, [CI](WeakTrackingVH &VH) { return CI in unregisterAssumption() 190 registerAssumption(CallInst *CI) registerAssumption() argument [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 33 if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) { in decomposeSimpleLinearExpr() 34 Offset = CI->getZExtValue(); in decomposeSimpleLinearExpr() 84 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation() argument 86 PointerType *PTy = cast<PointerType>(CI.getType()); in PromoteCastOfAllocation() 149 // things that used it to use the new cast. This will also hack on CI, but it in PromoteCastOfAllocation() 157 return replaceInstUsesWith(CI, New); in PromoteCastOfAllocation() 261 Instruction *InstCombiner::commonCastTransforms(CastInst &CI) { in commonCastTransforms() argument 262 Value *Src = CI.getOperand(0); in commonCastTransforms() 266 if (Instruction::CastOps NewOpc = isEliminableCastPair(CSrc, &CI)) { in commonCastTransforms() 268 // the second cast (CI) in commonCastTransforms() 685 visitTrunc(TruncInst &CI) visitTrunc() argument 1089 visitZExt(ZExtInst &CI) visitZExt() argument 1227 transformSExtICmp(ICmpInst *ICI, Instruction &CI) transformSExtICmp() argument 1363 visitSExt(SExtInst &CI) visitSExt() argument 1705 visitFPExt(CastInst &CI) visitFPExt() argument 1775 visitUIToFP(CastInst &CI) visitUIToFP() argument 1779 visitSIToFP(CastInst &CI) visitSIToFP() argument 1783 visitIntToPtr(IntToPtrInst &CI) visitIntToPtr() argument 1805 commonPointerCastTransforms(CastInst &CI) commonPointerCastTransforms() argument 1829 visitPtrToInt(PtrToIntInst &CI) visitPtrToInt() argument 2040 ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1)); collectInsertionElements() local 2066 optimizeIntegerToVectorInsertions(BitCastInst &CI, InstCombiner &IC) optimizeIntegerToVectorInsertions() argument 2206 hasStoreUsersOnly(CastInst &CI) hasStoreUsersOnly() argument 2222 optimizeBitCastFromPhi(CastInst &CI, PHINode *PN) optimizeBitCastFromPhi() argument 2386 visitBitCast(BitCastInst &CI) visitBitCast() argument 2568 visitAddrSpaceCast(AddrSpaceCastInst &CI) visitAddrSpaceCast() argument [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 261 template <typename CallOrInvoke> Value *wrapInvoke(CallOrInvoke *CI); 265 template <typename CallOrInvoke> Function *getInvokeWrapper(CallOrInvoke *CI); 375 Value *WebAssemblyLowerEmscriptenEHSjLj::wrapInvoke(CallOrInvoke *CI) { in wrapInvoke() argument 376 LLVMContext &C = CI->getModule()->getContext(); in wrapInvoke() 381 if (CI->doesNotReturn()) { in wrapInvoke() 382 if (auto *F = dyn_cast<Function>(CI->getCalledValue())) in wrapInvoke() 384 CI->removeAttribute(AttributeList::FunctionIndex, Attribute::NoReturn); in wrapInvoke() 388 IRB.SetInsertPoint(CI); in wrapInvoke() 398 Args.push_back(CI->getCalledValue()); in wrapInvoke() 399 Args.append(CI in wrapInvoke() 447 getInvokeWrapper(CallOrInvoke *CI) getInvokeWrapper() argument 812 auto *CI = dyn_cast<CallInst>(&I); runEHOnFunction() local 911 auto *CI = dyn_cast<CallInst>(U); runSjLjOnFunction() local 965 auto *CI = dyn_cast<CallInst>(&I); runSjLjOnFunction() local [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 339 auto *CI = dyn_cast<CmpInst>(&U); in translateCompare() local 344 CI ? CI->getPredicate() : static_cast<CmpInst::Predicate>( in translateCompare() 355 assert(CI && "Instruction should be CmpInst"); in translateCompare() 357 MachineInstr::copyFlagsFromInstruction(*CI)); in translateCompare() 1080 if (const auto *CI = dyn_cast<ConstantInt>(Idx)) { in translateGetElementPtr() 1081 Offset += ElementSize * CI->getSExtValue(); in translateGetElementPtr() 1123 bool IRTranslator::translateMemFunc(const CallInst &CI, in translateMemFunc() argument 1128 if (isa<UndefValue>(CI.getArgOperand(1))) in translateMemFunc() 1133 for (auto AI = CI in translateMemFunc() 1191 translateOverflowIntrinsic(const CallInst &CI, unsigned Op, MachineIRBuilder &MIRBuilder) translateOverflowIntrinsic() argument 1265 translateSimpleIntrinsic(const CallInst &CI, Intrinsic::ID ID, MachineIRBuilder &MIRBuilder) translateSimpleIntrinsic() argument 1285 translateKnownIntrinsic(const CallInst &CI, Intrinsic::ID ID, MachineIRBuilder &MIRBuilder) translateKnownIntrinsic() argument 1540 translateInlineAsm(const CallInst &CI, MachineIRBuilder &MIRBuilder) translateInlineAsm() argument 1600 const CallInst &CI = cast<CallInst>(U); translateCall() local [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARC.h | 51 static inline void EraseInstruction(Instruction *CI) { in EraseInstruction() argument 52 Value *OldArg = cast<CallInst>(CI)->getArgOperand(0); in EraseInstruction() 54 bool Unused = CI->use_empty(); in EraseInstruction() 58 assert((IsForwarding(GetBasicARCInstKind(CI)) || in EraseInstruction() 59 (IsNoopOnNull(GetBasicARCInstKind(CI)) && in EraseInstruction() 62 CI->replaceAllUsesWith(OldArg); in EraseInstruction() 65 CI->eraseFromParent(); in EraseInstruction()
|
| /third_party/pcre2/pcre2/src/ |
| H A D | pcre2_jit_test.c | 1829 #define CI (PCRE2_JIT_COMPLETE | PCRE2_JIT_INVALID_UTF) macro 1847 { UDA, CI, 0, 0, 0, 0, 4, { ".", NULL }, "\xf4\x8f\xbf\xbf" }, 1848 { UDA, CI, 0, 0, 0, 0, 4, { ".", NULL }, "\xf0\x90\x80\x80" }, 1849 { UDA, CI, 0, 0, 0, -1, -1, { ".", NULL }, "\xf4\x90\x80\x80" }, 1850 { UDA, CI, 0, 0, 1, -1, -1, { ".", NULL }, "\xf4\x8f\xbf\xbf" }, 1851 { UDA, CI, 0, 0, 0, -1, -1, { ".", NULL }, "\xf0\x90\x80\x7f" }, 1852 { UDA, CI, 0, 0, 0, -1, -1, { ".", NULL }, "\xf0\x90\x80\xc0" }, 1853 { UDA, CI, 0, 0, 0, -1, -1, { ".", NULL }, "\xf0\x8f\xbf\xbf" }, 1854 { UDA, CI, 0, 0, 0, 0, 3, { ".", NULL }, "\xef\xbf\xbf#" }, 1855 { UDA, CI, 1995 #undef CI global() macro 2117 #define CI global() macro 2204 #undef CI global() macro 2325 #define CI global() macro 2391 #undef CI global() macro [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
| H A D | PPCLowerMASSVEntries.cpp | 57 bool lowerMASSVCall(CallInst *CI, Function &Func, Module &M, 102 bool PPCLowerMASSVEntries::lowerMASSVCall(CallInst *CI, Function &Func, in lowerMASSVCall() argument 105 if (CI->use_empty()) in lowerMASSVCall() 112 CallSite CS(CI); in lowerMASSVCall() 113 CI->setCalledFunction(FCache); in lowerMASSVCall() 143 auto *CI = dyn_cast<CallInst>(User); in runOnModule() local 144 if (!CI) in runOnModule() 147 Subtarget = &TM.getSubtarget<PPCSubtarget>(*CI->getParent()->getParent()); in runOnModule() 148 Changed |= lowerMASSVCall(CI, Func, M, Subtarget); in runOnModule()
|
| /third_party/libphonenumber/cpp/src/phonenumbers/utf/ |
| H A D | unicodetext.h | 182 typedef const_iterator CI; typedef in i18n::phonenumbers::UnicodeText::const_iterator 214 friend bool operator==(const CI& lhs, const CI& rhs) { in operator ==() 216 friend bool operator!=(const CI& lhs, const CI& rhs) { in operator !=() 218 friend bool operator<(const CI& lhs, const CI& rhs); 219 friend bool operator>(const CI& lhs, const CI& rhs) { in operator >() 221 friend bool operator<=(const CI in operator >() [all...] |