Home
last modified time | relevance | path

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

12345

/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp188 if (auto *BC = dyn_cast<BitCastInst>(I.OldInstruction)) { in convertToParamAS()
191 return BitCastInst::Create(BC->getOpcode(), I.NewParam, NewBCType, in convertToParamAS()
281 if (auto *I = dyn_cast<BitCastInst>(CurUser)) { in adjustByValArgAlignment()
322 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()
/openbsd-src/gnu/llvm/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.cpp1514 return new BitCastInst( in UnfoldConstant()
1735 BitCastInst *bit_cast = new BitCastInst( in ReplaceVariables()
1744 BitCastInst *bit_cast = new BitCastInst( in ReplaceVariables()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp38 if (isa<BitCastInst>(User)) { in findCallsAtConstantOffset()
57 if (isa<BitCastInst>(User)) { in findLoadCallsAtConstantOffset()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp87 Instruction *InstCombinerImpl::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation()
2335 static Value *optimizeIntegerToVectorInsertions(BitCastInst &CI, in optimizeIntegerToVectorInsertions()
2364 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt()
2391 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic()
2463 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect()
2574 auto *BCI = dyn_cast<BitCastInst>(IncValue); in optimizeBitCastFromPhi()
2594 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2637 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2664 cast<BitCastInst>(Builder.CreateBitCast(NewPN, SrcTy)); in optimizeBitCastFromPhi()
2669 else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
[all …]
H A DInstCombineLoadStoreAlloca.cpp82 if (isa<BitCastInst, AddrSpaceCastInst>(I)) { in isOnlyCopiedFromConstantMemory()
336 } else if (isa<GetElementPtrInst, BitCastInst>(Inst)) { in collectUsersRecursive()
391 } else if (auto *BC = dyn_cast<BitCastInst>(I)) { in replace()
397 auto *NewI = new BitCastInst(V, NewT); in replace()
483 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst()
691 if (auto *BC = dyn_cast<BitCastInst>(Load.user_back())) { in combineLoadToOperationType()
1214 if (auto *BC = dyn_cast<BitCastInst>(V)) { in combineStoreToValueType()
1484 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst()
1581 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in mergeStoreIntoSuccessor()
H A DInstCombineVectorOps.cpp213 return new BitCastInst(Trunc, DestTy); in foldBitcastExtElt()
229 return new BitCastInst(Elt, DestTy); in foldBitcastExtElt()
311 return new BitCastInst(Builder.CreateTrunc(Scalar, DestIntTy), DestTy); in foldBitcastExtElt()
1580 return new BitCastInst(NewInsert, VTy); in foldTruncInsEltPair()
1623 return new BitCastInst(NewInsElt, IE.getType()); in visitInsertElementInst()
1638 return new BitCastInst(NewInsElt, IE.getType()); in visitInsertElementInst()
2504 return new BitCastInst(X, Shuf.getType()); in foldIdentityExtractShuffle()
2758 return new BitCastInst(V, SVI.getType()); in visitShuffleVectorInst()
2789 return BitCastInst::Create(Instruction::BitCast, V, SVI.getType()); in visitShuffleVectorInst()
2885 SmallVector<BitCastInst *, 8> BCs; in visitShuffleVectorInst()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DStripGCRelocates.cpp47 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()
/openbsd-src/gnu/llvm/llvm/lib/Target/BPF/
H A DBPFAbstractMemberAccess.cpp163 void traceBitCast(BitCastInst *BitCast, CallInst *Parent,
561 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceAICall()
585 void BPFAbstractMemberAccess::traceBitCast(BitCastInst *BitCast, in traceBitCast()
593 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceBitCast()
623 if (auto *BI = dyn_cast<BitCastInst>(Inst)) { in traceGEP()
1137 auto *BCInst = new BitCastInst(Base, Type::getInt8PtrTy(BB->getContext())); in transformGEPChain()
1146 auto *BCInst2 = new BitCastInst(GEP, Call->getType()); in transformGEPChain()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp226 void combineLoadBitcast(LoadInst *LD, BitCastInst *Bitcast);
227 void combineBitcastStore(BitCastInst *Bitcast, StoreInst *ST);
228 bool transformBitcast(BitCastInst *Bitcast);
236 void X86LowerAMXType::combineLoadBitcast(LoadInst *LD, BitCastInst *Bitcast) { in combineLoadBitcast()
261 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.cpp221 auto *BitCast = cast<BitCastInst>(Tile); in createTileLoadStoreLoops()
304 auto *BitCastAcc = cast<BitCastInst>(Acc); in createTileDPLoops()
310 auto *BitCastLHS = cast<BitCastInst>(LHS); in createTileDPLoops()
313 auto *BitCastRHS = cast<BitCastInst>(RHS); in createTileDPLoops()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp113 auto *BCI = dyn_cast<BitCastInst>(U); in processUse()
118 BCI = dyn_cast<BitCastInst>(*U->user_begin()); in processUse()
/openbsd-src/gnu/llvm/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()
1185 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBaseI)) in getNodeForInc()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DSVEIntrinsicOpts.cpp317 auto *BitCast = dyn_cast<BitCastInst>(IntrI->getOperand(0)); in optimizePredicateStore()
362 auto *BitCast = dyn_cast<BitCastInst>(I); in optimizePredicateLoad()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DReg2Mem.cpp67 CastInst *AllocaInsertionPoint = new BitCastInst( in runPass()
H A DConstantHoisting.cpp770 Base = new BitCastInst(Base, Int8PtrTy, "base_bitcast", InsertionPt); in emitBaseConstants()
773 Mat = new BitCastInst(Mat, Ty, "mat_bitcast", InsertionPt); in emitBaseConstants()
895 Base = new BitCastInst(ConstInfo.BaseExpr, Ty, "const", IP); in emitBaseConstants()
898 Base = new BitCastInst(ConstInfo.BaseInt, Ty, "const", IP); in emitBaseConstants()
H A DCallSiteSplitting.cpp246 BitCastInst* BCI = dyn_cast<BitCastInst>(&*II); in copyMustTailReturn()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h247 void visitBitCastInst(BitCastInst &BC) { in visitBitCastInst()
H A DObjCARCAnalysisUtils.h140 return isa<BitCastInst>(I) || in IsNoopInstruction()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp624 } else if (const BitCastInst *CI = dyn_cast<BitCastInst>(U)) { in AllUsesOfValueWillTrapIfNull()
805 isa<BitCastInst>(GlobalUser) || in OptimizeAwayTrappingUsesOfLoads()
890 BitCastInst *TheBC = nullptr; in OptimizeGlobalAddressOfAllocation()
893 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in OptimizeGlobalAddressOfAllocation()
902 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfAllocation()
1021 if (auto *BCI = dyn_cast<BitCastInst>(U)) { in valueIsOnlyUsedLocallyOrStoredToOneGlobal()

12345