Lines Matching refs:MPT
460 GetNullMemberPointerFields(const MemberPointerType *MPT,
505 bool MemberPointerConstantIsNull(const MemberPointerType *MPT,
520 llvm::Type *ConvertMemberPointerType(const MemberPointerType *MPT) override;
522 bool isZeroInitializable(const MemberPointerType *MPT) override;
524 bool isMemberPointerConvertible(const MemberPointerType *MPT) const override { in isMemberPointerConvertible()
525 const CXXRecordDecl *RD = MPT->getMostRecentCXXRecordDecl(); in isMemberPointerConvertible()
532 if (const auto *MPT = Ty->getAs<MemberPointerType>()) { in isTypeInfoCalculable() local
533 const CXXRecordDecl *RD = MPT->getMostRecentCXXRecordDecl(); in isTypeInfoCalculable()
540 llvm::Constant *EmitNullMemberPointer(const MemberPointerType *MPT) override;
542 llvm::Constant *EmitMemberDataPointer(const MemberPointerType *MPT,
545 llvm::Constant *EmitMemberPointer(const APValue &MP, QualType MPT) override;
550 const MemberPointerType *MPT,
555 const MemberPointerType *MPT) override;
560 const MemberPointerType *MPT) override;
572 const MemberPointerType *MPT) override;
2117 bool MicrosoftCXXABI::isZeroInitializable(const MemberPointerType *MPT) { in isZeroInitializable() argument
2120 if (MPT->isMemberFunctionPointer()) in isZeroInitializable()
2126 const CXXRecordDecl *RD = MPT->getMostRecentCXXRecordDecl(); in isZeroInitializable()
2133 MicrosoftCXXABI::ConvertMemberPointerType(const MemberPointerType *MPT) { in ConvertMemberPointerType() argument
2134 const CXXRecordDecl *RD = MPT->getMostRecentCXXRecordDecl(); in ConvertMemberPointerType()
2137 if (MPT->isMemberFunctionPointer()) in ConvertMemberPointerType()
2142 if (MSInheritanceAttr::hasNVOffsetField(MPT->isMemberFunctionPointer(), in ConvertMemberPointerType()
2156 GetNullMemberPointerFields(const MemberPointerType *MPT, in GetNullMemberPointerFields() argument
2159 const CXXRecordDecl *RD = MPT->getMostRecentCXXRecordDecl(); in GetNullMemberPointerFields()
2161 if (MPT->isMemberFunctionPointer()) { in GetNullMemberPointerFields()
2171 if (MSInheritanceAttr::hasNVOffsetField(MPT->isMemberFunctionPointer(), in GetNullMemberPointerFields()
2181 MicrosoftCXXABI::EmitNullMemberPointer(const MemberPointerType *MPT) { in EmitNullMemberPointer() argument
2183 GetNullMemberPointerFields(MPT, fields); in EmitNullMemberPointer()
2187 assert(Res->getType() == ConvertMemberPointerType(MPT)); in EmitNullMemberPointer()
2226 MicrosoftCXXABI::EmitMemberDataPointer(const MemberPointerType *MPT, in EmitMemberDataPointer() argument
2228 const CXXRecordDecl *RD = MPT->getMostRecentCXXRecordDecl(); in EmitMemberDataPointer()
2241 const MemberPointerType *MPT = MPType->castAs<MemberPointerType>(); in EmitMemberPointer() local
2244 return EmitNullMemberPointer(MPT); in EmitMemberPointer()
2251 return BuildMemberPointer(MPT->getMostRecentCXXRecordDecl(), MD, in EmitMemberPointer()
2256 return EmitMemberDataPointer(MPT, ThisAdjustment + FieldOffset); in EmitMemberPointer()
2318 const MemberPointerType *MPT, in EmitMemberPointerComparison() argument
2337 const CXXRecordDecl *RD = MPT->getMostRecentCXXRecordDecl(); in EmitMemberPointerComparison()
2339 if (MSInheritanceAttr::hasOnlyOneField(MPT->isMemberFunctionPointer(), in EmitMemberPointerComparison()
2362 if (MPT->isMemberFunctionPointer()) { in EmitMemberPointerComparison()
2377 const MemberPointerType *MPT) { in EmitMemberPointerIsNotNull() argument
2381 if (MPT->isMemberFunctionPointer()) in EmitMemberPointerIsNotNull()
2384 GetNullMemberPointerFields(MPT, fields); in EmitMemberPointerIsNotNull()
2393 if (MPT->isMemberFunctionPointer()) in EmitMemberPointerIsNotNull()
2405 bool MicrosoftCXXABI::MemberPointerConstantIsNull(const MemberPointerType *MPT, in MemberPointerConstantIsNull() argument
2408 if (MPT->isMemberFunctionPointer()) { in MemberPointerConstantIsNull()
2416 if (isZeroInitializable(MPT) && Val->isNullValue()) in MemberPointerConstantIsNull()
2422 GetNullMemberPointerFields(MPT, Fields); in MemberPointerConstantIsNull()
2523 const MemberPointerType *MPT) { in EmitMemberDataPointerAddress() argument
2524 assert(MPT->isMemberDataPointer()); in EmitMemberDataPointerAddress()
2527 CGF.ConvertTypeForMem(MPT->getPointeeType())->getPointerTo(AS); in EmitMemberDataPointerAddress()
2529 const CXXRecordDecl *RD = MPT->getMostRecentCXXRecordDecl(); in EmitMemberDataPointerAddress()
2565 getInheritanceFromMemptr(const MemberPointerType *MPT) { in getInheritanceFromMemptr() argument
2566 return MPT->getMostRecentCXXRecordDecl()->getMSInheritanceModel(); in getInheritanceFromMemptr()
2758 llvm::Value *MemPtr, const MemberPointerType *MPT) { in EmitLoadOfMemberFunctionPointer() argument
2759 assert(MPT->isMemberFunctionPointer()); in EmitLoadOfMemberFunctionPointer()
2761 MPT->getPointeeType()->castAs<FunctionProtoType>(); in EmitLoadOfMemberFunctionPointer()
2762 const CXXRecordDecl *RD = MPT->getMostRecentCXXRecordDecl(); in EmitLoadOfMemberFunctionPointer()
2780 if (MSInheritanceAttr::hasNVOffsetField(MPT, Inheritance)) in EmitLoadOfMemberFunctionPointer()