Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ShuffleDecodeConstantPool.cpp39 auto *CstTy = dyn_cast<FixedVectorType>(C->getType()); in extractConstantMask() local
40 if (!CstTy) in extractConstantMask()
43 Type *CstEltTy = CstTy->getElementType(); in extractConstantMask()
47 unsigned CstSizeInBits = CstTy->getPrimitiveSizeInBits(); in extractConstantMask()
48 unsigned CstEltSizeInBits = CstTy->getScalarSizeInBits(); in extractConstantMask()
49 unsigned NumCstElts = CstTy->getNumElements(); in extractConstantMask()
H A DX86ISelLowering.cpp4739 Type *CstTy = Cst->getType(); in getTargetConstantBitsFromNode() local
4740 unsigned CstSizeInBits = CstTy->getPrimitiveSizeInBits(); in getTargetConstantBitsFromNode()
4741 if (!CstTy->isVectorTy() || (CstSizeInBits % SizeInBits) != 0) in getTargetConstantBitsFromNode()
4744 unsigned SrcEltSizeInBits = CstTy->getScalarSizeInBits(); in getTargetConstantBitsFromNode()
4791 Type *CstTy = Cst->getType(); in getTargetConstantBitsFromNode() local
4792 unsigned CstSizeInBits = CstTy->getPrimitiveSizeInBits(); in getTargetConstantBitsFromNode()
4794 if (!CstTy->isVectorTy() || (CstSizeInBits % SubVecSizeInBits) != 0 || in getTargetConstantBitsFromNode()
4797 unsigned CstEltSizeInBits = CstTy->getScalarSizeInBits(); in getTargetConstantBitsFromNode()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64PromoteConstant.cpp240 static bool isConstantUsingVectorTy(const Type *CstTy) { in isConstantUsingVectorTy() argument
241 if (CstTy->isVectorTy()) in isConstantUsingVectorTy()
243 if (CstTy->isStructTy()) { in isConstantUsingVectorTy()
244 for (unsigned EltIdx = 0, EndEltIdx = CstTy->getStructNumElements(); in isConstantUsingVectorTy()
246 if (isConstantUsingVectorTy(CstTy->getStructElementType(EltIdx))) in isConstantUsingVectorTy()
248 } else if (CstTy->isArrayTy()) in isConstantUsingVectorTy()
249 return isConstantUsingVectorTy(CstTy->getArrayElementType()); in isConstantUsingVectorTy()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegBankCombiner.cpp81 template <class m_Cst, typename CstTy>
83 Register &Val, CstTy &K0, CstTy &K1) const;
170 template <class m_Cst, typename CstTy>
174 CstTy &K0, CstTy &K1) const { in matchMed()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp3570 Type *CstTy = Cst->getType(); in computeKnownBits() local
3571 if ((NumElts * BitWidth) == CstTy->getPrimitiveSizeInBits() && in computeKnownBits()
3575 if (CstTy->isVectorTy()) { in computeKnownBits()
3578 CstTy = Cst->getType(); in computeKnownBits()
3582 if (CstTy->isVectorTy() && BitWidth == CstTy->getScalarSizeInBits()) { in computeKnownBits()
3607 } else if (BitWidth == CstTy->getPrimitiveSizeInBits()) { in computeKnownBits()
4847 Type *CstTy = Cst->getType(); in ComputeNumSignBits() local
4848 if (CstTy->isVectorTy() && !VT.isScalableVector() && in ComputeNumSignBits()
4849 (NumElts * VTBits) == CstTy->getPrimitiveSizeInBits() && in ComputeNumSignBits()
4850 VTBits == CstTy->getScalarSizeInBits()) { in ComputeNumSignBits()