Home
last modified time | relevance | path

Searched refs:BitCastInst (Results 1 – 25 of 67) sorted by relevance

123

/external/llvm/lib/Target/NVPTX/
DNVPTXLowerStructArgs.cpp86 new BitCastInst(Arg, Type::getInt8PtrTy(Func->getParent()->getContext(), in handleParam()
92 BitCastInst *BitCast = new BitCastInst( in handleParam()
/external/llvm/lib/Target/R600/
DSITypeRewriter.cpp49 void visitBitCast(BitCastInst &I);
145 void SITypeRewriter::visitBitCast(BitCastInst &I) { in visitBitCast()
151 if (BitCastInst *Op = dyn_cast<BitCastInst>(I.getOperand(0))) { in visitBitCast()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp381 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()
DObjCARC.h133 return isa<BitCastInst>(I) || in IsNoopInstruction()
DObjCARCOpts.cpp57 if (const BitCastInst *BC = dyn_cast<BitCastInst>(Arg)) in FindSingleUseIdentifiedObject()
649 if (isa<BitCastInst>(U)) in OptimizeAutoreleaseRVCall()
913 Op = new BitCastInst(Op, ParamTy, "", InsertPos); in OptimizeIndividualCalls()
1490 new BitCastInst(Arg, ParamTy, "", InsertPt); in MoveCalls()
1501 new BitCastInst(Arg, ParamTy, "", InsertPt); in MoveCalls()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp172 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset,
502 if (BitCastInst *BCI = dyn_cast<BitCastInst>(UI)) { in CanConvertToScalar()
609 if (BitCastInst *CI = dyn_cast<BitCastInst>(User)) { in ConvertUsesToScalar()
1299 if (BitCastInst *BCI = dyn_cast<BitCastInst>(U)) { in tryToMakeAllocaBePromotable()
1317 if (BitCastInst *BCI = dyn_cast<BitCastInst>(InstsToRewrite[i])) { in tryToMakeAllocaBePromotable()
1319 for (BitCastInst::user_iterator I = BCI->user_begin(), E = BCI->user_end(); in tryToMakeAllocaBePromotable()
1615 if (BitCastInst *BC = dyn_cast<BitCastInst>(User)) { in isSafeForScalarRepl()
1681 if (BitCastInst *BC = dyn_cast<BitCastInst>(UI)) { in isSafePHISelectUseForScalarRepl()
1888 if (BitCastInst *BC = dyn_cast<BitCastInst>(User)) { in RewriteForScalarRepl()
1985 BitCastInst *BCI = new BitCastInst(NewAI, AI->getType(), "", NewAI); in RewriteForScalarRepl()
[all …]
DLoadCombine.cpp92 while (isa<BitCastInst>(POP.Pointer) || isa<GetElementPtrInst>(POP.Pointer)) { in getPointerOffsetPair()
103 } else if (auto *BC = dyn_cast<BitCastInst>(POP.Pointer)) in getPointerOffsetPair()
DReg2Mem.cpp86 new BitCastInst(Constant::getNullValue(Type::getInt32Ty(F.getContext())), in INITIALIZE_PASS_DEPENDENCY()
/external/lldb/source/Expression/
DIRDynamicChecks.cpp379 BitCastInst *bit_cast = new BitCastInst(dereferenced_ptr, in InstrumentInstruction()
476 BitCastInst *bit_cast = new BitCastInst(target_object, in InstrumentInstruction()
/external/llvm/lib/Target/PowerPC/
DPPCLoopPreIncPrep.cpp120 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBasePtr)) in IsPtrInBounds()
320 NewBasePtr = new BitCastInst(PtrInc, BasePtr->getType(), in runOnLoop()
367 ReplNewPtr = new BitCastInst(RealNewPtr, Ptr->getType(), in runOnLoop()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp74 if (isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I)) { in isOnlyCopiedFromConstantGlobal()
270 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst()
486 if (auto *BC = dyn_cast<BitCastInst>(LI.user_back())) { in combineLoadToOperationType()
812 if (auto *BC = dyn_cast<BitCastInst>(V)) { in combineStoreToValueType()
933 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst()
989 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())); in visitStoreInst()
1053 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in SimplifyStoreAtEndOfBlock()
DInstCombineVectorOps.cpp218 if (BitCastInst *BCI = dyn_cast<BitCastInst>(EI.getOperand(0))) { in visitExtractElementInst()
222 return new BitCastInst(Elt, EI.getType()); in visitExtractElementInst()
993 SmallVector<BitCastInst *, 8> BCs; in visitShuffleVectorInst()
996 if (BitCastInst *BC = dyn_cast<BitCastInst>(U)) in visitShuffleVectorInst()
1000 for (BitCastInst *BC : BCs) { in visitShuffleVectorInst()
DInstCombineCasts.cpp81 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation()
1377 return new BitCastInst(SrcI, FITy); in FoldItoFPtoI()
1661 static Value *OptimizeIntegerToVectorInsertions(BitCastInst &CI, in OptimizeIntegerToVectorInsertions()
1689 static Instruction *OptimizeIntToFloatBitCast(BitCastInst &CI, InstCombiner &IC, in OptimizeIntToFloatBitCast()
1745 Instruction *InstCombiner::visitBitCast(BitCastInst &CI) { in visitBitCast()
1809 if (BitCastInst *BCIn = dyn_cast<BitCastInst>(SrcCast->getOperand(0))) in visitBitCast()
1851 BitCastInst *Tmp; in visitBitCast()
1855 if (((Tmp = dyn_cast<BitCastInst>(SVI->getOperand(0))) && in visitBitCast()
1857 ((Tmp = dyn_cast<BitCastInst>(SVI->getOperand(1))) && in visitBitCast()
DInstructionCombining.cpp706 if (BitCastInst *BC = dyn_cast<BitCastInst>(&Op)) { in FoldOpIntoSelect()
1732 if (BitCastInst *BC = dyn_cast<BitCastInst>(ASC->getOperand(0))) in visitGetElementPtrInst()
1741 if (BitCastInst *BCI = dyn_cast<BitCastInst>(PtrOp)) { in visitGetElementPtrInst()
1746 if (!isa<BitCastInst>(Operand) && in visitGetElementPtrInst()
1768 return new BitCastInst(Operand, GEP.getType()); in visitGetElementPtrInst()
1787 return new BitCastInst(NGEP, GEP.getType()); in visitGetElementPtrInst()
1886 } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I)) { in visitAllocSite()
/external/mesa3d/src/gallium/drivers/radeon/
DR600KernelParameters.cpp261 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/
DInstructionsTest.cpp328 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()
DValueMapTest.cpp26 std::unique_ptr<BitCastInst> BitcastV;
31 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(getGlobalContext()))), in ValueMapTest()
DValueHandleTest.cpp24 std::auto_ptr<BitCastInst> BitcastV;
28 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(getGlobalContext()))) { in ValueHandle()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp638 } else if (const BitCastInst *CI = dyn_cast<BitCastInst>(U)) { in AllUsesOfValueWillTrapIfNull()
776 isa<BitCastInst>(GlobalUser) || in OptimizeAwayTrappingUsesOfLoads()
854 BitCastInst *TheBC = nullptr; in OptimizeGlobalAddressOfMalloc()
857 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in OptimizeGlobalAddressOfMalloc()
866 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfMalloc()
992 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Inst)) { in ValueIsOnlyUsedLocallyOrStoredToOneGlobal()
1023 } else if (isa<BitCastInst>(U)) { in ReplaceUsesOfMallocWithGlobal()
1540 Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI); in TryToOptimizeStoreOfMallocToGlobal()
1543 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Malloc)) in TryToOptimizeStoreOfMallocToGlobal()
/external/llvm/lib/CodeGen/
DStackProtector.cpp179 } else if (const BitCastInst *BI = dyn_cast<BitCastInst>(U)) { in HasAddressTaken()
DStackColoring.cpp489 BitCastInst *Cast = new BitCastInst(Inst, From->getType()); in remapInstructions()
/external/llvm/lib/IR/
DIRBuilder.cpp50 BitCastInst *BCI = new BitCastInst(Ptr, PT, ""); in getCastedInt8PtrValue()
DInstructions.cpp443 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()
2313 case BitCast: return new BitCastInst (S, Ty, Name, InsertBefore); in Create()
2335 case BitCast: return new BitCastInst (S, Ty, Name, InsertAtEnd); in Create()
2981 BitCastInst::BitCastInst( in BitCastInst() function in BitCastInst
2987 BitCastInst::BitCastInst( in BitCastInst() function in BitCastInst
3622 BitCastInst *BitCastInst::clone_impl() const { in clone_impl()
3623 return new BitCastInst(getOperand(0), getType()); in clone_impl()
/external/llvm/include/llvm/Analysis/
DPtrUseVisitor.h238 void visitBitCastInst(BitCastInst &BC) { in visitBitCastInst()
/external/llvm/lib/Transforms/Utils/
DGlobalStatus.cpp124 } else if (isa<BitCastInst>(I)) { in analyzeGlobalAux()

123