/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | MemoryBuiltins.cpp | 70 static bool isBitCastOfMallocCall(const BitCastInst *BCI) { in isBitCastOfMallocCall() 80 BitCastInst *BCI = dyn_cast<BitCastInst>(I); in extractMallocCallFromBitCast() 86 const BitCastInst *BCI = dyn_cast<BitCastInst>(I); in extractMallocCallFromBitCast() 145 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(*UI++)) { in getMallocType()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCContract.cpp | 409 Args[0] = new BitCastInst(Args[0], I8XX, "", Store); in tryToContractReleaseIntoStoreStrong() 411 Args[1] = new BitCastInst(Args[1], I8X, "", Store); in tryToContractReleaseIntoStoreStrong() 628 new BitCastInst(Replacement, UseTy, "", &InsertBB->back()); in runOnFunction() 645 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction() 661 if (const BitCastInst *BI = dyn_cast<BitCastInst>(Arg)) in runOnFunction() 683 SmallVector<BitCastInst *, 2> BitCastUsers; in runOnFunction() 687 if (auto *BC = dyn_cast<BitCastInst>(U)) in runOnFunction() 694 if (auto *B = dyn_cast<BitCastInst>(U)) in runOnFunction()
|
/external/llvm/lib/Target/AMDGPU/ |
D | SITypeRewriter.cpp | 50 void visitBitCast(BitCastInst &I); 142 void SITypeRewriter::visitBitCast(BitCastInst &I) { in visitBitCast() 148 if (BitCastInst *Op = dyn_cast<BitCastInst>(I.getOperand(0))) { in visitBitCast()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 144 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset, 441 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in CanConvertToScalar() 528 if (BitCastInst *CI = dyn_cast<BitCastInst>(User)) { in ConvertUsesToScalar() 1179 if (BitCastInst *BCI = dyn_cast<BitCastInst>(U)) { in tryToMakeAllocaBePromotable() 1197 if (BitCastInst *BCI = dyn_cast<BitCastInst>(InstsToRewrite[i])) { in tryToMakeAllocaBePromotable() 1199 for (BitCastInst::use_iterator I = BCI->use_begin(), E = BCI->use_end(); in tryToMakeAllocaBePromotable() 1510 if (BitCastInst *BC = dyn_cast<BitCastInst>(User)) { in isSafeForScalarRepl() 1574 if (BitCastInst *BC = dyn_cast<BitCastInst>(User)) { in isSafePHISelectUseForScalarRepl() 1762 if (BitCastInst *BC = dyn_cast<BitCastInst>(User)) { in RewriteForScalarRepl() 1860 BitCastInst *BCI = new BitCastInst(NewAI, AI->getType(), "", NewAI); in RewriteForScalarRepl() [all …]
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCContract.cpp | 382 Args[0] = new BitCastInst(Args[0], I8XX, "", Store); in tryToContractReleaseIntoStoreStrong() 384 Args[1] = new BitCastInst(Args[1], I8X, "", Store); in tryToContractReleaseIntoStoreStrong() 579 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction() 595 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction() 603 if (const BitCastInst *BI = dyn_cast<BitCastInst>(Arg)) in runOnFunction()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXFavorNonGenericAddrSpaces.cpp | 206 if (BitCastInst *BCI = dyn_cast<BitCastInst>(BC)) { in hoistAddrSpaceCastFromBitCast() 207 Value *NewCast = new BitCastInst(Src, TypeOfNewCast, "", BCI); in hoistAddrSpaceCastFromBitCast()
|
/external/spirv-llvm/lib/SPIRV/ |
D | OCLUtil.cpp | 546 getSrcAndDstElememntTypeName(BitCastInst* BIC) { in getSrcAndDstElememntTypeName() 566 BitCastInst *BIC = dyn_cast<BitCastInst>(Inst); in isSamplerInitializer() 577 BitCastInst *BIC = dyn_cast<BitCastInst>(Inst); in isPipeStorageInitializer()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | TypeMetadataUtils.cpp | 28 if (isa<BitCastInst>(User)) { in findCallsAtConstantOffset() 47 if (isa<BitCastInst>(User)) { in findLoadCallsAtConstantOffset()
|
/external/llvm/lib/Analysis/ |
D | TypeMetadataUtils.cpp | 28 if (isa<BitCastInst>(User)) { in findCallsAtConstantOffset() 47 if (isa<BitCastInst>(User)) { in findLoadCallsAtConstantOffset()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCLoopPreIncPrep.cpp | 125 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBasePtr)) in IsPtrInBounds() 368 NewBasePtr = new BitCastInst(PtrInc, BasePtr->getType(), in runOnLoop() 417 ReplNewPtr = new BitCastInst(RealNewPtr, Ptr->getType(), in runOnLoop()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 78 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation() 1347 if (TD && GEP->hasOneUse() && isa<BitCastInst>(GEP->getOperand(0)) && in commonPointerCastTransforms() 1354 Value *OrigBase = cast<BitCastInst>(GEP->getOperand(0))->getOperand(0); in commonPointerCastTransforms() 1367 if (isa<BitCastInst>(CI)) in commonPointerCastTransforms() 1368 return new BitCastInst(NGEP, CI.getType()); in commonPointerCastTransforms() 1571 static Value *OptimizeIntegerToVectorInsertions(BitCastInst &CI, in OptimizeIntegerToVectorInsertions() 1598 static Instruction *OptimizeIntToFloatBitCast(BitCastInst &CI,InstCombiner &IC){ in OptimizeIntToFloatBitCast() 1648 Instruction *InstCombiner::visitBitCast(BitCastInst &CI) { in visitBitCast() 1717 if (BitCastInst *BCIn = dyn_cast<BitCastInst>(SrcCast->getOperand(0))) in visitBitCast() 1749 BitCastInst *Tmp; in visitBitCast() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 137 return new BitCastInst(NewLoad, LI.getType()); in InstCombineLoadCast() 415 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst() 482 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())); in visitStoreInst() 546 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in SimplifyStoreAtEndOfBlock()
|
D | InstructionCombining.cpp | 567 if (BitCastInst *BC = dyn_cast<BitCastInst>(&Op)) { in FoldOpIntoSelect() 971 return new BitCastInst(NewGEP, GEP.getType()); in visitGetElementPtrInst() 1030 return new BitCastInst(NewGEP, GEP.getType()); in visitGetElementPtrInst() 1041 if (BitCastInst *BCI = dyn_cast<BitCastInst>(PtrOp)) { in visitGetElementPtrInst() 1043 !isa<BitCastInst>(BCI->getOperand(0)) && GEP.hasAllConstantIndices() && in visitGetElementPtrInst() 1068 return new BitCastInst(BCI->getOperand(0), GEP.getType()); in visitGetElementPtrInst() 1085 return new BitCastInst(NGEP, GEP.getType()); in visitGetElementPtrInst() 1113 if (BitCastInst *BCI = dyn_cast<BitCastInst>(U)) { in IsOnlyNullComparedAndFreed() 1151 } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I)) { in visitMalloc()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | EntryExitInstrumenter.cpp | 100 if (BitCastInst *BCI = dyn_cast_or_null<BitCastInst>(Prev)) in runOnFunction()
|
D | StripGCRelocates.cpp | 63 ReplaceGCRel = new BitCastInst(OrigPtr, GCRel->getType(), "cast", GCRel); in runOnFunction()
|
D | BypassSlowDivision.cpp | 206 if (!C && isa<BitCastInst>(Op1)) in isHashLikeValue() 207 C = dyn_cast<ConstantInt>(cast<BitCastInst>(Op1)->getOperand(0)); in isHashLikeValue() 395 if (auto *BCI = dyn_cast<BitCastInst>(Divisor)) in insertFastDivAndRem()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCLoopPreIncPrep.cpp | 147 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBasePtr)) in IsPtrInBounds() 461 NewBasePtr = new BitCastInst(PtrInc, BasePtr->getType(), in runOnLoop() 510 ReplNewPtr = new BitCastInst(RealNewPtr, Ptr->getType(), in runOnLoop()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | IRBuilder.cpp | 49 BitCastInst *BCI = new BitCastInst(Ptr, PT, ""); in getCastedInt8PtrValue()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 84 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation() 1685 return new BitCastInst(SrcI, FITy); in FoldItoFPtoI() 1969 static Value *optimizeIntegerToVectorInsertions(BitCastInst &CI, in optimizeIntegerToVectorInsertions() 1998 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt() 2019 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic() 2065 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect() 2170 auto *BCI = dyn_cast<BitCastInst>(IncValue); in optimizeBitCastFromPhi() 2203 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi() 2219 cast<BitCastInst>(Builder.CreateBitCast(NewPNodes[PN], SrcTy)); in optimizeBitCastFromPhi() 2229 Instruction *InstCombiner::visitBitCast(BitCastInst &CI) { in visitBitCast() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 79 if (isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I)) { in isOnlyCopiedFromConstantGlobal() 278 } else if (isa<GetElementPtrInst>(Inst) || isa<BitCastInst>(Inst)) { in findLoadAndReplace() 317 } else if (auto *BC = dyn_cast<BitCastInst>(I)) { in replace() 322 auto *NewI = new BitCastInst(V, NewT); in replace() 389 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst() 1188 if (auto *BC = dyn_cast<BitCastInst>(V)) { in combineStoreToValueType() 1448 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst() 1506 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())); in visitStoreInst() 1573 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in SimplifyStoreAtEndOfBlock()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | ValueHandleTest.cpp | 25 std::unique_ptr<BitCastInst> BitcastV; 29 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(Context))) {} in ValueHandle() 515 BitcastV.reset(new BitCastInst(ConstantV, Type::getInt32Ty(Context))); in TEST_F() 534 BitcastV.reset(new BitCastInst(ConstantV, Type::getInt32Ty(Context))); in TEST_F()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 183 if (BitCastInst *BCI = dyn_cast<BitCastInst>(EI.getOperand(0))) { in visitExtractElementInst() 187 return new BitCastInst(Elt, EI.getType()); in visitExtractElementInst() 1033 SmallVector<BitCastInst *, 8> BCs; in visitShuffleVectorInst() 1036 if (BitCastInst *BC = dyn_cast<BitCastInst>(U)) in visitShuffleVectorInst() 1040 for (BitCastInst *BC : BCs) { in visitShuffleVectorInst()
|
D | InstCombineCasts.cpp | 81 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation() 1458 return new BitCastInst(SrcI, FITy); in FoldItoFPtoI() 1742 static Value *optimizeIntegerToVectorInsertions(BitCastInst &CI, in optimizeIntegerToVectorInsertions() 1771 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt() 1792 Instruction *InstCombiner::visitBitCast(BitCastInst &CI) { in visitBitCast() 1856 if (BitCastInst *BCIn = dyn_cast<BitCastInst>(SrcCast->getOperand(0))) in visitBitCast() 1898 BitCastInst *Tmp; in visitBitCast() 1902 if (((Tmp = dyn_cast<BitCastInst>(SVI->getOperand(0))) && in visitBitCast() 1904 ((Tmp = dyn_cast<BitCastInst>(SVI->getOperand(1))) && in visitBitCast()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 601 } else if (const BitCastInst *CI = dyn_cast<BitCastInst>(U)) { in AllUsesOfValueWillTrapIfNull() 739 isa<BitCastInst>(GlobalUser) || in OptimizeAwayTrappingUsesOfLoads() 814 BitCastInst *TheBC = nullptr; in OptimizeGlobalAddressOfMalloc() 817 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in OptimizeGlobalAddressOfMalloc() 826 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfMalloc() 950 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Inst)) { in ValueIsOnlyUsedLocallyOrStoredToOneGlobal() 980 } else if (isa<BitCastInst>(U)) { in ReplaceUsesOfMallocWithGlobal() 1498 Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI); in tryToOptimizeStoreOfMallocToGlobal() 1501 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Malloc)) in tryToOptimizeStoreOfMallocToGlobal()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoadCombine.cpp | 103 while (isa<BitCastInst>(POP.Pointer) || isa<GetElementPtrInst>(POP.Pointer)) { in getPointerOffsetPair() 112 } else if (auto *BC = dyn_cast<BitCastInst>(POP.Pointer)) { in getPointerOffsetPair()
|