Home
last modified time | relevance | path

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

1234

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp422 Args[0] = new BitCastInst(Args[0], I8XX, "", Store); in tryToContractReleaseIntoStoreStrong()
424 Args[1] = new BitCastInst(Args[1], I8X, "", Store); in tryToContractReleaseIntoStoreStrong()
668 new BitCastInst(Replacement, UseTy, "", &InsertBB->back()); in runOnFunction()
685 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction()
701 if (const BitCastInst *BI = dyn_cast<BitCastInst>(Arg)) in runOnFunction()
723 SmallVector<BitCastInst *, 2> BitCastUsers; in runOnFunction()
727 if (auto *BC = dyn_cast<BitCastInst>(U)) in runOnFunction()
734 if (auto *B = dyn_cast<BitCastInst>(U)) in runOnFunction()
DObjCARCOpts.cpp95 if (const BitCastInst *BC = dyn_cast<BitCastInst>(Arg)) in FindSingleUseIdentifiedObject()
732 if (isa<BitCastInst>(U)) in OptimizeAutoreleaseRVCall()
1144 Op = new BitCastInst(Op, ParamTy, "", InsertPos); in OptimizeIndividualCallImpl()
1701 new BitCastInst(Arg, ParamTy, "", InsertPt); in MoveCalls()
1714 new BitCastInst(Arg, ParamTy, "", InsertPt); in MoveCalls()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
DBPFAbstractMemberAccess.cpp147 void traceBitCast(BitCastInst *BitCast, CallInst *Parent,
414 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceAICall()
438 void BPFAbstractMemberAccess::traceBitCast(BitCastInst *BitCast, in traceBitCast()
446 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceBitCast()
476 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceGEP()
898 auto *BCInst = new BitCastInst(Base, Type::getInt8PtrTy(BB->getContext())); in transformGEPChain()
907 auto *BCInst2 = new BitCastInst(GEP, Call->getType()); in transformGEPChain()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DEntryExitInstrumenter.cpp100 if (BitCastInst *BCI = dyn_cast_or_null<BitCastInst>(Prev)) in runOnFunction()
DStripGCRelocates.cpp63 ReplaceGCRel = new BitCastInst(OrigPtr, GCRel->getType(), "cast", GCRel); in runOnFunction()
DBypassSlowDivision.cpp205 if (!C && isa<BitCastInst>(Op1)) in isHashLikeValue()
206 C = dyn_cast<ConstantInt>(cast<BitCastInst>(Op1)->getOperand(0)); in isHashLikeValue()
394 if (auto *BCI = dyn_cast<BitCastInst>(Divisor)) in insertFastDivAndRem()
DGlobalStatus.cpp140 } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I)) { in analyzeGlobalAux()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DTypeMetadataUtils.cpp37 if (isa<BitCastInst>(User)) { in findCallsAtConstantOffset()
56 if (isa<BitCastInst>(User)) { in findLoadCallsAtConstantOffset()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp84 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation()
1748 return new BitCastInst(SrcI, FITy); in FoldItoFPtoI()
2066 static Value *optimizeIntegerToVectorInsertions(BitCastInst &CI, in optimizeIntegerToVectorInsertions()
2095 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt()
2116 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic()
2162 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect()
2267 auto *BCI = dyn_cast<BitCastInst>(IncValue); in optimizeBitCastFromPhi()
2287 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2330 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2360 cast<BitCastInst>(Builder.CreateBitCast(NewPN, SrcTy)); in optimizeBitCastFromPhi()
[all …]
DInstCombineLoadStoreAlloca.cpp79 if (isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I)) { in isOnlyCopiedFromConstantGlobal()
277 } else if (isa<GetElementPtrInst>(Inst) || isa<BitCastInst>(Inst)) { in findLoadAndReplace()
316 } else if (auto *BC = dyn_cast<BitCastInst>(I)) { in replace()
321 auto *NewI = new BitCastInst(V, NewT); in replace()
389 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst()
1160 if (auto *BC = dyn_cast<BitCastInst>(V)) { in combineStoreToValueType()
1437 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst()
1498 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())); in visitStoreInst()
1546 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in mergeStoreIntoSuccessor()
DInstCombineVectorOps.cpp181 return new BitCastInst(Elt, DestTy); in foldBitcastExtElt()
248 return new BitCastInst(Builder.CreateTrunc(Scalar, DestIntTy), DestTy); in foldBitcastExtElt()
1046 return new BitCastInst(NewInsElt, IE.getType()); in visitInsertElementInst()
2006 SmallVector<BitCastInst *, 8> BCs; in visitShuffleVectorInst()
2009 if (BitCastInst *BC = dyn_cast<BitCastInst>(U)) in visitShuffleVectorInst()
2013 for (BitCastInst *BC : BCs) { in visitShuffleVectorInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCLoopInstrFormPrep.cpp258 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBasePtr)) in IsPtrInBounds()
575 NewBasePtr = new BitCastInst( in rewriteLoadStores()
602 new BitCastInst(NewPHI, BasePtr->getType(), in rewriteLoadStores()
653 ReplNewPtr = new BitCastInst(RealNewPtr, Ptr->getType(), in rewriteLoadStores()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUPrintfRuntimeBinding.cpp388 new BitCastInst(BufferIdx, idPointer, "PrintBuffIdCast", Brnch); in lowerPrintfForGpu()
432 Arg = new BitCastInst(Arg, IType, "PrintArgFP", Brnch); in lowerPrintfForGpu()
528 Arg = new BitCastInst(Arg, IType, "PrintArgVect", Brnch); in lowerPrintfForGpu()
542 new BitCastInst(BufferIdx, ArgPointer, "PrintBuffPtrCast", Brnch); in lowerPrintfForGpu()
DAMDGPULowerKernelAttributes.cpp104 auto *BCI = dyn_cast<BitCastInst>(*U->user_begin()); in processUse()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXLowerAlloca.cpp107 auto BI = dyn_cast<BitCastInst>(AllocaUse.getUser()); in runOnFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DReg2Mem.cpp86 CastInst *AllocaInsertionPoint = new BitCastInst( in INITIALIZE_PASS_DEPENDENCY()
DConstantHoisting.cpp752 Base = new BitCastInst(Base, Int8PtrTy, "base_bitcast", InsertionPt); in emitBaseConstants()
755 Mat = new BitCastInst(Mat, Ty, "mat_bitcast", InsertionPt); in emitBaseConstants()
878 Base = new BitCastInst(ConstInfo.BaseExpr, Ty, "const", IP); in emitBaseConstants()
881 Base = new BitCastInst(ConstInfo.BaseInt, Ty, "const", IP); in emitBaseConstants()
DCallSiteSplitting.cpp248 BitCastInst* BCI = dyn_cast<BitCastInst>(&*II); in copyMustTailReturn()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp653 } else if (const BitCastInst *CI = dyn_cast<BitCastInst>(U)) { in AllUsesOfValueWillTrapIfNull()
795 isa<BitCastInst>(GlobalUser) || in OptimizeAwayTrappingUsesOfLoads()
873 BitCastInst *TheBC = nullptr; in OptimizeGlobalAddressOfMalloc()
876 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in OptimizeGlobalAddressOfMalloc()
885 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfMalloc()
1010 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Inst)) { in ValueIsOnlyUsedLocallyOrStoredToOneGlobal()
1040 } else if (isa<BitCastInst>(U)) { in ReplaceUsesOfMallocWithGlobal()
1561 Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI); in tryToOptimizeStoreOfMallocToGlobal()
1564 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Malloc)) in tryToOptimizeStoreOfMallocToGlobal()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DStackColoring.cpp924 BitCastInst *Cast = new BitCastInst(Inst, From->getType()); in remapInstructions()
951 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Use.get())) in remapInstructions()
DInterleavedLoadCombinePass.cpp719 BitCastInst *BCI = dyn_cast<BitCastInst>(V); in compute()
731 static bool computeFromBCI(BitCastInst *BCI, VectorInfo &Result, in computeFromBCI()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DPtrUseVisitor.h255 void visitBitCastInst(BitCastInst &BC) { in visitBitCastInst()
DObjCARCAnalysisUtils.h146 return isa<BitCastInst>(I) || in IsNoopInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroutines.cpp119 new BitCastInst(Call, ResumeFnType->getPointerTo(), "", InsertPt); in makeSubFnCall()
415 auto BCI = new BitCastInst(*SI, *RI, "", Suspend); in buildFrom()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/
DInterpreter.h149 void visitBitCastInst(BitCastInst &I);

1234