Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ShuffleDecodeConstantPool.cpp38 Type *CstTy = C->getType(); in extractConstantMask() local
39 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()
DX86ISelLowering.cpp5638 Type *CstTy = Cst->getType(); in getTargetConstantBitsFromNode() local
5639 if (!CstTy->isVectorTy() || (SizeInBits != CstTy->getPrimitiveSizeInBits())) in getTargetConstantBitsFromNode()
5642 unsigned SrcEltSizeInBits = CstTy->getScalarSizeInBits(); in getTargetConstantBitsFromNode()
5643 unsigned NumSrcElts = CstTy->getVectorNumElements(); in getTargetConstantBitsFromNode()
/external/llvm/lib/Target/AArch64/
DAArch64PromoteConstant.cpp232 static bool isConstantUsingVectorTy(const Type *CstTy) { in isConstantUsingVectorTy() argument
233 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
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()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp2605 Type *CstTy = II.getAlignmentCst()->getType(); in visitMemSetInst() local
2606 II.setAlignment(ConstantInt::get(CstTy, getSliceAlign())); in visitMemSetInst()
2728 Type *CstTy = II.getAlignmentCst()->getType(); in visitMemTransferInst() local
2730 ConstantInt::get(CstTy, MinAlign(II.getAlignment(), SliceAlign))); in visitMemTransferInst()