Lines Matching refs:AttributedType
3560 AttributedType::getNullabilityAttrKind(*inferNullability), T, T);
4354 // so that we don't make an AttributedType for it).
4430 /// Map an AttributedType::Kind to an AttributeList::Kind.
4431 static AttributeList::Kind getAttrListKind(AttributedType::Kind kind) {
4433 case AttributedType::attr_address_space:
4435 case AttributedType::attr_regparm:
4437 case AttributedType::attr_vector_size:
4439 case AttributedType::attr_neon_vector_type:
4441 case AttributedType::attr_neon_polyvector_type:
4443 case AttributedType::attr_objc_gc:
4445 case AttributedType::attr_objc_ownership:
4446 case AttributedType::attr_objc_inert_unsafe_unretained:
4448 case AttributedType::attr_noreturn:
4450 case AttributedType::attr_cdecl:
4452 case AttributedType::attr_fastcall:
4454 case AttributedType::attr_stdcall:
4456 case AttributedType::attr_thiscall:
4458 case AttributedType::attr_pascal:
4460 case AttributedType::attr_vectorcall:
4462 case AttributedType::attr_pcs:
4463 case AttributedType::attr_pcs_vfp:
4465 case AttributedType::attr_inteloclbicc:
4467 case AttributedType::attr_ms_abi:
4469 case AttributedType::attr_sysv_abi:
4471 case AttributedType::attr_ptr32:
4473 case AttributedType::attr_ptr64:
4475 case AttributedType::attr_sptr:
4477 case AttributedType::attr_uptr:
4479 case AttributedType::attr_nonnull:
4481 case AttributedType::attr_nullable:
4483 case AttributedType::attr_null_unspecified:
4485 case AttributedType::attr_objc_kindof:
5041 if (const AttributedType *attr = dyn_cast<AttributedType>(type)) {
5042 if (attr->getAttrKind() == AttributedType::attr_objc_ownership)
5185 AttributedType::attr_objc_inert_unsafe_unretained,
5195 // AttributedType instead.
5197 type = S.Context.getAttributedType(AttributedType::attr_objc_ownership,
5299 type = S.Context.getAttributedType(AttributedType::attr_objc_gc,
5442 const AttributedType *AT = dyn_cast<AttributedType>(Type);
5444 AttributedType::Kind CurAttrKind = AT->getAttrKind();
5456 if ((CurAttrKind == AttributedType::attr_ptr32 &&
5458 (CurAttrKind == AttributedType::attr_ptr64 &&
5463 } else if ((CurAttrKind == AttributedType::attr_sptr &&
5465 (CurAttrKind == AttributedType::attr_uptr &&
5473 AT = dyn_cast<AttributedType>(Desugared);
5488 AttributedType::Kind TAK;
5491 case AttributeList::AT_Ptr32: TAK = AttributedType::attr_ptr32; break;
5492 case AttributeList::AT_Ptr64: TAK = AttributedType::attr_ptr64; break;
5493 case AttributeList::AT_SPtr: TAK = AttributedType::attr_sptr; break;
5494 case AttributeList::AT_UPtr: TAK = AttributedType::attr_uptr; break;
5524 while (auto attributed = dyn_cast<AttributedType>(desugared.getTypePtr())) {
5561 = AttributedType::stripOuterNullability(underlyingType)) {
5602 AttributedType::getNullabilityAttrKind(nullability), type, type);
5631 auto attrKind = AttributedType::getNullabilityAttrKind(*nullability);
5637 type = Context.getAttributedType(AttributedType::attr_objc_kindof,
5748 static AttributedType::Kind getCCTypeAttrKind(AttributeList &Attr) {
5754 return AttributedType::attr_cdecl;
5756 return AttributedType::attr_fastcall;
5758 return AttributedType::attr_stdcall;
5760 return AttributedType::attr_thiscall;
5762 return AttributedType::attr_pascal;
5764 return AttributedType::attr_vectorcall;
5774 return llvm::StringSwitch<AttributedType::Kind>(Str)
5775 .Case("aapcs", AttributedType::attr_pcs)
5776 .Case("aapcs-vfp", AttributedType::attr_pcs_vfp);
5779 return AttributedType::attr_inteloclbicc;
5781 return AttributedType::attr_ms_abi;
5783 return AttributedType::attr_sysv_abi;
5864 AttributedType::Kind CCAttrKind = getCCTypeAttrKind(attr);
5869 const AttributedType *AT = S.getCallingConvAttributedType(type);
5904 // wrap the whole thing in an AttributedType as written. The modified type
5915 while (const AttributedType *AT = dyn_cast<AttributedType>(R)) {