| /openbsd-src/gnu/llvm/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARCContract.cpp | 385 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 D | NVPTXLowerArgs.cpp | 188 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 D | NVPTXLowerAlloca.cpp | 104 auto BI = dyn_cast<BitCastInst>(AllocaUse.getUser()); in runOnFunction()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | IRDynamicChecks.cpp | 339 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 D | IRForTarget.cpp | 1514 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 D | TypeMetadataUtils.cpp | 38 if (isa<BitCastInst>(User)) { in findCallsAtConstantOffset() 57 if (isa<BitCastInst>(User)) { in findLoadCallsAtConstantOffset()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 87 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 D | InstCombineLoadStoreAlloca.cpp | 82 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 D | InstCombineVectorOps.cpp | 213 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 D | StripGCRelocates.cpp | 47 ReplaceGCRel = new BitCastInst(OrigPtr, GCRel->getType(), "cast", GCRel); in stripGCRelocates()
|
| H A D | BypassSlowDivision.cpp | 203 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 D | GlobalStatus.cpp | 146 } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I) || in analyzeGlobalAux()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/BPF/ |
| H A D | BPFAbstractMemberAccess.cpp | 163 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 D | X86LowerAMXType.cpp | 226 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 D | X86LowerAMXIntrinsics.cpp | 221 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 D | AMDGPULowerKernelAttributes.cpp | 113 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 D | PPCLoopInstrFormPrep.cpp | 358 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 D | SVEIntrinsicOpts.cpp | 317 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 D | StackColoring.cpp | 973 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 D | Reg2Mem.cpp | 67 CastInst *AllocaInsertionPoint = new BitCastInst( in runPass()
|
| H A D | ConstantHoisting.cpp | 770 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 D | CallSiteSplitting.cpp | 246 BitCastInst* BCI = dyn_cast<BitCastInst>(&*II); in copyMustTailReturn()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | PtrUseVisitor.h | 247 void visitBitCastInst(BitCastInst &BC) { in visitBitCastInst()
|
| H A D | ObjCARCAnalysisUtils.h | 140 return isa<BitCastInst>(I) || in IsNoopInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| H A D | GlobalOpt.cpp | 624 } 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()
|