Searched refs:CstTy (Results 1 – 5 of 5) sorted by relevance
38 Type *CstTy = C->getType(); in extractConstantMask() local39 if (!CstTy->isVectorTy()) in extractConstantMask()42 Type *CstEltTy = CstTy->getVectorElementType(); in extractConstantMask()46 unsigned CstSizeInBits = CstTy->getPrimitiveSizeInBits(); in extractConstantMask()47 unsigned CstEltSizeInBits = CstTy->getScalarSizeInBits(); in extractConstantMask()48 unsigned NumCstElts = CstTy->getVectorNumElements(); in extractConstantMask()
5638 Type *CstTy = Cst->getType(); in getTargetConstantBitsFromNode() local5639 if (!CstTy->isVectorTy() || (SizeInBits != CstTy->getPrimitiveSizeInBits())) in getTargetConstantBitsFromNode()5642 unsigned SrcEltSizeInBits = CstTy->getScalarSizeInBits(); in getTargetConstantBitsFromNode()5643 unsigned NumSrcElts = CstTy->getVectorNumElements(); in getTargetConstantBitsFromNode()
232 static bool isConstantUsingVectorTy(const Type *CstTy) { in isConstantUsingVectorTy() argument233 if (CstTy->isVectorTy()) in isConstantUsingVectorTy()235 if (CstTy->isStructTy()) { in isConstantUsingVectorTy()236 for (unsigned EltIdx = 0, EndEltIdx = CstTy->getStructNumElements(); in isConstantUsingVectorTy()238 if (isConstantUsingVectorTy(CstTy->getStructElementType(EltIdx))) in isConstantUsingVectorTy()240 } else if (CstTy->isArrayTy()) in isConstantUsingVectorTy()241 return isConstantUsingVectorTy(CstTy->getArrayElementType()); in isConstantUsingVectorTy()
240 static bool isConstantUsingVectorTy(const Type *CstTy) { in isConstantUsingVectorTy() argument241 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()
2605 Type *CstTy = II.getAlignmentCst()->getType(); in visitMemSetInst() local2606 II.setAlignment(ConstantInt::get(CstTy, getSliceAlign())); in visitMemSetInst()2728 Type *CstTy = II.getAlignmentCst()->getType(); in visitMemTransferInst() local2730 ConstantInt::get(CstTy, MinAlign(II.getAlignment(), SliceAlign))); in visitMemTransferInst()