Home
last modified time | relevance | path

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

12345

/llvm-project-15.0.7/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()
634 new BitCastInst(Replacement, UseTy, "", &InsertBB->back()); in run()
651 Replacement = new BitCastInst(Replacement, UseTy, "", in run()
666 if (const BitCastInst *BI = dyn_cast<BitCastInst>(Arg)) in run()
688 SmallVector<BitCastInst *, 2> BitCastUsers; in run()
692 if (auto *BC = dyn_cast<BitCastInst>(U)) in run()
699 if (auto *B = dyn_cast<BitCastInst>(U)) in run()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp187 if (auto *BC = dyn_cast<BitCastInst>(I.OldInstruction)) { in convertToParamAS()
190 return BitCastInst::Create(BC->getOpcode(), I.NewParam, NewBCType, in convertToParamAS()
280 if (auto *I = dyn_cast<BitCastInst>(CurUser)) { in adjustByValArgAlignment()
321 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()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp225 void combineLoadBitcast(LoadInst *LD, BitCastInst *Bitcast);
226 void combineBitcastStore(BitCastInst *Bitcast, StoreInst *ST);
227 bool transformBitcast(BitCastInst *Bitcast);
235 void X86LowerAMXType::combineLoadBitcast(LoadInst *LD, BitCastInst *Bitcast) { in combineLoadBitcast()
260 void X86LowerAMXType::combineBitcastStore(BitCastInst *Bitcast, StoreInst *ST) { in combineBitcastStore()
292 bool X86LowerAMXType::transformBitcast(BitCastInst *Bitcast) { in transformBitcast()
356 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()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp63 if (isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I)) { in isOnlyCopiedFromConstantMemory()
259 } else if (isa<GetElementPtrInst>(Inst) || isa<BitCastInst>(Inst)) { in collectUsers()
306 } else if (auto *BC = dyn_cast<BitCastInst>(I)) { in replace()
312 auto *NewI = new BitCastInst(V, NewT); in replace()
391 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst()
599 if (auto *BC = dyn_cast<BitCastInst>(LI.user_back())) { in combineLoadToOperationType()
1118 if (auto *BC = dyn_cast<BitCastInst>(V)) { in combineStoreToValueType()
1388 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst()
1485 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in mergeStoreIntoSuccessor()
H A DInstCombineCasts.cpp2464 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect()
2575 auto *BCI = dyn_cast<BitCastInst>(IncValue); in optimizeBitCastFromPhi()
2595 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2638 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2670 else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2742 Instruction *InstCombinerImpl::visitBitCast(BitCastInst &CI) { in visitBitCast()
2781 if (BitCastInst *BCIn = dyn_cast<BitCastInst>(SrcCast->getOperand(0))) in visitBitCast()
2811 return new BitCastInst(InsElt->getOperand(1), DestTy); in visitBitCast()
2849 BitCastInst *Tmp; in visitBitCast()
2853 if (((Tmp = dyn_cast<BitCastInst>(ShufOp0)) && in visitBitCast()
[all …]
H A DInstCombineVectorOps.cpp222 return new BitCastInst(Elt, DestTy); in foldBitcastExtElt()
305 return new BitCastInst(Builder.CreateTrunc(Scalar, DestIntTy), DestTy); in foldBitcastExtElt()
1526 return new BitCastInst(NewInsElt, IE.getType()); in visitInsertElementInst()
1541 return new BitCastInst(NewInsElt, IE.getType()); in visitInsertElementInst()
2351 return new BitCastInst(X, Shuf.getType()); in foldIdentityExtractShuffle()
2574 return new BitCastInst(V, SVI.getType()); in visitShuffleVectorInst()
2605 return BitCastInst::Create(Instruction::BitCast, V, SVI.getType()); in visitShuffleVectorInst()
2701 SmallVector<BitCastInst *, 8> BCs; in visitShuffleVectorInst()
2704 if (BitCastInst *BC = dyn_cast<BitCastInst>(U)) in visitShuffleVectorInst()
2708 for (BitCastInst *BC : BCs) { in visitShuffleVectorInst()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPrintfRuntimeBinding.cpp381 new BitCastInst(BufferIdx, idPointer, "PrintBuffIdCast", Brnch); in lowerPrintfForGpu()
417 Arg = new BitCastInst(Arg, IType, "PrintArgFP", Brnch); in lowerPrintfForGpu()
509 Arg = new BitCastInst(Arg, IType, "PrintArgVect", Brnch); in lowerPrintfForGpu()
523 new BitCastInst(BufferIdx, ArgPointer, "PrintBuffPtrCast", Brnch); in lowerPrintfForGpu()
/llvm-project-15.0.7/llvm/unittests/Target/DirectX/
H A DPointerTypeAnalysisTests.cpp183 EXPECT_THAT(Map, Contains(Pair(IsA<BitCastInst>(), I64Ptr))); in TEST()
184 EXPECT_THAT(Map, Contains(Pair(IsA<BitCastInst>(), I32Ptr))); in TEST()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp38 if (isa<BitCastInst>(User)) { in findCallsAtConstantOffset()
57 if (isa<BitCastInst>(User)) { in findLoadCallsAtConstantOffset()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DStripGCRelocates.cpp47 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()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DValueHandleTest.cpp24 std::unique_ptr<BitCastInst> BitcastV;
28 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(Context))) {} in ValueHandle()
539 BitcastV.reset(new BitCastInst(ConstantV, Type::getInt32Ty(Context))); in TEST_F()
560 BitcastV.reset(new BitCastInst(ConstantV, Type::getInt32Ty(Context))); in TEST_F()
H A DValueMapTest.cpp26 std::unique_ptr<BitCastInst> BitcastV;
31 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(Context))), in ValueMapTest()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp357 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBasePtr)) in IsPtrInBounds()
740 new BitCastInst(PtrInc, BasePtr->getType(), in rewriteForBase()
764 NewBasePtr = new BitCastInst(NewPHI, BasePtr->getType(), in rewriteForBase()
817 ReplNewPtr = new BitCastInst(RealNewPtr, Ptr->getType(), in rewriteForBucketElement()
1185 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBaseI)) in getNodeForInc()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DSVEIntrinsicOpts.cpp316 auto *BitCast = dyn_cast<BitCastInst>(IntrI->getOperand(0)); in optimizePredicateStore()
361 auto *BitCast = dyn_cast<BitCastInst>(I); in optimizePredicateLoad()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DReg2Mem.cpp64 CastInst *AllocaInsertionPoint = new BitCastInst( in runPass()
H A DConstantHoisting.cpp772 Base = new BitCastInst(Base, Int8PtrTy, "base_bitcast", InsertionPt); in emitBaseConstants()
775 Mat = new BitCastInst(Mat, Ty, "mat_bitcast", InsertionPt); in emitBaseConstants()
897 Base = new BitCastInst(ConstInfo.BaseExpr, Ty, "const", IP); in emitBaseConstants()
900 Base = new BitCastInst(ConstInfo.BaseInt, Ty, "const", IP); in emitBaseConstants()
H A DCallSiteSplitting.cpp246 BitCastInst* BCI = dyn_cast<BitCastInst>(&*II); in copyMustTailReturn()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h247 void visitBitCastInst(BitCastInst &BC) { in visitBitCastInst()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp620 } else if (const BitCastInst *CI = dyn_cast<BitCastInst>(U)) { in AllUsesOfValueWillTrapIfNull()
801 isa<BitCastInst>(GlobalUser) || in OptimizeAwayTrappingUsesOfLoads()
886 BitCastInst *TheBC = nullptr; in OptimizeGlobalAddressOfAllocation()
889 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in OptimizeGlobalAddressOfAllocation()
898 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfAllocation()
1017 if (auto *BCI = dyn_cast<BitCastInst>(U)) { in valueIsOnlyUsedLocallyOrStoredToOneGlobal()

12345