Lines Matching refs:CurType

2534 QualType Sema::BuildVectorType(QualType CurType, Expr *SizeExpr,  in BuildVectorType()  argument
2538 if ((!CurType->isDependentType() && in BuildVectorType()
2539 (!CurType->isBuiltinType() || CurType->isBooleanType() || in BuildVectorType()
2540 (!CurType->isIntegerType() && !CurType->isRealFloatingType()))) || in BuildVectorType()
2541 CurType->isArrayType()) { in BuildVectorType()
2542 Diag(AttrLoc, diag::err_attribute_invalid_vector_type) << CurType; in BuildVectorType()
2547 return Context.getDependentVectorType(CurType, SizeExpr, AttrLoc, in BuildVectorType()
2558 if (CurType->isDependentType()) in BuildVectorType()
2559 return Context.getDependentVectorType(CurType, SizeExpr, AttrLoc, in BuildVectorType()
2570 unsigned TypeSize = static_cast<unsigned>(Context.getTypeSize(CurType)); in BuildVectorType()
2590 return Context.getVectorType(CurType, VectorSizeBits / TypeSize, in BuildVectorType()
7646 static void HandleVectorSizeAttr(QualType &CurType, const ParsedAttr &Attr, in HandleVectorSizeAttr() argument
7657 QualType T = S.BuildVectorType(CurType, SizeExpr, Attr.getLoc()); in HandleVectorSizeAttr()
7659 CurType = T; in HandleVectorSizeAttr()
7666 static void HandleExtVectorTypeAttr(QualType &CurType, const ParsedAttr &Attr, in HandleExtVectorTypeAttr() argument
7676 QualType T = S.BuildExtVectorType(CurType, SizeExpr, Attr.getLoc()); in HandleExtVectorTypeAttr()
7678 CurType = T; in HandleExtVectorTypeAttr()
7753 static void HandleNeonVectorTypeAttr(QualType &CurType, const ParsedAttr &Attr, in HandleNeonVectorTypeAttr() argument
7777 if (!isPermittedNeonBaseType(CurType, VecKind, S)) { in HandleNeonVectorTypeAttr()
7778 S.Diag(Attr.getLoc(), diag::err_attribute_invalid_vector_type) << CurType; in HandleNeonVectorTypeAttr()
7784 unsigned typeSize = static_cast<unsigned>(S.Context.getTypeSize(CurType)); in HandleNeonVectorTypeAttr()
7788 S.Diag(Attr.getLoc(), diag::err_attribute_bad_neon_vector_size) << CurType; in HandleNeonVectorTypeAttr()
7793 CurType = S.Context.getVectorType(CurType, numElts, VecKind); in HandleNeonVectorTypeAttr()
7799 static void HandleArmSveVectorBitsTypeAttr(QualType &CurType, ParsedAttr &Attr, in HandleArmSveVectorBitsTypeAttr() argument
7840 if (!CurType->isVLSTBuiltinType()) { in HandleArmSveVectorBitsTypeAttr()
7842 << Attr << CurType; in HandleArmSveVectorBitsTypeAttr()
7847 const auto *BT = CurType->castAs<BuiltinType>(); in HandleArmSveVectorBitsTypeAttr()
7849 QualType EltType = CurType->getSveEltType(S.Context); in HandleArmSveVectorBitsTypeAttr()
7858 CurType = S.Context.getVectorType(EltType, VecSize, VecKind); in HandleArmSveVectorBitsTypeAttr()
7862 QualType &CurType, in HandleArmMveStrictPolymorphismAttr() argument
7864 const VectorType *VT = dyn_cast<VectorType>(CurType); in HandleArmMveStrictPolymorphismAttr()
7872 CurType = in HandleArmMveStrictPolymorphismAttr()
7875 CurType, CurType); in HandleArmMveStrictPolymorphismAttr()
7879 static void HandleOpenCLAccessAttr(QualType &CurType, const ParsedAttr &Attr, in HandleOpenCLAccessAttr() argument
7882 if (!(CurType->isImageType() || CurType->isPipeType())) { in HandleOpenCLAccessAttr()
7888 if (const TypedefType* TypedefTy = CurType->getAs<TypedefType>()) { in HandleOpenCLAccessAttr()
7926 } else if (CurType->isPipeType()) { in HandleOpenCLAccessAttr()
7928 QualType ElemType = CurType->castAs<PipeType>()->getElementType(); in HandleOpenCLAccessAttr()
7929 CurType = S.Context.getWritePipeType(ElemType); in HandleOpenCLAccessAttr()
7935 static void HandleMatrixTypeAttr(QualType &CurType, const ParsedAttr &Attr, in HandleMatrixTypeAttr() argument
7950 QualType T = S.BuildMatrixType(CurType, RowsExpr, ColsExpr, Attr.getLoc()); in HandleMatrixTypeAttr()
7952 CurType = T; in HandleMatrixTypeAttr()
7956 QualType &CurType, in HandleLifetimeBoundAttr() argument
7959 CurType = State.getAttributedType( in HandleLifetimeBoundAttr()
7961 CurType, CurType); in HandleLifetimeBoundAttr()