Home
last modified time | relevance | path

Searched refs:BitCast (Results 1 – 25 of 105) sorted by relevance

12345

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUOpenCLEnqueuedBlockLowering.cpp130 auto *BitCast = cast<ConstantExpr>(UU); in runOnModule() local
131 auto *NewPtr = ConstantExpr::getPointerCast(GV, BitCast->getType()); in runOnModule()
132 BitCast->replaceAllUsesWith(NewPtr); in runOnModule()
H A DAMDGPUPromoteAlloca.cpp327 if (I->getOpcode() != Instruction::BitCast) in stripBitcasts()
378 PtrInst->getOpcode() == Instruction::BitCast) && in canVectorizeInst()
381 case Instruction::BitCast: in canVectorizeInst()
399 UserInst->getOpcode() == Instruction::BitCast) && in canVectorizeInst()
460 if (Inst->getOpcode() == Instruction::BitCast) { in tryPromoteAllocaToVector()
513 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local
514 Value *VecValue = Builder.CreateLoad(VectorTy, BitCast); in tryPromoteAllocaToVector()
534 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local
535 Value *VecValue = Builder.CreateLoad(VectorTy, BitCast); in tryPromoteAllocaToVector()
540 Builder.CreateStore(NewVecValue, BitCast); in tryPromoteAllocaToVector()
H A DAMDGPUAtomicOptimizer.cpp508 Value *const BitCast = B.CreateBitCast(Ballot, VecTy); in optimizeAtomic() local
509 Value *const ExtractLo = B.CreateExtractElement(BitCast, B.getInt32(0)); in optimizeAtomic()
510 Value *const ExtractHi = B.CreateExtractElement(BitCast, B.getInt32(1)); in optimizeAtomic()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp85 case Instruction::BitCast: in isSimpleEnoughValueToCommitHelper()
163 } else if (CE->getOpcode() == Instruction::BitCast && in isSimpleEnoughPointerToCommit()
234 case Instruction::BitCast: in ComputeLoadResult()
271 if (!CE || CE->getOpcode() != Instruction::BitCast || in getCalleeWithFormalArgs()
308 if (!RV || !CE || CE->getOpcode() != Instruction::BitCast) in castCallResultIfNeeded()
362 if (CE->getOpcode() == Instruction::BitCast) { in EvaluateBlock()
H A DCallPromotionUtils.cpp308 if (auto *BitCast = dyn_cast_or_null<BitCastInst>(Next)) { in versionCallSite() local
309 assert(BitCast->getOperand(0) == OrigInst && in versionCallSite()
311 auto NewBitCast = BitCast->clone(); in versionCallSite()
315 Next = BitCast->getNextNode(); in versionCallSite()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DInstructions.cpp2656 case Instruction::BitCast: in isIntegerCast()
2664 if (getOpcode() != Instruction::BitCast) in isLosslessCast()
2706 case Instruction::BitCast: in isNoopCast()
2790 bool IsFirstBitcast = (firstOp == Instruction::BitCast); in isEliminableCastPair()
2791 bool IsSecondBitcast = (secondOp == Instruction::BitCast); in isEliminableCastPair()
2848 return Instruction::BitCast; in isEliminableCastPair()
2855 return Instruction::BitCast; in isEliminableCastPair()
2865 return Instruction::BitCast; in isEliminableCastPair()
2881 return Instruction::BitCast; in isEliminableCastPair()
2889 return Instruction::BitCast; in isEliminableCastPair()
[all …]
H A DReplaceConstant.cpp62 case Instruction::BitCast: in createReplacementInstr()
H A DValue.cpp610 } else if (Operator::getOpcode(V) == Instruction::BitCast) { in stripPointerCastsAndOffsets()
721 } else if (Operator::getOpcode(V) == Instruction::BitCast || in stripAndAccumulateConstantOffsets()
H A DGlobals.cpp457 case Instruction::BitCast: in findBaseObject()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h100 if (auto *BitCast = dyn_cast<BitCastInst>(V)) variable
101 if (!OneUseOnly || BitCast->hasOneUse())
102 return BitCast->getOperand(0);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp930 Value *BitCast = Builder.CreateBitCast(VecOp, BitCastTo); in visitTrunc() local
931 return ExtractElementInst::Create(BitCast, Builder.getInt32(NewIdx)); in visitTrunc()
2187 case Instruction::BitCast: in collectInsertionElements()
2259 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt() argument
2262 auto *ExtElt = dyn_cast<ExtractElementInst>(BitCast.getOperand(0)); in canonicalizeBitCastExtElt()
2268 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt()
2279 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic() argument
2281 Type *DestTy = BitCast.getType(); in foldBitCastBitwiseLogic()
2284 !match(BitCast.getOperand(0), m_OneUse(m_BinOp(BO))) || in foldBitCastBitwiseLogic()
2325 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DAnnotation2Metadata.cpp61 if (!Bitcast || Bitcast->getOpcode() != Instruction::BitCast) in convertAnnotation2Metadata()
H A DFunctionAttrs.cpp479 case Instruction::BitCast: in determinePointerReadAttrs()
895 case Instruction::BitCast: in isFunctionMallocLike()
1008 case Instruction::BitCast: in isReturnNonNull()
H A DGlobalOpt.cpp317 } else if ((CE->getOpcode() == Instruction::BitCast && in CleanupConstantGlobalUsers()
1327 if (Operator::getOpcode(U) == Instruction::BitCast) { in isPointerValueDeadOnEntryToFunction()
1865 auto *BitCast = Builder.CreateBitCast( in RemovePreallocated() local
1867 ArgAllocas[AllocArgIndex] = BitCast; in RemovePreallocated()
1868 AllocaReplacement = BitCast; in RemovePreallocated()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp285 case Instruction::BitCast: in isAddressExpression()
316 case Instruction::BitCast: in getPointerOperands()
592 case Instruction::BitCast: in cloneInstructionWithNewAddressSpace()
649 if (CE->getOpcode() == Instruction::BitCast) { in cloneConstantExprWithNewAddressSpace()
1151 NewV = CastInst::Create(Instruction::BitCast, NewV, in rewriteWithNewAddressSpaces()
H A DSpeculativeExecution.cpp230 case Instruction::BitCast: in ComputeSpeculationCost()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp274 if (auto *BitCast = dyn_cast<BitCastInst>(Ptr)) { in lookThroughBitcast() local
275 auto *BCTy = cast<FixedVectorType>(BitCast->getType()); in lookThroughBitcast()
276 auto *BCSrcTy = cast<FixedVectorType>(BitCast->getOperand(0)->getType()); in lookThroughBitcast()
280 Ptr = BitCast->getOperand(0); in lookThroughBitcast()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DCaptureTracking.cpp326 case Instruction::BitCast: in PointerMayBeCaptured()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/BPF/
H A DBPFAbstractMemberAccess.cpp155 void traceBitCast(BitCastInst *BitCast, CallInst *Parent,
502 void BPFAbstractMemberAccess::traceBitCast(BitCastInst *BitCast, in traceBitCast() argument
505 for (User *U : BitCast->users()) { in traceBitCast()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstantFolder.h212 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
H A DNoFolder.h246 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
H A DInstruction.def195 HANDLE_CAST_INST(49, BitCast , BitCastInst ) // Type cast
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86LowerAMXIntrinsics.cpp220 auto *BitCast = cast<BitCastInst>(Tile); in createTileLoadStoreLoops() local
221 Value *Vec = BitCast->getOperand(0); in createTileLoadStoreLoops()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetFolder.h199 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DStackProtector.cpp218 case Instruction::BitCast: in HasAddressTaken()

12345