Home
last modified time | relevance | path

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

1234

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCContract.cpp385 Args[0] = new BitCastInst(Args[0], I8XX, "", Store); in tryToContractReleaseIntoStoreStrong()
387 Args[1] = new BitCastInst(Args[1], I8X, "", Store); in tryToContractReleaseIntoStoreStrong()
629 new BitCastInst(Replacement, UseTy, "", &InsertBB->back()); in run()
646 Replacement = new BitCastInst(Replacement, UseTy, "", in run()
661 if (const BitCastInst *BI = dyn_cast<BitCastInst>(Arg)) in run()
683 SmallVector<BitCastInst *, 2> BitCastUsers; in run()
687 if (auto *BC = dyn_cast<BitCastInst>(U)) in run()
694 if (auto *B = dyn_cast<BitCastInst>(U)) in run()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp94 void combineLoadBitcast(LoadInst *LD, BitCastInst *Bitcast);
95 void combineBitcastStore(BitCastInst *Bitcast, StoreInst *ST);
96 bool transformBitcast(BitCastInst *Bitcast);
170 void X86LowerAMXType::combineLoadBitcast(LoadInst *LD, BitCastInst *Bitcast) { in combineLoadBitcast()
195 void X86LowerAMXType::combineBitcastStore(BitCastInst *Bitcast, StoreInst *ST) { in combineBitcastStore()
227 bool X86LowerAMXType::transformBitcast(BitCastInst *Bitcast) { in transformBitcast()
293 auto *Bitcast = dyn_cast<BitCastInst>(&Inst); in visit()
H A DX86LowerAMXIntrinsics.cpp220 auto *BitCast = cast<BitCastInst>(Tile); in createTileLoadStoreLoops()
303 auto *BitCastAcc = cast<BitCastInst>(Acc); in createTileDPLoops()
309 auto *BitCastLHS = cast<BitCastInst>(LHS); in createTileDPLoops()
312 auto *BitCastRHS = cast<BitCastInst>(RHS); in createTileDPLoops()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp186 if (auto *BC = dyn_cast<BitCastInst>(I.OldInstruction)) { in convertToParamAS()
189 return BitCastInst::Create(BC->getOpcode(), I.NewParam, NewBCType, in convertToParamAS()
241 if (isa<GetElementPtrInst>(V) || isa<BitCastInst>(V) || isa<LoadInst>(V)) in handleByValParam()
H A DNVPTXLowerAlloca.cpp107 auto BI = dyn_cast<BitCastInst>(AllocaUse.getUser()); in runOnFunction()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRDynamicChecks.cpp339 BitCastInst *bit_cast = in InstrumentInstruction()
340 new BitCastInst(dereferenced_ptr, GetI8PtrTy(), "", inst); in InstrumentInstruction()
430 BitCastInst *bit_cast = in InstrumentInstruction()
431 new BitCastInst(target_object, GetI8PtrTy(), "", inst); in InstrumentInstruction()
H A DIRForTarget.cpp1560 return new BitCastInst( in UnfoldConstant()
1782 BitCastInst *bit_cast = new BitCastInst( in ReplaceVariables()
1792 BitCastInst *bit_cast = new BitCastInst( in ReplaceVariables()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp39 if (isa<BitCastInst>(User)) { in findCallsAtConstantOffset()
58 if (isa<BitCastInst>(User)) { in findLoadCallsAtConstantOffset()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAbstractMemberAccess.cpp155 void traceBitCast(BitCastInst *BitCast, CallInst *Parent,
481 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceAICall()
505 void BPFAbstractMemberAccess::traceBitCast(BitCastInst *BitCast, in traceBitCast()
513 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceBitCast()
543 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceGEP()
1042 auto *BCInst = new BitCastInst(Base, Type::getInt8PtrTy(BB->getContext())); in transformGEPChain()
1051 auto *BCInst2 = new BitCastInst(GEP, Call->getType()); in transformGEPChain()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp66 if (isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I)) { in isOnlyCopiedFromConstantMemory()
269 } else if (isa<GetElementPtrInst>(Inst) || isa<BitCastInst>(Inst)) { in collectUsers()
316 } else if (auto *BC = dyn_cast<BitCastInst>(I)) { in replace()
321 auto *NewI = new BitCastInst(V, NewT); in replace()
402 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst()
610 if (auto *BC = dyn_cast<BitCastInst>(LI.user_back())) { in combineLoadToOperationType()
1138 if (auto *BC = dyn_cast<BitCastInst>(V)) { in combineStoreToValueType()
1412 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst()
1505 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in mergeStoreIntoSuccessor()
H A DInstCombineCasts.cpp2390 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect()
2501 auto *BCI = dyn_cast<BitCastInst>(IncValue); in optimizeBitCastFromPhi()
2521 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2564 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2596 else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2668 Instruction *InstCombinerImpl::visitBitCast(BitCastInst &CI) { in visitBitCast()
2707 if (BitCastInst *BCIn = dyn_cast<BitCastInst>(SrcCast->getOperand(0))) in visitBitCast()
2737 return new BitCastInst(InsElt->getOperand(1), DestTy); in visitBitCast()
2751 BitCastInst *Tmp; in visitBitCast()
2755 if (((Tmp = dyn_cast<BitCastInst>(ShufOp0)) && in visitBitCast()
[all …]
H A DInstCombineVectorOps.cpp193 return new BitCastInst(Elt, DestTy); in foldBitcastExtElt()
264 return new BitCastInst(Builder.CreateTrunc(Scalar, DestIntTy), DestTy); in foldBitcastExtElt()
1425 return new BitCastInst(NewInsElt, IE.getType()); in visitInsertElementInst()
1440 return new BitCastInst(NewInsElt, IE.getType()); in visitInsertElementInst()
2155 return new BitCastInst(X, Shuf.getType()); in foldIdentityExtractShuffle()
2377 return new BitCastInst(V, SVI.getType()); in visitShuffleVectorInst()
2408 return BitCastInst::Create(Instruction::BitCast, V, SVI.getType()); in visitShuffleVectorInst()
2507 SmallVector<BitCastInst *, 8> BCs; in visitShuffleVectorInst()
2510 if (BitCastInst *BC = dyn_cast<BitCastInst>(U)) in visitShuffleVectorInst()
2514 for (BitCastInst *BC : BCs) { in visitShuffleVectorInst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPrintfRuntimeBinding.cpp380 new BitCastInst(BufferIdx, idPointer, "PrintBuffIdCast", Brnch); in lowerPrintfForGpu()
416 Arg = new BitCastInst(Arg, IType, "PrintArgFP", Brnch); in lowerPrintfForGpu()
508 Arg = new BitCastInst(Arg, IType, "PrintArgVect", Brnch); in lowerPrintfForGpu()
522 new BitCastInst(BufferIdx, ArgPointer, "PrintBuffPtrCast", Brnch); in lowerPrintfForGpu()
H A DAMDGPULowerKernelAttributes.cpp95 auto *BCI = dyn_cast<BitCastInst>(*U->user_begin()); in processUse()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DStripGCRelocates.cpp49 ReplaceGCRel = new BitCastInst(OrigPtr, GCRel->getType(), "cast", GCRel); in stripGCRelocates()
H A DBypassSlowDivision.cpp205 if (!C && isa<BitCastInst>(Op1)) in isHashLikeValue()
206 C = dyn_cast<ConstantInt>(cast<BitCastInst>(Op1)->getOperand(0)); in isHashLikeValue()
397 if (auto *BCI = dyn_cast<BitCastInst>(Divisor)) in insertFastDivAndRem()
H A DGlobalStatus.cpp139 } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I) || in analyzeGlobalAux()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp256 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBasePtr)) in IsPtrInBounds()
580 NewBasePtr = new BitCastInst( in rewriteLoadStores()
607 new BitCastInst(NewPHI, BasePtr->getType(), in rewriteLoadStores()
662 ReplNewPtr = new BitCastInst(RealNewPtr, Ptr->getType(), in rewriteLoadStores()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackColoring.cpp973 BitCastInst *Cast = new BitCastInst(Inst, From->getType()); in remapInstructions()
1000 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Use.get())) in remapInstructions()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReg2Mem.cpp66 CastInst *AllocaInsertionPoint = new BitCastInst( in runPass()
H A DConstantHoisting.cpp764 Base = new BitCastInst(Base, Int8PtrTy, "base_bitcast", InsertionPt); in emitBaseConstants()
767 Mat = new BitCastInst(Mat, Ty, "mat_bitcast", InsertionPt); in emitBaseConstants()
890 Base = new BitCastInst(ConstInfo.BaseExpr, Ty, "const", IP); in emitBaseConstants()
893 Base = new BitCastInst(ConstInfo.BaseInt, Ty, "const", IP); in emitBaseConstants()
H A DCallSiteSplitting.cpp246 BitCastInst* BCI = dyn_cast<BitCastInst>(&*II); in copyMustTailReturn()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h254 void visitBitCastInst(BitCastInst &BC) { in visitBitCastInst()
H A DObjCARCAnalysisUtils.h137 return isa<BitCastInst>(I) || in IsNoopInstruction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp693 } else if (const BitCastInst *CI = dyn_cast<BitCastInst>(U)) { in AllUsesOfValueWillTrapIfNull()
842 isa<BitCastInst>(GlobalUser) || in OptimizeAwayTrappingUsesOfLoads()
920 BitCastInst *TheBC = nullptr; in OptimizeGlobalAddressOfMalloc()
923 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in OptimizeGlobalAddressOfMalloc()
932 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfMalloc()
1041 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Inst)) { in valueIsOnlyUsedLocallyOrStoredToOneGlobal()

1234