Home
last modified time | relevance | path

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

1234

/freebsd-12.1/contrib/llvm/lib/Transforms/ObjCARC/
H A DObjCARCContract.cpp409 Args[0] = new BitCastInst(Args[0], I8XX, "", Store); in tryToContractReleaseIntoStoreStrong()
411 Args[1] = new BitCastInst(Args[1], I8X, "", Store); in tryToContractReleaseIntoStoreStrong()
628 new BitCastInst(Replacement, UseTy, "", &InsertBB->back()); in runOnFunction()
645 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction()
661 if (const BitCastInst *BI = dyn_cast<BitCastInst>(Arg)) in runOnFunction()
683 SmallVector<BitCastInst *, 2> BitCastUsers; in runOnFunction()
687 if (auto *BC = dyn_cast<BitCastInst>(U)) in runOnFunction()
694 if (auto *B = dyn_cast<BitCastInst>(U)) in runOnFunction()
H A DObjCARCOpts.cpp89 if (const BitCastInst *BC = dyn_cast<BitCastInst>(Arg)) in FindSingleUseIdentifiedObject()
678 if (isa<BitCastInst>(U)) in OptimizeAutoreleaseRVCall()
987 Op = new BitCastInst(Op, ParamTy, "", InsertPos); in OptimizeIndividualCalls()
1530 new BitCastInst(Arg, ParamTy, "", InsertPt); in MoveCalls()
1543 new BitCastInst(Arg, ParamTy, "", InsertPt); in MoveCalls()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Expression/
H A DIRDynamicChecks.cpp362 BitCastInst *bit_cast = in InstrumentInstruction()
363 new BitCastInst(dereferenced_ptr, GetI8PtrTy(), "", inst); in InstrumentInstruction()
446 BitCastInst *bit_cast = in InstrumentInstruction()
447 new BitCastInst(target_object, GetI8PtrTy(), "", inst); in InstrumentInstruction()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp38 if (isa<BitCastInst>(User)) { in findCallsAtConstantOffset()
57 if (isa<BitCastInst>(User)) { in findLoadCallsAtConstantOffset()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DEntryExitInstrumenter.cpp100 if (BitCastInst *BCI = dyn_cast_or_null<BitCastInst>(Prev)) in runOnFunction()
H A DStripGCRelocates.cpp63 ReplaceGCRel = new BitCastInst(OrigPtr, GCRel->getType(), "cast", GCRel); in runOnFunction()
H A DBypassSlowDivision.cpp206 if (!C && isa<BitCastInst>(Op1)) in isHashLikeValue()
207 C = dyn_cast<ConstantInt>(cast<BitCastInst>(Op1)->getOperand(0)); in isHashLikeValue()
395 if (auto *BCI = dyn_cast<BitCastInst>(Divisor)) in insertFastDivAndRem()
H A DGlobalStatus.cpp141 } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I)) { in analyzeGlobalAux()
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/
H A DPPCLoopPreIncPrep.cpp147 while (BitCastInst *BC = dyn_cast<BitCastInst>(StrippedBasePtr)) in IsPtrInBounds()
461 NewBasePtr = new BitCastInst(PtrInc, BasePtr->getType(), in runOnLoop()
510 ReplNewPtr = new BitCastInst(RealNewPtr, Ptr->getType(), in runOnLoop()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp80 if (isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I)) { in isOnlyCopiedFromConstantGlobal()
278 } else if (isa<GetElementPtrInst>(Inst) || isa<BitCastInst>(Inst)) { in findLoadAndReplace()
317 } else if (auto *BC = dyn_cast<BitCastInst>(I)) { in replace()
322 auto *NewI = new BitCastInst(V, NewT); in replace()
389 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst()
1189 if (auto *BC = dyn_cast<BitCastInst>(V)) { in combineStoreToValueType()
1449 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst()
1507 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())); in visitStoreInst()
1555 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in mergeStoreIntoSuccessor()
H A DInstCombineCasts.cpp84 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation()
1717 return new BitCastInst(SrcI, FITy); in FoldItoFPtoI()
2001 static Value *optimizeIntegerToVectorInsertions(BitCastInst &CI, in optimizeIntegerToVectorInsertions()
2097 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect()
2202 auto *BCI = dyn_cast<BitCastInst>(IncValue); in optimizeBitCastFromPhi()
2235 } else if (auto *BCI = dyn_cast<BitCastInst>(V)) { in optimizeBitCastFromPhi()
2261 Instruction *InstCombiner::visitBitCast(BitCastInst &CI) { in visitBitCast()
2331 if (BitCastInst *BCIn = dyn_cast<BitCastInst>(SrcCast->getOperand(0))) in visitBitCast()
2373 BitCastInst *Tmp; in visitBitCast()
2377 if (((Tmp = dyn_cast<BitCastInst>(SVI->getOperand(0))) && in visitBitCast()
[all …]
H A DInstCombineInternal.h120 if (auto *BitCast = dyn_cast<BitCastInst>(V))
391 Instruction *visitBitCast(BitCastInst &CI);
871 Instruction *foldICmpBitCastConstant(ICmpInst &Cmp, BitCastInst *Bitcast,
923 Instruction *PromoteCastOfAllocation(BitCastInst &CI, AllocaInst &AI);
/freebsd-12.1/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAlloca.cpp105 auto BI = dyn_cast<BitCastInst>(AllocaUse.getUser()); in runOnBasicBlock()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp639 } else if (const BitCastInst *CI = dyn_cast<BitCastInst>(U)) { in AllUsesOfValueWillTrapIfNull()
780 isa<BitCastInst>(GlobalUser) || in OptimizeAwayTrappingUsesOfLoads()
858 BitCastInst *TheBC = nullptr; in OptimizeGlobalAddressOfMalloc()
861 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in OptimizeGlobalAddressOfMalloc()
870 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfMalloc()
994 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Inst)) { in ValueIsOnlyUsedLocallyOrStoredToOneGlobal()
1024 } else if (isa<BitCastInst>(U)) { in ReplaceUsesOfMallocWithGlobal()
1542 Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI); in tryToOptimizeStoreOfMallocToGlobal()
1545 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Malloc)) in tryToOptimizeStoreOfMallocToGlobal()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DStackColoring.cpp924 BitCastInst *Cast = new BitCastInst(Inst, From->getType()); in remapInstructions()
951 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Use.get())) in remapInstructions()
H A DStackProtector.cpp186 } else if (const BitCastInst *BI = dyn_cast<BitCastInst>(U)) { in HasAddressTaken()
H A DInterleavedLoadCombinePass.cpp719 BitCastInst *BCI = dyn_cast<BitCastInst>(V); in compute()
731 static bool computeFromBCI(BitCastInst *BCI, VectorInfo &Result, in computeFromBCI()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DReg2Mem.cpp86 CastInst *AllocaInsertionPoint = new BitCastInst( in INITIALIZE_PASS_DEPENDENCY()
H A DConstantHoisting.cpp740 Base = new BitCastInst(Base, Int8PtrTy, "base_bitcast", InsertionPt); in emitBaseConstants()
743 Mat = new BitCastInst(Mat, Ty, "mat_bitcast", InsertionPt); in emitBaseConstants()
864 Base = new BitCastInst(ConstInfo.BaseExpr, Ty, "const", IP); in emitBaseConstants()
867 Base = new BitCastInst(ConstInfo.BaseInt, Ty, "const", IP); in emitBaseConstants()
H A DCallSiteSplitting.cpp244 BitCastInst* BCI = dyn_cast<BitCastInst>(&*II); in copyMustTailReturn()
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp125 if (auto *Inst = dyn_cast<BitCastInst>(U)) { in runOnModule()
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h256 void visitBitCastInst(BitCastInst &BC) { in visitBitCastInst()
H A DObjCARCAnalysisUtils.h147 return isa<BitCastInst>(I) || in IsNoopInstruction()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp105 auto *BCI = dyn_cast<BitCastInst>(*U->user_begin()); in processUse()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DInstructions.cpp519 Result = new BitCastInst(MCall, AllocPtrType, Name, InsertBefore); in createMalloc()
526 Result = new BitCastInst(MCall, AllocPtrType, Name); in createMalloc()
608 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore); in createFree()
612 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertAtEnd); in createFree()
2589 case BitCast: return new BitCastInst (S, Ty, Name, InsertBefore); in Create()
2611 case BitCast: return new BitCastInst (S, Ty, Name, InsertAtEnd); in Create()
3259 BitCastInst::BitCastInst( in BitCastInst() function in BitCastInst
3265 BitCastInst::BitCastInst( in BitCastInst() function in BitCastInst
3917 BitCastInst *BitCastInst::cloneImpl() const { in cloneImpl()
3918 return new BitCastInst(getOperand(0), getType()); in cloneImpl()

1234