/external/llvm/lib/Target/AMDGPU/ |
D | SITypeRewriter.cpp | 50 void visitBitCast(BitCastInst &I); 139 void SITypeRewriter::visitBitCast(BitCastInst &I) { in visitBitCast() 145 if (BitCastInst *Op = dyn_cast<BitCastInst>(I.getOperand(0))) { in visitBitCast()
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCContract.cpp | 381 Args[0] = new BitCastInst(Args[0], I8XX, "", Store); in tryToContractReleaseIntoStoreStrong() 383 Args[1] = new BitCastInst(Args[1], I8X, "", Store); in tryToContractReleaseIntoStoreStrong() 578 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction() 594 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction() 602 if (const BitCastInst *BI = dyn_cast<BitCastInst>(Arg)) in runOnFunction()
|
D | ObjCARCOpts.cpp | 57 if (const BitCastInst *BC = dyn_cast<BitCastInst>(Arg)) in FindSingleUseIdentifiedObject() 654 if (isa<BitCastInst>(U)) in OptimizeAutoreleaseRVCall() 918 Op = new BitCastInst(Op, ParamTy, "", InsertPos); in OptimizeIndividualCalls() 1492 new BitCastInst(Arg, ParamTy, "", InsertPt); in MoveCalls() 1503 new BitCastInst(Arg, ParamTy, "", InsertPt); in MoveCalls()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXFavorNonGenericAddrSpaces.cpp | 203 if (BitCastInst *BCI = dyn_cast<BitCastInst>(BC)) { in hoistAddrSpaceCastFromBitCast() 204 Value *NewCast = new BitCastInst(Src, TypeOfNewCast, "", BCI); in hoistAddrSpaceCastFromBitCast()
|
D | NVPTXLowerAlloca.cpp | 102 auto BI = dyn_cast<BitCastInst>(AllocaUse.getUser()); in runOnBasicBlock()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 173 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset, 503 if (BitCastInst *BCI = dyn_cast<BitCastInst>(UI)) { in CanConvertToScalar() 610 if (BitCastInst *CI = dyn_cast<BitCastInst>(User)) { in ConvertUsesToScalar() 1300 if (BitCastInst *BCI = dyn_cast<BitCastInst>(U)) { in tryToMakeAllocaBePromotable() 1318 if (BitCastInst *BCI = dyn_cast<BitCastInst>(InstsToRewrite[i])) { in tryToMakeAllocaBePromotable() 1320 for (BitCastInst::user_iterator I = BCI->user_begin(), E = BCI->user_end(); in tryToMakeAllocaBePromotable() 1616 if (BitCastInst *BC = dyn_cast<BitCastInst>(User)) { in isSafeForScalarRepl() 1682 if (BitCastInst *BC = dyn_cast<BitCastInst>(UI)) { in isSafePHISelectUseForScalarRepl() 1889 if (BitCastInst *BC = dyn_cast<BitCastInst>(User)) { in RewriteForScalarRepl() 1986 BitCastInst *BCI = new BitCastInst(NewAI, AI->getType(), "", NewAI); in RewriteForScalarRepl() [all …]
|
D | LoadCombine.cpp | 93 while (isa<BitCastInst>(POP.Pointer) || isa<GetElementPtrInst>(POP.Pointer)) { in getPointerOffsetPair() 104 } else if (auto *BC = dyn_cast<BitCastInst>(POP.Pointer)) in getPointerOffsetPair()
|
D | Reg2Mem.cpp | 85 CastInst *AllocaInsertionPoint = new BitCastInst( in INITIALIZE_PASS_DEPENDENCY()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCLoopPreIncPrep.cpp | 125 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBasePtr)) in IsPtrInBounds() 365 NewBasePtr = new BitCastInst(PtrInc, BasePtr->getType(), in runOnLoop() 414 ReplNewPtr = new BitCastInst(RealNewPtr, Ptr->getType(), in runOnLoop()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 168 if (BitCastInst *BCI = dyn_cast<BitCastInst>(EI.getOperand(0))) { in visitExtractElementInst() 172 return new BitCastInst(Elt, EI.getType()); in visitExtractElementInst() 944 SmallVector<BitCastInst *, 8> BCs; in visitShuffleVectorInst() 947 if (BitCastInst *BC = dyn_cast<BitCastInst>(U)) in visitShuffleVectorInst() 951 for (BitCastInst *BC : BCs) { in visitShuffleVectorInst()
|
D | InstCombineLoadStoreAlloca.cpp | 75 if (isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I)) { in isOnlyCopiedFromConstantGlobal() 271 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst() 911 if (auto *BC = dyn_cast<BitCastInst>(V)) { in combineStoreToValueType() 1068 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst() 1129 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())); in visitStoreInst() 1193 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in SimplifyStoreAtEndOfBlock()
|
D | InstCombineCasts.cpp | 81 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation() 1455 return new BitCastInst(SrcI, FITy); in FoldItoFPtoI() 1739 static Value *optimizeIntegerToVectorInsertions(BitCastInst &CI, in optimizeIntegerToVectorInsertions() 1768 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt() 1789 Instruction *InstCombiner::visitBitCast(BitCastInst &CI) { in visitBitCast() 1846 if (BitCastInst *BCIn = dyn_cast<BitCastInst>(SrcCast->getOperand(0))) in visitBitCast() 1888 BitCastInst *Tmp; in visitBitCast() 1892 if (((Tmp = dyn_cast<BitCastInst>(SVI->getOperand(0))) && in visitBitCast() 1894 ((Tmp = dyn_cast<BitCastInst>(SVI->getOperand(1))) && in visitBitCast()
|
D | InstructionCombining.cpp | 752 if (BitCastInst *BC = dyn_cast<BitCastInst>(&Op)) { in FoldOpIntoSelect() 1797 if (BitCastInst *BC = dyn_cast<BitCastInst>(ASC->getOperand(0))) in visitGetElementPtrInst() 1806 if (BitCastInst *BCI = dyn_cast<BitCastInst>(PtrOp)) { in visitGetElementPtrInst() 1811 if (!isa<BitCastInst>(Operand) && in visitGetElementPtrInst() 1833 return new BitCastInst(Operand, GEP.getType()); in visitGetElementPtrInst() 1852 return new BitCastInst(NGEP, GEP.getType()); in visitGetElementPtrInst() 1951 } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I)) { in visitAllocSite()
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | R600KernelParameters.cpp | 261 Op = new BitCastInst(Op, PointerType::get(dyn_cast<PointerType>( in Propagate() 289 NewPtr = new BitCastInst(OrigPtr, NewPtrType, "prop_cast", Load); in Propagate() 341 ParamPtr = new BitCastInst(ParamPtr, in ConstantRead()
|
/external/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 328 CastInst *BTC0 = new BitCastInst(Gep0, V2xi8PTy); in TEST() 329 CastInst *BTC1 = new BitCastInst(Gep1, V2xi8PTy); in TEST() 330 CastInst *BTC2 = new BitCastInst(Gep2, V2xi8PTy); in TEST() 331 CastInst *BTC3 = new BitCastInst(Gep3, V2xi8PTy); in TEST()
|
D | ValueMapTest.cpp | 26 std::unique_ptr<BitCastInst> BitcastV; 31 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(getGlobalContext()))), in ValueMapTest()
|
D | ValueHandleTest.cpp | 24 std::unique_ptr<BitCastInst> BitcastV; 28 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(getGlobalContext()))) { in ValueHandle()
|
/external/llvm/lib/CodeGen/ |
D | StackProtector.cpp | 179 } else if (const BitCastInst *BI = dyn_cast<BitCastInst>(U)) { in HasAddressTaken()
|
D | StackColoring.cpp | 488 BitCastInst *Cast = new BitCastInst(Inst, From->getType()); in remapInstructions()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 640 } else if (const BitCastInst *CI = dyn_cast<BitCastInst>(U)) { in AllUsesOfValueWillTrapIfNull() 778 isa<BitCastInst>(GlobalUser) || in OptimizeAwayTrappingUsesOfLoads() 856 BitCastInst *TheBC = nullptr; in OptimizeGlobalAddressOfMalloc() 859 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in OptimizeGlobalAddressOfMalloc() 868 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfMalloc() 993 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Inst)) { in ValueIsOnlyUsedLocallyOrStoredToOneGlobal() 1023 } else if (isa<BitCastInst>(U)) { in ReplaceUsesOfMallocWithGlobal() 1539 Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI); in TryToOptimizeStoreOfMallocToGlobal() 1542 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Malloc)) in TryToOptimizeStoreOfMallocToGlobal()
|
/external/llvm/include/llvm/Analysis/ |
D | PtrUseVisitor.h | 238 void visitBitCastInst(BitCastInst &BC) { in visitBitCastInst()
|
D | ObjCARCAnalysisUtils.h | 133 return isa<BitCastInst>(I) || in IsNoopInstruction()
|
/external/llvm/lib/Transforms/Utils/ |
D | GlobalStatus.cpp | 128 } else if (isa<BitCastInst>(I)) { in analyzeGlobalAux()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 443 Result = new BitCastInst(MCall, AllocPtrType, Name, InsertBefore); in createMalloc() 450 Result = new BitCastInst(MCall, AllocPtrType, Name); in createMalloc() 512 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore); in createFree() 516 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertAtEnd); in createFree() 2587 case BitCast: return new BitCastInst (S, Ty, Name, InsertBefore); in Create() 2609 case BitCast: return new BitCastInst (S, Ty, Name, InsertAtEnd); in Create() 3255 BitCastInst::BitCastInst( in BitCastInst() function in BitCastInst 3261 BitCastInst::BitCastInst( in BitCastInst() function in BitCastInst 3895 BitCastInst *BitCastInst::cloneImpl() const { in cloneImpl() 3896 return new BitCastInst(getOperand(0), getType()); in cloneImpl()
|
D | IRBuilder.cpp | 53 BitCastInst *BCI = new BitCastInst(Ptr, PT, ""); in getCastedInt8PtrValue()
|