Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCContract.cpp680 Replacement = new BitCastInst(Replacement, UseTy, "", in run()
699 new BitCastInst(Replacement, UseTy, "", in run()
713 if (const BitCastInst *BI = dyn_cast<BitCastInst>(Arg)) in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DStripGCRelocates.cpp45 ReplaceGCRel = new BitCastInst(OrigPtr, GCRel->getType(), "cast", GCRel->getIterator()); in stripGCRelocates()
H A DBypassSlowDivision.cpp202 if (!C && isa<BitCastInst>(Op1)) in isHashLikeValue()
203 C = dyn_cast<ConstantInt>(cast<BitCastInst>(Op1)->getOperand(0)); in isHashLikeValue()
394 if (auto *BCI = dyn_cast<BitCastInst>(Divisor)) in insertFastDivAndRem()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp2376 static Value *optimizeIntegerToVectorInsertions(BitCastInst &CI, in optimizeIntegerToVectorInsertions()
2410 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt()
2437 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic()
2509 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect()
2620 auto *BCI = dyn_cast<BitCastInst>(IncValue); in optimizeBitCastFromPhi()
2640 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2683 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2710 cast<BitCastInst>(Builder.CreateBitCast(NewPN, SrcTy)); in optimizeBitCastFromPhi()
2715 else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2738 static Value *foldCopySignIdioms(BitCastInst &CI, in foldCopySignIdioms()
[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()
1681 return new BitCastInst(NewInsert, VTy); in foldTruncInsEltPair()
1725 return new BitCastInst(NewInsElt, IE.getType()); in visitInsertElementInst()
1740 return new BitCastInst(NewInsElt, IE.getType()); in visitInsertElementInst()
2647 return new BitCastInst(X, Shuf.getType()); in foldIdentityExtractShuffle()
2907 return new BitCastInst(V, SVI.getType()); in visitShuffleVectorInst()
2929 return BitCastInst::Create(Instruction::BitCast, V, SVI.getType()); in visitShuffleVectorInst()
3042 SmallVector<BitCastInst *, 8> BCs; in visitShuffleVectorInst()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp349 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBasePtr)) in IsPtrInBounds()
732 new BitCastInst(PtrInc, BasePtr->getType(), in rewriteForBase()
756 NewBasePtr = new BitCastInst(NewPHI, BasePtr->getType(), in rewriteForBase()
814 ReplNewPtr = new BitCastInst(RealNewPtr, Ptr->getType(), in rewriteForBucketElement()
1183 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBaseI)) in getNodeForInc()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp360 void combineLoadBitcast(LoadInst *LD, BitCastInst *Bitcast);
361 void combineBitcastStore(BitCastInst *Bitcast, StoreInst *ST);
362 bool transformBitcast(BitCastInst *Bitcast);
370 void X86LowerAMXType::combineLoadBitcast(LoadInst *LD, BitCastInst *Bitcast) { in combineLoadBitcast()
394 void X86LowerAMXType::combineBitcastStore(BitCastInst *Bitcast, StoreInst *ST) { in combineBitcastStore()
425 bool X86LowerAMXType::transformBitcast(BitCastInst *Bitcast) { in transformBitcast()
489 auto *Bitcast = dyn_cast<BitCastInst>(&Inst); in visit()
H A DX86LowerAMXIntrinsics.cpp216 auto *BitCast = cast<BitCastInst>(Tile); in createTileLoadStoreLoops()
299 auto *BitCastAcc = cast<BitCastInst>(Acc); in createTileDPLoops()
305 auto *BitCastLHS = cast<BitCastInst>(LHS); in createTileDPLoops()
308 auto *BitCastRHS = cast<BitCastInst>(RHS); in createTileDPLoops()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp132 auto *BCI = dyn_cast<BitCastInst>(U); in processUse()
137 BCI = dyn_cast<BitCastInst>(*U->user_begin()); in processUse()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DSVEIntrinsicOpts.cpp315 auto *BitCast = dyn_cast<BitCastInst>(IntrI->getOperand(0)); in optimizePredicateStore()
357 auto *BitCast = dyn_cast<BitCastInst>(I); in optimizePredicateLoad()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp40 if (isa<BitCastInst>(User)) { in findCallsAtConstantOffset()
62 if (isa<BitCastInst>(User)) { in findLoadCallsAtConstantOffset()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAlloca.cpp123 auto BI = dyn_cast<BitCastInst>(AllocaUse.getUser()); in runOnFunction()
H A DNVPTXLowerArgs.cpp236 if (auto *BC = dyn_cast<BitCastInst>(I.OldInstruction)) { in INITIALIZE_PASS_DEPENDENCY()
238 return BitCastInst::Create(BC->getOpcode(), I.NewParam, NewBCType, in INITIALIZE_PASS_DEPENDENCY()
390 else if (isa<BitCastInst>(CurUser) || isa<AddrSpaceCastInst>(CurUser)) in adjustByValArgAlignment()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackColoring.cpp951 BitCastInst *Cast = new BitCastInst(Inst, From->getType()); in remapInstructions()
978 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Use.get())) in remapInstructions()
H A DInterleavedLoadCombinePass.cpp719 BitCastInst *BCI = dyn_cast<BitCastInst>(V); in compute()
731 static bool computeFromBCI(BitCastInst *BCI, VectorInfo &Result, in computeFromBCI()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReg2Mem.cpp66 CastInst *AllocaInsertionPoint = new BitCastInst( in runPass()
H A DCallSiteSplitting.cpp244 BitCastInst* BCI = dyn_cast<BitCastInst>(&*II); in copyMustTailReturn()
H A DConstantHoisting.cpp742 Mat = new BitCastInst(Mat, Adj->Ty, "mat_bitcast", in emitBaseConstants()
868 Base = new BitCastInst(ConstInfo.BaseExpr, Ty, "const", IP); in emitBaseConstants()
871 Base = new BitCastInst(ConstInfo.BaseInt, Ty, "const", IP); in emitBaseConstants()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAbstractMemberAccess.cpp165 void traceBitCast(BitCastInst *BitCast, CallInst *Parent,
541 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceAICall()
565 void BPFAbstractMemberAccess::traceBitCast(BitCastInst *BitCast, in traceBitCast()
573 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceBitCast()
603 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceGEP()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h260 void visitBitCastInst(BitCastInst &BC) { in visitBitCastInst()
H A DObjCARCAnalysisUtils.h148 return isa<BitCastInst>(I) || in IsNoopInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DSpillUtils.cpp232 if (auto *BI = dyn_cast<BitCastInst>(U)) { in visitStoreInst()
250 void visitBitCastInst(BitCastInst &BC) { in visitBitCastInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp156 if (auto *Ref = dyn_cast_or_null<BitCastInst>(OptAnnoVal)) in getAnnotation()
247 if (auto *BI = dyn_cast<BitCastInst>(II->getArgOperand(0))) in lowerPtrAnnotation()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h148 void visitBitCastInst(BitCastInst &I);
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp239 if (auto *Cast = dyn_cast<BitCastInst>(Op0)) { in convertICmp()

1234