Lines Matching refs:PD
903 llvm::Constant *GetPropertyTypeString(const ObjCPropertyDecl *PD,
989 llvm::Constant *GetProtocolRef(const ObjCProtocolDecl *PD);
1040 void GenerateProtocol(const ObjCProtocolDecl *PD) override;
1045 virtual llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD)=0;
1051 virtual llvm::Constant *GetOrEmitProtocolRef(const ObjCProtocolDecl *PD)=0;
1144 llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD) override;
1150 llvm::Constant *GetOrEmitProtocolRef(const ObjCProtocolDecl *PD) override;
1157 EmitProtocolExtension(const ObjCProtocolDecl *PD,
1214 const ObjCProtocolDecl *PD) override;
1334 llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD) override;
1340 llvm::Constant *GetOrEmitProtocolRef(const ObjCProtocolDecl *PD) override;
1490 const ObjCProtocolDecl *PD) override;
2652 const ObjCProtocolDecl *PD) { in GenerateProtocolRef() argument
2657 return llvm::ConstantExpr::getBitCast(GetProtocolRef(PD), in GenerateProtocolRef()
2661 void CGObjCCommonMac::GenerateProtocol(const ObjCProtocolDecl *PD) { in GenerateProtocol() argument
2664 DefinedProtocols.insert(PD->getIdentifier()); in GenerateProtocol()
2669 if (Protocols.count(PD->getIdentifier())) in GenerateProtocol()
2670 GetOrEmitProtocol(PD); in GenerateProtocol()
2673 llvm::Constant *CGObjCCommonMac::GetProtocolRef(const ObjCProtocolDecl *PD) { in GetProtocolRef() argument
2674 if (DefinedProtocols.count(PD->getIdentifier())) in GetProtocolRef()
2675 return GetOrEmitProtocol(PD); in GetProtocolRef()
2677 return GetOrEmitProtocolRef(PD); in GetProtocolRef()
2692 llvm::Constant *CGObjCMac::GetOrEmitProtocol(const ObjCProtocolDecl *PD) { in GetOrEmitProtocol() argument
2693 llvm::GlobalVariable *Entry = Protocols[PD->getIdentifier()]; in GetOrEmitProtocol()
2700 if (const ObjCProtocolDecl *Def = PD->getDefinition()) in GetOrEmitProtocol()
2701 PD = Def; in GetOrEmitProtocol()
2711 for (const auto *MD : PD->instance_methods()) { in GetOrEmitProtocol()
2714 return GetOrEmitProtocolRef(PD); in GetOrEmitProtocol()
2725 for (const auto *MD : PD->class_methods()) { in GetOrEmitProtocol()
2728 return GetOrEmitProtocolRef(PD); in GetOrEmitProtocol()
2743 EmitProtocolExtension(PD, OptInstanceMethods, OptClassMethods, in GetOrEmitProtocol()
2745 GetClassName(PD->getObjCRuntimeNameAsString()), in GetOrEmitProtocol()
2746 EmitProtocolList("OBJC_PROTOCOL_REFS_" + PD->getName(), in GetOrEmitProtocol()
2747 PD->protocol_begin(), PD->protocol_end()), in GetOrEmitProtocol()
2748 EmitMethodDescList("OBJC_PROTOCOL_INSTANCE_METHODS_" + PD->getName(), in GetOrEmitProtocol()
2751 EmitMethodDescList("OBJC_PROTOCOL_CLASS_METHODS_" + PD->getName(), in GetOrEmitProtocol()
2764 Init, "OBJC_PROTOCOL_" + PD->getName()); in GetOrEmitProtocol()
2769 Protocols[PD->getIdentifier()] = Entry; in GetOrEmitProtocol()
2776 llvm::Constant *CGObjCMac::GetOrEmitProtocolRef(const ObjCProtocolDecl *PD) { in GetOrEmitProtocolRef() argument
2777 llvm::GlobalVariable *&Entry = Protocols[PD->getIdentifier()]; in GetOrEmitProtocolRef()
2785 nullptr, "OBJC_PROTOCOL_" + PD->getName()); in GetOrEmitProtocolRef()
2804 CGObjCMac::EmitProtocolExtension(const ObjCProtocolDecl *PD, in EmitProtocolExtension() argument
2812 EmitMethodDescList("OBJC_PROTOCOL_INSTANCE_METHODS_OPT_" + PD->getName(), in EmitProtocolExtension()
2815 EmitMethodDescList("OBJC_PROTOCOL_CLASS_METHODS_OPT_" + PD->getName(), in EmitProtocolExtension()
2818 EmitPropertyList("OBJC_$_PROP_PROTO_LIST_" + PD->getName(), nullptr, PD, in EmitProtocolExtension()
2820 EmitProtocolMethodTypes("OBJC_PROTOCOL_METHOD_TYPES_" + PD->getName(), in EmitProtocolExtension()
2832 return CreateMetadataVar("\01l_OBJC_PROTOCOLEXT_" + PD->getName(), Init, in EmitProtocolExtension()
2884 for (const auto *PD : Proto->properties()) { in PushProtocolProperties() local
2885 if (!PropertySet.insert(PD->getIdentifier()).second) in PushProtocolProperties()
2888 GetPropertyName(PD->getIdentifier()), in PushProtocolProperties()
2889 GetPropertyTypeString(PD, Container) in PushProtocolProperties()
2914 auto AddProperty = [&](const ObjCPropertyDecl *PD) { in EmitPropertyList() argument
2915 llvm::Constant *Prop[] = {GetPropertyName(PD->getIdentifier()), in EmitPropertyList()
2916 GetPropertyTypeString(PD, Container)}; in EmitPropertyList()
2921 for (auto *PD : ClassExt->properties()) { in EmitPropertyList() local
2922 PropertySet.insert(PD->getIdentifier()); in EmitPropertyList()
2923 AddProperty(PD); in EmitPropertyList()
2925 for (const auto *PD : OCD->properties()) { in EmitPropertyList() local
2928 if (!PropertySet.insert(PD->getIdentifier()).second) in EmitPropertyList()
2930 AddProperty(PD); in EmitPropertyList()
3241 ObjCPropertyDecl *PD = PID->getPropertyDecl(); in GenerateClass() local
3243 if (ObjCMethodDecl *MD = PD->getGetterMethodDecl()) in GenerateClass()
3246 if (ObjCMethodDecl *MD = PD->getSetterMethodDecl()) in GenerateClass()
5066 CGObjCCommonMac::GetPropertyTypeString(const ObjCPropertyDecl *PD, in GetPropertyTypeString() argument
5069 CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container, TypeStr); in GetPropertyTypeString()
5797 ObjCPropertyDecl *PD = PID->getPropertyDecl(); in BuildClassRoTInitializer() local
5799 if (ObjCMethodDecl *MD = PD->getGetterMethodDecl()) in BuildClassRoTInitializer()
5802 if (ObjCMethodDecl *MD = PD->getSetterMethodDecl()) in BuildClassRoTInitializer()
6062 const ObjCProtocolDecl *PD) { in GenerateProtocolRef() argument
6068 llvm::ConstantExpr::getBitCast(GetOrEmitProtocol(PD), in GenerateProtocolRef()
6072 ProtocolName += PD->getObjCRuntimeNameAsString(); in GenerateProtocolRef()
6365 const ObjCProtocolDecl *PD) { in GetOrEmitProtocolRef() argument
6366 llvm::GlobalVariable *&Entry = Protocols[PD->getIdentifier()]; in GetOrEmitProtocolRef()
6376 "\01l_OBJC_PROTOCOL_$_" + PD->getObjCRuntimeNameAsString()); in GetOrEmitProtocolRef()
6403 const ObjCProtocolDecl *PD) { in GetOrEmitProtocol() argument
6404 llvm::GlobalVariable *Entry = Protocols[PD->getIdentifier()]; in GetOrEmitProtocol()
6411 if (const ObjCProtocolDecl *Def = PD->getDefinition()) in GetOrEmitProtocol()
6412 PD = Def; in GetOrEmitProtocol()
6418 for (const auto *MD : PD->instance_methods()) { in GetOrEmitProtocol()
6421 return GetOrEmitProtocolRef(PD); in GetOrEmitProtocol()
6432 for (const auto *MD : PD->class_methods()) { in GetOrEmitProtocol()
6435 return GetOrEmitProtocolRef(PD); in GetOrEmitProtocol()
6452 Values[1] = GetClassName(PD->getObjCRuntimeNameAsString()); in GetOrEmitProtocol()
6453 Values[2] = EmitProtocolList("\01l_OBJC_$_PROTOCOL_REFS_" + PD->getObjCRuntimeNameAsString(), in GetOrEmitProtocol()
6454 PD->protocol_begin(), in GetOrEmitProtocol()
6455 PD->protocol_end()); in GetOrEmitProtocol()
6458 + PD->getObjCRuntimeNameAsString(), in GetOrEmitProtocol()
6462 + PD->getObjCRuntimeNameAsString(), in GetOrEmitProtocol()
6466 + PD->getObjCRuntimeNameAsString(), in GetOrEmitProtocol()
6470 + PD->getObjCRuntimeNameAsString(), in GetOrEmitProtocol()
6473 Values[7] = EmitPropertyList("\01l_OBJC_$_PROP_LIST_" + PD->getObjCRuntimeNameAsString(), in GetOrEmitProtocol()
6474 nullptr, PD, ObjCTypes); in GetOrEmitProtocol()
6480 + PD->getObjCRuntimeNameAsString(), in GetOrEmitProtocol()
6496 "\01l_OBJC_PROTOCOL_$_" + PD->getObjCRuntimeNameAsString()); in GetOrEmitProtocol()
6501 Protocols[PD->getIdentifier()] = Entry; in GetOrEmitProtocol()
6511 "\01l_OBJC_LABEL_PROTOCOL_$_" + PD->getObjCRuntimeNameAsString()); in GetOrEmitProtocol()