Home
last modified time | relevance | path

Searched refs:CastSrcTy (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h427 const LLT CastSrcTy = MRI.getType(CastSrcReg); in tryFoldUnmergeCast() local
431 const unsigned CastSrcSize = CastSrcTy.getSizeInBits(); in tryFoldUnmergeCast()
446 DestTy.isVector() ? CastSrcTy.getNumElements() / NumDefs : 1; in tryFoldUnmergeCast()
447 LLT UnmergeTy = CastSrcTy.changeElementCount( in tryFoldUnmergeCast()
453 {TargetOpcode::G_UNMERGE_VALUES, {UnmergeTy, CastSrcTy}}) || in tryFoldUnmergeCast()
471 if (CastSrcTy.isScalar() && SrcTy.isScalar() && !DestTy.isVector()) { in tryFoldUnmergeCast()
484 {TargetOpcode::G_UNMERGE_VALUES, {DestTy, CastSrcTy}})) in tryFoldUnmergeCast()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp886 Type *CastSrcTy = nullptr; in foldPHIArgOpIntoPHI() local
889 CastSrcTy = FirstInst->getOperand(0)->getType(); in foldPHIArgOpIntoPHI()
893 if (PN.getType()->isIntegerTy() && CastSrcTy->isIntegerTy()) { in foldPHIArgOpIntoPHI()
894 if (!shouldChangeType(PN.getType(), CastSrcTy)) in foldPHIArgOpIntoPHI()
912 if (CastSrcTy) { in foldPHIArgOpIntoPHI()
913 if (I->getOperand(0)->getType() != CastSrcTy) in foldPHIArgOpIntoPHI()
H A DInstCombineVectorOps.cpp2532 VectorType *CastSrcTy = cast<VectorType>(Cast0->getSrcTy()); in foldCastShuffle() local
2540 assert(isa<FixedVectorType>(CastSrcTy) && isa<FixedVectorType>(ShufOpTy) && in foldCastShuffle()
2542 if (CastSrcTy->getPrimitiveSizeInBits() > ShufOpTy->getPrimitiveSizeInBits()) in foldCastShuffle()
2966 auto *CastSrcTy = FixedVectorType::get(TgtTy, TgtNumElems); in visitShuffleVectorInst() local
2980 bool BCAlreadyExists = NewBCs.contains(CastSrcTy); in visitShuffleVectorInst()
2983 ? NewBCs[CastSrcTy] in visitShuffleVectorInst()
2984 : Builder.CreateBitCast(V, CastSrcTy, SVI.getName() + ".bc"); in visitShuffleVectorInst()
2986 NewBCs[CastSrcTy] = NewBC; in visitShuffleVectorInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp1516 auto *CastSrcTy = dyn_cast<FixedVectorType>(C0->getSrcTy()); in foldShuffleOfCastops() local
1517 if (!ShuffleDstTy || !CastDstTy || !CastSrcTy) in foldShuffleOfCastops()
1520 unsigned NumSrcElts = CastSrcTy->getNumElements(); in foldShuffleOfCastops()
1548 FixedVectorType::get(CastSrcTy->getScalarType(), NewMask.size()); in foldShuffleOfCastops()
1554 TTI.getCastInstrCost(C0->getOpcode(), CastDstTy, CastSrcTy, in foldShuffleOfCastops()
1557 TTI.getCastInstrCost(C1->getOpcode(), CastDstTy, CastSrcTy, in foldShuffleOfCastops()
1565 TargetTransformInfo::SK_PermuteTwoSrc, CastSrcTy, NewMask, CostKind); in foldShuffleOfCastops()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp95 Type *CastSrcTy = CastSrc->getType(); in canSafelyConvertTo16Bit() local
96 if (CastSrcTy->isHalfTy() || CastSrcTy->isIntegerTy(16)) in canSafelyConvertTo16Bit()