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.cpp4876 Type *CstTy = Cst->getType(); in getTargetConstantBitsFromNode() local
4877 unsigned CstSizeInBits = CstTy->getPrimitiveSizeInBits(); in getTargetConstantBitsFromNode()
4878 if (!CstTy->isVectorTy() || (CstSizeInBits % SizeInBits) != 0) in getTargetConstantBitsFromNode()
4881 unsigned SrcEltSizeInBits = CstTy->getScalarSizeInBits(); in getTargetConstantBitsFromNode()
4928 Type *CstTy = Cst->getType(); in getTargetConstantBitsFromNode() local
4929 unsigned CstSizeInBits = CstTy->getPrimitiveSizeInBits(); in getTargetConstantBitsFromNode()
4931 if (!CstTy->isVectorTy() || (CstSizeInBits % SubVecSizeInBits) != 0 || in getTargetConstantBitsFromNode()
4934 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.cpp3719 Type *CstTy = Cst->getType(); in computeKnownBits() local
3720 if ((NumElts * BitWidth) == CstTy->getPrimitiveSizeInBits() && in computeKnownBits()
3724 if (CstTy->isVectorTy()) { in computeKnownBits()
3727 CstTy = Cst->getType(); in computeKnownBits()
3731 if (CstTy->isVectorTy() && BitWidth == CstTy->getScalarSizeInBits()) { in computeKnownBits()
3756 } else if (BitWidth == CstTy->getPrimitiveSizeInBits()) { in computeKnownBits()
5062 Type *CstTy = Cst->getType(); in ComputeNumSignBits() local
5063 if (CstTy->isVectorTy() && !VT.isScalableVector() && in ComputeNumSignBits()
5064 (NumElts * VTBits) == CstTy->getPrimitiveSizeInBits() && in ComputeNumSignBits()
5065 VTBits == CstTy->getScalarSizeInBits()) { in ComputeNumSignBits()