Home
last modified time | relevance | path

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

1234

/freebsd-14.2/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()
635 new BitCastInst(Replacement, UseTy, "", &InsertBB->back()); in run()
652 Replacement = new BitCastInst(Replacement, UseTy, "", in run()
667 if (const BitCastInst *BI = dyn_cast<BitCastInst>(Arg)) in run()
689 SmallVector<BitCastInst *, 2> BitCastUsers; in run()
693 if (auto *BC = dyn_cast<BitCastInst>(U)) in run()
700 if (auto *B = dyn_cast<BitCastInst>(U)) in run()
H A DObjCARCOpts.cpp93 if (const BitCastInst *BC = dyn_cast<BitCastInst>(Arg)) in FindSingleUseIdentifiedObject()
734 if (isa<BitCastInst>(U)) in OptimizeAutoreleaseRVCall()
1154 Op = new BitCastInst(Op, ParamTy, "", InsertPos); in OptimizeIndividualCallImpl()
1772 new BitCastInst(Arg, ParamTy, "", InsertPt); in MoveCalls()
1787 new BitCastInst(Arg, ParamTy, "", InsertPt); in MoveCalls()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp192 if (auto *BC = dyn_cast<BitCastInst>(I.OldInstruction)) { in INITIALIZE_PASS_DEPENDENCY()
194 return BitCastInst::Create(BC->getOpcode(), I.NewParam, NewBCType, in INITIALIZE_PASS_DEPENDENCY()
284 if (auto *I = dyn_cast<BitCastInst>(CurUser)) { in adjustByValArgAlignment()
326 if (isa<GetElementPtrInst>(V) || isa<BitCastInst>(V) || isa<LoadInst>(V)) in handleByValParam()
H A DNVPTXLowerAlloca.cpp104 auto BI = dyn_cast<BitCastInst>(AllocaUse.getUser()); in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DStripGCRelocates.cpp45 ReplaceGCRel = new BitCastInst(OrigPtr, GCRel->getType(), "cast", GCRel); in stripGCRelocates()
H A DBypassSlowDivision.cpp203 if (!C && isa<BitCastInst>(Op1)) in isHashLikeValue()
204 C = dyn_cast<ConstantInt>(cast<BitCastInst>(Op1)->getOperand(0)); in isHashLikeValue()
395 if (auto *BCI = dyn_cast<BitCastInst>(Divisor)) in insertFastDivAndRem()
H A DGlobalStatus.cpp146 } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I) || in analyzeGlobalAux()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp38 if (isa<BitCastInst>(User)) { in findCallsAtConstantOffset()
57 if (isa<BitCastInst>(User)) { in findLoadCallsAtConstantOffset()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp228 void combineLoadBitcast(LoadInst *LD, BitCastInst *Bitcast);
229 void combineBitcastStore(BitCastInst *Bitcast, StoreInst *ST);
230 bool transformBitcast(BitCastInst *Bitcast);
238 void X86LowerAMXType::combineLoadBitcast(LoadInst *LD, BitCastInst *Bitcast) { in combineLoadBitcast()
262 void X86LowerAMXType::combineBitcastStore(BitCastInst *Bitcast, StoreInst *ST) { in combineBitcastStore()
294 bool X86LowerAMXType::transformBitcast(BitCastInst *Bitcast) { in transformBitcast()
359 auto *Bitcast = dyn_cast<BitCastInst>(&Inst); in visit()
H A DX86LowerAMXIntrinsics.cpp218 auto *BitCast = cast<BitCastInst>(Tile); in createTileLoadStoreLoops()
301 auto *BitCastAcc = cast<BitCastInst>(Acc); in createTileDPLoops()
307 auto *BitCastLHS = cast<BitCastInst>(LHS); in createTileDPLoops()
310 auto *BitCastRHS = cast<BitCastInst>(RHS); in createTileDPLoops()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAbstractMemberAccess.cpp165 void traceBitCast(BitCastInst *BitCast, CallInst *Parent,
549 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceAICall()
573 void BPFAbstractMemberAccess::traceBitCast(BitCastInst *BitCast, in traceBitCast()
581 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceBitCast()
611 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceGEP()
1120 new BitCastInst(Base, PointerType::getUnqual(BB->getContext())); in transformGEPChain()
1129 auto *BCInst2 = new BitCastInst(GEP, Call->getType()); in transformGEPChain()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp2352 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect()
2463 auto *BCI = dyn_cast<BitCastInst>(IncValue); in optimizeBitCastFromPhi()
2483 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2526 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2558 else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2579 Instruction *InstCombinerImpl::visitBitCast(BitCastInst &CI) { in visitBitCast()
2605 if (BitCastInst *BCIn = dyn_cast<BitCastInst>(SrcCast->getOperand(0))) in visitBitCast()
2635 return new BitCastInst(InsElt->getOperand(1), DestTy); in visitBitCast()
2673 BitCastInst *Tmp; in visitBitCast()
2677 if (((Tmp = dyn_cast<BitCastInst>(ShufOp0)) && in visitBitCast()
[all …]
H A DInstCombineVectorOps.cpp216 return new BitCastInst(Trunc, DestTy); in foldBitcastExtElt()
232 return new BitCastInst(Elt, DestTy); in foldBitcastExtElt()
314 return new BitCastInst(Builder.CreateTrunc(Scalar, DestIntTy), DestTy); in foldBitcastExtElt()
1595 return new BitCastInst(NewInsert, VTy); in foldTruncInsEltPair()
1639 return new BitCastInst(NewInsElt, IE.getType()); in visitInsertElementInst()
1654 return new BitCastInst(NewInsElt, IE.getType()); in visitInsertElementInst()
2544 return new BitCastInst(X, Shuf.getType()); in foldIdentityExtractShuffle()
2804 return new BitCastInst(V, SVI.getType()); in visitShuffleVectorInst()
2930 SmallVector<BitCastInst *, 8> BCs; in visitShuffleVectorInst()
2933 if (BitCastInst *BC = dyn_cast<BitCastInst>(U)) in visitShuffleVectorInst()
[all …]
H A DInstCombineLoadStoreAlloca.cpp89 if (isa<BitCastInst, AddrSpaceCastInst>(I)) { in isOnlyCopiedFromConstantMemory()
335 } else if (isa<GetElementPtrInst, BitCastInst>(Inst)) { in collectUsersRecursive()
392 } else if (auto *BC = dyn_cast<BitCastInst>(I)) { in replace()
397 auto *NewI = new BitCastInst(V, NewT); in replace()
670 if (auto *BC = dyn_cast<BitCastInst>(Load.user_back())) { in combineLoadToOperationType()
1193 if (auto *BC = dyn_cast<BitCastInst>(V)) { in combineStoreToValueType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp114 auto *BCI = dyn_cast<BitCastInst>(U); in processUse()
119 BCI = dyn_cast<BitCastInst>(*U->user_begin()); in processUse()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp358 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBasePtr)) in IsPtrInBounds()
741 new BitCastInst(PtrInc, BasePtr->getType(), in rewriteForBase()
765 NewBasePtr = new BitCastInst(NewPHI, BasePtr->getType(), in rewriteForBase()
818 ReplNewPtr = new BitCastInst(RealNewPtr, Ptr->getType(), in rewriteForBucketElement()
1187 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBaseI)) in getNodeForInc()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DSVEIntrinsicOpts.cpp317 auto *BitCast = dyn_cast<BitCastInst>(IntrI->getOperand(0)); in optimizePredicateStore()
359 auto *BitCast = dyn_cast<BitCastInst>(I); in optimizePredicateLoad()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReg2Mem.cpp65 CastInst *AllocaInsertionPoint = new BitCastInst( in runPass()
H A DCallSiteSplitting.cpp244 BitCastInst* BCI = dyn_cast<BitCastInst>(&*II); in copyMustTailReturn()
H A DConstantHoisting.cpp764 Mat = new BitCastInst(Mat, Adj->Ty, "mat_bitcast", Adj->MatInsertPt); in emitBaseConstants()
887 Base = new BitCastInst(ConstInfo.BaseExpr, Ty, "const", IP); in emitBaseConstants()
890 Base = new BitCastInst(ConstInfo.BaseInt, Ty, "const", IP); in emitBaseConstants()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackColoring.cpp941 BitCastInst *Cast = new BitCastInst(Inst, From->getType()); in remapInstructions()
968 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Use.get())) in remapInstructions()
H A DInterleavedLoadCombinePass.cpp720 BitCastInst *BCI = dyn_cast<BitCastInst>(V); in compute()
732 static bool computeFromBCI(BitCastInst *BCI, VectorInfo &Result, in computeFromBCI()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp91 Instruction *visitBitCastInst(BitCastInst &I);
258 Instruction *SPIRVEmitIntrinsics::visitBitCastInst(BitCastInst &I) { in visitBitCastInst()
303 while (BitCastInst *BC = dyn_cast<BitCastInst>(Pointer)) in insertPtrCastInstr()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h247 void visitBitCastInst(BitCastInst &BC) { in visitBitCastInst()
H A DObjCARCAnalysisUtils.h140 return isa<BitCastInst>(I) || in IsNoopInstruction()

1234