Home
last modified time | relevance | path

Searched refs:CreateBitCast (Results 1 – 25 of 63) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLowerMemIntrinsics.cpp63 SrcAddr = PLBuilder.CreateBitCast(SrcAddr, SrcOpType); in createMemCpyLoopKnownSize()
66 DstAddr = PLBuilder.CreateBitCast(DstAddr, DstOpType); in createMemCpyLoopKnownSize()
114 : RBuilder.CreateBitCast(SrcAddr, SrcPtrType); in createMemCpyLoopKnownSize()
123 : RBuilder.CreateBitCast(DstAddr, DstPtrType); in createMemCpyLoopKnownSize()
159 SrcAddr = PLBuilder.CreateBitCast(SrcAddr, SrcOpType); in createMemCpyLoopUnknownSize()
162 DstAddr = PLBuilder.CreateBitCast(DstAddr, DstOpType); in createMemCpyLoopUnknownSize()
231 ResBuilder.CreateBitCast(SrcAddr, PointerType::get(Int8Type, SrcAS)); in createMemCpyLoopUnknownSize()
233 ResBuilder.CreateBitCast(DstAddr, PointerType::get(Int8Type, DstAS)); in createMemCpyLoopUnknownSize()
383 DstAddr = Builder.CreateBitCast(DstAddr, in createMemSetLoop()
DVNCoercion.cpp71 StoredVal = Helper.CreateBitCast(StoredVal, LoadedTy); in coerceAvailableValueToLoadTypeHelper()
84 StoredVal = Helper.CreateBitCast(StoredVal, TypeToCastTo); in coerceAvailableValueToLoadTypeHelper()
112 StoredVal = Helper.CreateBitCast(StoredVal, StoredValTy); in coerceAvailableValueToLoadTypeHelper()
134 StoredVal = Helper.CreateBitCast(StoredVal, LoadedTy); in coerceAvailableValueToLoadTypeHelper()
365 SrcVal = Helper.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize * 8)); in getStoreValueForLoadHelper()
431 PtrVal = Builder.CreateBitCast(PtrVal, DestPTy); in getLoadValueForLoad()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAutoUpgrade.cpp899 Op = Builder.CreateBitCast(Op, VecTy, "cast"); in UpgradeX86PSLLDQIntrinsics()
921 return Builder.CreateBitCast(Res, ResultTy, "cast"); in UpgradeX86PSLLDQIntrinsics()
933 Op = Builder.CreateBitCast(Op, VecTy, "cast"); in UpgradeX86PSRLDQIntrinsics()
955 return Builder.CreateBitCast(Res, ResultTy, "cast"); in UpgradeX86PSRLDQIntrinsics()
962 Mask = Builder.CreateBitCast(Mask, MaskTy); in getX86MaskVec()
999 Mask = Builder.CreateBitCast(Mask, MaskTy); in EmitX86ScalarSelect()
1109 : Builder.CreateBitCast(CI.getArgOperand(1), in UpgradeX86VPERMT2Intrinsics()
1238 Ptr = Builder.CreateBitCast(Ptr, in UpgradeMaskedStore()
1259 Ptr = Builder.CreateBitCast(Ptr, llvm::PointerType::getUnqual(ValTy)); in UpgradeMaskedLoad()
1305 Value *LHS = Builder.CreateBitCast(CI.getArgOperand(0), Ty); in upgradePMULDQ()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DScalarizeMaskedMemIntrin.cpp158 Value *FirstEltPtr = Builder.CreateBitCast(Ptr, NewPtrType); in scalarizeMaskedLoad()
182 SclrMask = Builder.CreateBitCast(Mask, SclrMaskTy, "scalar_mask"); in scalarizeMaskedLoad()
294 Value *FirstEltPtr = Builder.CreateBitCast(Ptr, NewPtrType); in scalarizeMaskedStore()
314 SclrMask = Builder.CreateBitCast(Mask, SclrMaskTy, "scalar_mask"); in scalarizeMaskedStore()
432 SclrMask = Builder.CreateBitCast(Mask, SclrMaskTy, "scalar_mask"); in scalarizeMaskedGather()
554 SclrMask = Builder.CreateBitCast(Mask, SclrMaskTy, "scalar_mask"); in scalarizeMaskedScatter()
643 SclrMask = Builder.CreateBitCast(Mask, SclrMaskTy, "scalar_mask"); in scalarizeMaskedExpandLoad()
751 SclrMask = Builder.CreateBitCast(Mask, SclrMaskTy, "scalar_mask"); in scalarizeMaskedCompressStore()
DAtomicExpandPass.cpp383 Value *NewAddr = Builder.CreateBitCast(Addr, PT); in convertAtomicLoadToIntegerType()
391 Value *NewVal = Builder.CreateBitCast(NewLI, LI->getType()); in convertAtomicLoadToIntegerType()
465 Value *NewVal = Builder.CreateBitCast(SI->getValueOperand(), NewTy); in convertAtomicStoreToIntegerType()
470 Value *NewAddr = Builder.CreateBitCast(Addr, PT); in convertAtomicStoreToIntegerType()
509 Addr = Builder.CreateBitCast(Addr, IntTy->getPointerTo(AS)); in createCmpXchgInstFun()
510 NewVal = Builder.CreateBitCast(NewVal, IntTy); in createCmpXchgInstFun()
511 Loaded = Builder.CreateBitCast(Loaded, IntTy); in createCmpXchgInstFun()
521 NewLoaded = Builder.CreateBitCast(NewLoaded, OrigTy); in createCmpXchgInstFun()
1064 Value *NewAddr = Builder.CreateBitCast(Addr, PT); in convertCmpXchgToIntegerType()
1707 Value *PtrVal = Builder.CreateBitCast(PointerOperand, in expandAtomicOpToLibcall()
[all …]
DExpandMemCmp.cpp272 ByteType, Builder.CreateBitCast(Source, ByteType->getPointerTo()), in getPtrToElementAtOffset()
275 return Builder.CreateBitCast(Source, LoadSizeType->getPointerTo()); in getPtrToElementAtOffset()
576 Source1 = Builder.CreateBitCast(Source1, LoadSizeType->getPointerTo()); in getMemCmpOneBlock()
578 Source2 = Builder.CreateBitCast(Source2, LoadSizeType->getPointerTo()); in getMemCmpOneBlock()
DSjLjEHPrepare.cpp213 Builder.CreateBitCast(PersonalityFn, Builder.getInt8PtrTy()), in setupFunctionContext()
412 Value *FuncCtxArg = Builder.CreateBitCast(FuncCtx, Builder.getInt8PtrTy()); in setupEntryBlockAndCallSites()
DPreISelIntrinsicLowering.cpp48 Value *OffsetPtrI32 = B.CreateBitCast(OffsetPtr, Int32PtrTy); in lowerLoadRelative()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86WinEHState.cpp373 Value *FI8 = Builder.CreateBitCast(F, Type::getInt8PtrTy(F->getContext())); in emitEHLSDA()
408 Builder.CreateBitCast(PersonalityFn, TargetFuncTy->getPointerTo()); in generateLSDAInEAXThunk()
427 Value *HandlerI8 = Builder.CreateBitCast(Handler, Builder.getInt8PtrTy()); in linkExceptionRegistration()
485 Builder.CreateBitCast(CS.getArgOperand(0), Builder.getInt8PtrTy())); in rewriteSetJmpCallSite()
637 Value *RegNodeI8 = Builder.CreateBitCast(RegNode, Builder.getInt8PtrTy()); in addStateStores()
645 Builder.CreateBitCast(EHGuardNode, Builder.getInt8PtrTy()); in addStateStores()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULowerKernelArguments.cpp160 ArgPtr = Builder.CreateBitCast(ArgPtr, AdjustedArgTy->getPointerTo(AS), in runOnFunction()
208 Value *NewVal = Builder.CreateBitCast(Trunc, ArgTy, in runOnFunction()
DAMDGPURewriteOutArguments.cpp415 Val = B.CreateBitCast(Val, EffectiveEltTy); in runOnFunction()
464 Value *PtrVal = B.CreateBitCast(&Arg, PtrTy); in runOnFunction()
DAMDGPUAtomicOptimizer.cpp463 Value *const BitCast = B.CreateBitCast(Ballot, VecTy); in optimizeAtomic()
506 NewV = B.CreateBitCast(Insert, Ty); in optimizeAtomic()
605 BroadcastI = B.CreateBitCast(Insert, Ty); in optimizeAtomic()
DAMDGPUPromoteAlloca.cpp247 Value *CastDispatchPtr = Builder.CreateBitCast( in getLocalSizeYZ()
434 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector()
449 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroEarly.cpp100 auto *BCI = Builder.CreateBitCast(Operand, FramePtrTy); in lowerCoroDone()
138 auto *NoopCoroVoidPtr = Builder.CreateBitCast(NoopCoro, Int8Ptr); in lowerCoroNoop()
DCoroSplit.cpp628 return Builder.CreateBitCast(NewStorage, FramePtrTy); in deriveNewFramePointer()
632 Builder.CreateBitCast(NewStorage, FramePtrTy->getPointerTo()); in deriveNewFramePointer()
735 auto *NewVFrame = Builder.CreateBitCast( in create()
998 auto *VFrame = Builder.CreateBitCast(Frame, Builder.getInt8PtrTy()); in handleNoSuspendCoroutine()
1230 Builder.CreateBitCast(RawFramePtr, Shape.CoroBegin->getType()); in splitRetconCoroutine()
1233 auto Dest = Builder.CreateBitCast(Id->getStorage(), in splitRetconCoroutine()
1299 Builder.CreateBitCast(ReturnPHIs[0], CastedContinuationTy); in splitRetconCoroutine()
DCoroCleanup.cpp50 auto *FramePtr = Builder.CreateBitCast(FrameRaw, FramePtrTy); in lowerSubFn()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp190 Value *Src = Builder.CreateBitCast(MI->getArgOperand(1), NewSrcPtrTy); in SimplifyAnyMemTransfer()
191 Value *Dest = Builder.CreateBitCast(MI->getArgOperand(0), NewDstPtrTy); in SimplifyAnyMemTransfer()
274 Dest = Builder.CreateBitCast(Dest, NewDstPtrTy); in SimplifyAnyMemSet()
639 Value *Res = Builder.CreateBitCast(Arg, IntegerVecTy); in simplifyX86movmsk()
641 Res = Builder.CreateBitCast(Res, IntegerTy); in simplifyX86movmsk()
794 Builder.CreateBitCast(Op0, ShufTy), in simplifyX86extrq()
796 return Builder.CreateBitCast(SV, II.getType()); in simplifyX86extrq()
874 Value *SV = Builder.CreateShuffleVector(Builder.CreateBitCast(Op0, ShufTy), in simplifyX86insertq()
875 Builder.CreateBitCast(Op1, ShufTy), in simplifyX86insertq()
877 return Builder.CreateBitCast(SV, II.getType()); in simplifyX86insertq()
[all …]
DInstCombineCasts.cpp154 Value *NewCast = AllocaBuilder.CreateBitCast(New, AI.getType(), "tmpcast"); in PromoteCastOfAllocation()
484 VecInput = IC.Builder.CreateBitCast(VecInput, VecType, "bc"); in foldVecTruncToExtElt()
1882 InVal = IC.Builder.CreateBitCast(InVal, SrcTy); in optimizeVectorResizeWithIntegerBitCasts()
2110 auto *NewBC = IC.Builder.CreateBitCast(ExtElt->getVectorOperand(), in canonicalizeBitCastExtElt()
2135 Value *CastedOp1 = Builder.CreateBitCast(BO->getOperand(1), DestTy); in foldBitCastBitwiseLogic()
2142 Value *CastedOp0 = Builder.CreateBitCast(BO->getOperand(0), DestTy); in foldBitCastBitwiseLogic()
2153 Value *CastedOp0 = Builder.CreateBitCast(BO->getOperand(0), DestTy); in foldBitCastBitwiseLogic()
2191 Value *CastedVal = Builder.CreateBitCast(FVal, DestTy); in foldBitCastSelect()
2198 Value *CastedVal = Builder.CreateBitCast(TVal, DestTy); in foldBitCastSelect()
2360 cast<BitCastInst>(Builder.CreateBitCast(NewPN, SrcTy)); in optimizeBitCastFromPhi()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DScalarizer.cpp275 CV[0] = Builder.CreateBitCast(V, NewPtrTy, V->getName() + ".i0"); in operator []()
697 Res[I] = Builder.CreateBitCast(Op0[I], DstVT->getElementType(), in visitBitCastInst()
713 V = Builder.CreateBitCast(V, MidTy, V->getName() + ".cast"); in visitBitCastInst()
729 Res[ResI] = Builder.CreateBitCast(V, DstVT->getElementType(), in visitBitCastInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/CFGuard/
DCFGuard.cpp175 {B.CreateBitCast(CalledOperand, B.getInt8PtrTy())}); in insertCFGuardCheck()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp1380 return IRB.CreateBitCast(V, NoVecTy); in convertToShadowTyNoVec()
1905 setShadow(&I, IRB.CreateBitCast(getShadow(&I, 0), getShadowTy(&I))); in visitBitCastInst()
2093 Value *V1 = IRB.CreateBitCast(V, Type::getIntNTy(*MS.C, srcSizeInBits)); in CreateShadowCast()
2096 return IRB.CreateBitCast(V2, dstTy); in CreateShadowCast()
2108 return IRB.CreateBitCast(V, ShadowTy); in CreateAppToShadowCast()
2720 {IRB.CreateBitCast(S1, V1->getType()), V2}); in handleVectorShiftIntrinsic()
2721 Shift = IRB.CreateBitCast(Shift, getShadowTy(&I)); in handleVectorShiftIntrinsic()
2786 S1 = IRB.CreateBitCast(S1, T); in handleVectorPackIntrinsic()
2787 S2 = IRB.CreateBitCast(S2, T); in handleVectorPackIntrinsic()
2795 S1_ext = IRB.CreateBitCast(S1_ext, X86_MMXTy); in handleVectorPackIntrinsic()
[all …]
DDataFlowSanitizer.cpp1246 IRB.CreateBitCast(ShadowAddr, Type::getInt64PtrTy(*DFS.Ctx)); in loadShadow()
1349 IRB.CreateBitCast(ShadowAddr, PointerType::getUnqual(ShadowTy)); in storeShadow()
1364 IRB.CreateBitCast(ShadowAddr, PointerType::getUnqual(ShadowVecTy)); in storeShadow()
1489 {ValShadow, IRB.CreateBitCast(I.getDest(), Type::getInt8PtrTy( in visitMemSetInst()
1502 DestShadow = IRB.CreateBitCast(DestShadow, Int8Ptr); in visitMemTransferInst()
1503 SrcShadow = IRB.CreateBitCast(SrcShadow, Int8Ptr); in visitMemTransferInst()
1609 IRB.CreateBitCast(*i, Type::getInt8PtrTy(*DFSF.DFS.Ctx))); in visitCallSite()
1714 IRB.CreateBitCast(CS.getCalledValue(), PointerType::getUnqual(NewFT)); in visitCallSite()
DInstrProfiling.cpp616 Builder.CreateBitCast(DataVar, Builder.getInt8PtrTy()), in lowerValueProfileInst()
622 Builder.CreateBitCast(DataVar, Builder.getInt8PtrTy()), in lowerValueProfileInst()
965 IRB.CreateCall(RuntimeRegisterF, IRB.CreateBitCast(Data, VoidPtrTy)); in emitRegistration()
974 IRB.CreateCall(NamesRegisterF, {IRB.CreateBitCast(NamesVar, VoidPtrTy), in emitRegistration()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DWholeProgramDevirt.cpp1134 Args.push_back(IRB.CreateBitCast(VCallSite.VTable, Int8PtrTy)); in applyICallBranchFunnel()
1140 NewCS = IRB.CreateCall(NewFT, IRB.CreateBitCast(JT, NewFTPtr), Args); in applyICallBranchFunnel()
1143 NewFT, IRB.CreateBitCast(JT, NewFTPtr), in applyICallBranchFunnel()
1319 B.CreateBitCast(Call.VTable, Int8PtrTy), UniqueMemberAddr); in applyUniqueRetValOpt()
1387 B.CreateGEP(Int8Ty, B.CreateBitCast(Call.VTable, Int8PtrTy), Byte); in applyVirtualConstProp()
1395 Value *ValAddr = B.CreateBitCast(Addr, RetType->getPointerTo()); in applyVirtualConstProp()
1644 Value *GEPPtr = LoadB.CreateBitCast(GEP, PointerType::getUnqual(Int8PtrTy)); in scanTypeCheckedLoadUsers()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp1057 Extract = Builder.CreateBitCast(Extract, StoreTy->getScalarType()); in vectorizeStoreChain()
1080 Builder.CreateBitCast(S0->getPointerOperand(), VecTy->getPointerTo(AS)), in vectorizeStoreChain()
1196 Builder.CreateBitCast(L0->getPointerOperand(), VecTy->getPointerTo(AS)); in vectorizeLoadChain()
1214 V = Builder.CreateBitCast(V, UI->getType()); in vectorizeLoadChain()

123