Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DSVEIntrinsicOpts.cpp318 auto *BitCast = dyn_cast<BitCastInst>(IntrI->getOperand(0)); in optimizePredicateStore() local
319 if (!BitCast) in optimizePredicateStore()
323 if (BitCast->getOperand(0)->getType() != PredType) in optimizePredicateStore()
329 Builder.CreateStore(BitCast->getOperand(0), Store->getPointerOperand()); in optimizePredicateStore()
334 if (BitCast->getNumUses() == 0) in optimizePredicateStore()
335 BitCast->eraseFromParent(); in optimizePredicateStore()
360 auto *BitCast = dyn_cast<BitCastInst>(I); in optimizePredicateLoad() local
361 if (!BitCast || BitCast->getType() != PredType) in optimizePredicateLoad()
365 auto *IntrI = dyn_cast<IntrinsicInst>(BitCast->getOperand(0)); in optimizePredicateLoad()
388 BitCast->replaceAllUsesWith(LoadPred); in optimizePredicateLoad()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp305 if (auto *BitCast = dyn_cast_or_null<BitCastInst>(Next)) { in versionCallSiteWithCond() local
306 assert(BitCast->getOperand(0) == OrigInst && in versionCallSiteWithCond()
308 auto NewBitCast = BitCast->clone(); in versionCallSiteWithCond()
312 Next = BitCast->getNextNode(); in versionCallSiteWithCond()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp2703 case Instruction::BitCast: in isIntegerCast()
2736 case Instruction::BitCast: in isNoopCast()
2820 bool IsFirstBitcast = (firstOp == Instruction::BitCast); in isEliminableCastPair()
2821 bool IsSecondBitcast = (secondOp == Instruction::BitCast); in isEliminableCastPair()
2876 return Instruction::BitCast; in isEliminableCastPair()
2883 return Instruction::BitCast; in isEliminableCastPair()
2893 return Instruction::BitCast; in isEliminableCastPair()
2911 return Instruction::BitCast; in isEliminableCastPair()
2919 return Instruction::BitCast; in isEliminableCastPair()
2988 case BitCast: in Create()
[all …]
H A DConstants.cpp1546 case Instruction::BitCast: in getWithOperands()
2202 case Instruction::BitCast: in getCast()
2285 assert(CastInst::castIsValid(Instruction::BitCast, C, DstTy) && in getBitCast()
2292 return getFoldedCast(Instruction::BitCast, C, DstTy, OnlyIfReduced); in getBitCast()
2412 case Instruction::BitCast: in isDesirableCastOp()
2434 case Instruction::BitCast: in isSupportedCastOp()
3375 case Instruction::BitCast: in getAsInstruction()
H A DValue.cpp654 } else if (Operator::getOpcode(V) == Instruction::BitCast) { in stripPointerCastsAndOffsets()
767 } else if (Operator::getOpcode(V) == Instruction::BitCast || in stripAndAccumulateConstantOffsets()
H A DGlobals.cpp384 case Instruction::BitCast: in findBaseObject()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp188 if (CI.getOpcode() != Instruction::BitCast || in commonCastTransforms()
877 Value *BitCast = Builder.CreateBitCast(VecOp, BitCastTo); in visitTrunc() local
878 return ExtractElementInst::Create(BitCast, Builder.getInt32(NewIdx)); in visitTrunc()
2269 case Instruction::BitCast: in collectInsertionElements()
2343 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt() argument
2346 if (!match(BitCast.getOperand(0), in canonicalizeBitCastExtElt()
2352 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt()
2364 return CastInst::Create(Instruction::BitCast, VecOp, DestType); in canonicalizeBitCastExtElt()
2370 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic() argument
2372 Type *DestTy = BitCast.getType(); in foldBitCastBitwiseLogic()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h114 if (auto *BitCast = dyn_cast<BitCastInst>(V)) variable
115 if (!OneUseOnly || BitCast->hasOneUse())
116 return BitCast->getOperand(0);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteKernelArguments.cpp86 case Instruction::BitCast: in enqueueUsers()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp316 case Instruction::BitCast: in isAddressExpression()
346 case Instruction::BitCast: in getPointerOperands()
661 case Instruction::BitCast: in cloneInstructionWithNewAddressSpace()
723 if (CE->getOpcode() == Instruction::BitCast) { in cloneConstantExprWithNewAddressSpace()
H A DSpeculativeExecution.cpp230 case Instruction::BitCast: in ComputeSpeculationCost()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp145 while (auto *BitCast = dyn_cast<BitCastInst>(V)) in peekThroughBitcasts() local
146 V = BitCast->getOperand(0); in peekThroughBitcasts()
765 (NumOps * TTI.getCastInstrCost(Instruction::BitCast, NewShuffleTy, SrcTy, in foldBitcastShuffle()
770 TTI.getCastInstrCost(Instruction::BitCast, DestTy, OldShuffleTy, in foldBitcastShuffle()
1522 assert((NumDstElts == NumSrcElts || Opcode == Instruction::BitCast) && in foldShuffleOfCastops()
1944 } else if (auto *BitCast = dyn_cast<BitCastInst>(FrontU)) { in foldShuffleToIdentity() local
1946 auto *DstTy = dyn_cast<FixedVectorType>(BitCast->getDestTy()); in foldShuffleToIdentity()
1947 auto *SrcTy = dyn_cast<FixedVectorType>(BitCast->getSrcTy()); in foldShuffleToIdentity()
2564 case Instruction::BitCast: in run()
H A DVPlanAnalysis.cpp197 case Instruction::BitCast: in inferScalarTypeForRecipe()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp161 CastInst::Create(Instruction::BitCast, Operand, in maybeGenerateBitcast()
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp293 case Instruction::BitCast: in ResolveConstantValue()
496 case Instruction::BitCast: in CanResolveConstant()
553 case Instruction::BitCast: in CanInterpret()
949 case Instruction::BitCast: in Interpret()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp312 if (auto *BitCast = dyn_cast<BitCastInst>(Ptr)) { in lookThroughBitcast() local
313 auto *BCTy = cast<FixedVectorType>(BitCast->getType()); in lookThroughBitcast()
314 auto *BCSrcTy = cast<FixedVectorType>(BitCast->getOperand(0)->getType()); in lookThroughBitcast()
318 Ptr = BitCast->getOperand(0); in lookThroughBitcast()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAbstractMemberAccess.cpp165 void traceBitCast(BitCastInst *BitCast, CallInst *Parent,
574 void BPFAbstractMemberAccess::traceBitCast(BitCastInst *BitCast, in traceBitCast() argument
577 for (User *U : BitCast->users()) { in traceBitCast()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCaptureTracking.cpp370 case Instruction::BitCast: in DetermineUseCaptureKind()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXIntrinsics.cpp218 auto *BitCast = cast<BitCastInst>(Tile); in createTileLoadStoreLoops() local
219 Value *Vec = BitCast->getOperand(0); in createTileLoadStoreLoops()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp637 case Instruction::BitCast: in determinePointerAccessAttrs()
1077 case Instruction::BitCast: in isFunctionMallocLike()
1188 case Instruction::BitCast: in isReturnNonNull()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRDynamicChecks.cpp437 case llvm::Instruction::BitCast: in GetFunction()
H A DIRForTarget.cpp986 case Instruction::BitCast: in MaybeHandleVariable()
1335 case Instruction::BitCast: { in UnfoldConstant()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.def195 HANDLE_CAST_INST(49, BitCast , BitCastInst ) // Type cast
H A DOperator.h579 : public ConcreteOperator<Operator, Instruction::BitCast> {
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackProtector.cpp314 case Instruction::BitCast: in requiresStackProtector()

1234