Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:PD

846   llvm::Constant *GetPropertyTypeString(const ObjCPropertyDecl *PD,
902 llvm::Constant *GetProtocolRef(const ObjCProtocolDecl *PD);
948 virtual void GenerateProtocol(const ObjCProtocolDecl *PD);
953 virtual llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD)=0;
959 virtual llvm::Constant *GetOrEmitProtocolRef(const ObjCProtocolDecl *PD)=0;
1046 virtual llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD);
1052 virtual llvm::Constant *GetOrEmitProtocolRef(const ObjCProtocolDecl *PD);
1059 EmitProtocolExtension(const ObjCProtocolDecl *PD,
1121 const ObjCProtocolDecl *PD);
1240 virtual llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD);
1246 virtual llvm::Constant *GetOrEmitProtocolRef(const ObjCProtocolDecl *PD);
1378 const ObjCProtocolDecl *PD);
1876 const ObjCProtocolDecl *PD) {
1881 return llvm::ConstantExpr::getBitCast(GetProtocolRef(PD),
1885 void CGObjCCommonMac::GenerateProtocol(const ObjCProtocolDecl *PD) {
1888 DefinedProtocols.insert(PD->getIdentifier());
1893 if (Protocols.count(PD->getIdentifier()))
1894 GetOrEmitProtocol(PD);
1897 llvm::Constant *CGObjCCommonMac::GetProtocolRef(const ObjCProtocolDecl *PD) {
1898 if (DefinedProtocols.count(PD->getIdentifier()))
1899 return GetOrEmitProtocol(PD);
1901 return GetOrEmitProtocolRef(PD);
1916 llvm::Constant *CGObjCMac::GetOrEmitProtocol(const ObjCProtocolDecl *PD) {
1917 llvm::GlobalVariable *Entry = Protocols[PD->getIdentifier()];
1924 if (const ObjCProtocolDecl *Def = PD->getDefinition())
1925 PD = Def;
1936 i = PD->instmeth_begin(), e = PD->instmeth_end(); i != e; ++i) {
1940 return GetOrEmitProtocolRef(PD);
1952 i = PD->classmeth_begin(), e = PD->classmeth_end(); i != e; ++i) {
1956 return GetOrEmitProtocolRef(PD);
1971 EmitProtocolExtension(PD, OptInstanceMethods, OptClassMethods,
1973 GetClassName(PD->getIdentifier()),
1974 EmitProtocolList("\01L_OBJC_PROTOCOL_REFS_" + PD->getName(),
1975 PD->protocol_begin(),
1976 PD->protocol_end()),
1977 EmitMethodDescList("\01L_OBJC_PROTOCOL_INSTANCE_METHODS_" + PD->getName(),
1980 EmitMethodDescList("\01L_OBJC_PROTOCOL_CLASS_METHODS_" + PD->getName(),
1996 "\01L_OBJC_PROTOCOL_" + PD->getName());
2001 Protocols[PD->getIdentifier()] = Entry;
2008 llvm::Constant *CGObjCMac::GetOrEmitProtocolRef(const ObjCProtocolDecl *PD) {
2009 llvm::GlobalVariable *&Entry = Protocols[PD->getIdentifier()];
2019 "\01L_OBJC_PROTOCOL_" + PD->getName());
2038 CGObjCMac::EmitProtocolExtension(const ObjCProtocolDecl *PD,
2047 + PD->getName(),
2050 EmitMethodDescList("\01L_OBJC_PROTOCOL_CLASS_METHODS_OPT_" + PD->getName(),
2053 EmitPropertyList("\01L_OBJC_$_PROP_PROTO_LIST_" + PD->getName(), 0, PD,
2055 EmitProtocolMethodTypes("\01L_OBJC_PROTOCOL_METHOD_TYPES_" + PD->getName(),
2068 return CreateMetadataVar("\01L_OBJC_PROTOCOLEXT_" + PD->getName(),
2124 const ObjCPropertyDecl *PD = *I;
2125 if (!PropertySet.insert(PD->getIdentifier()))
2128 GetPropertyName(PD->getIdentifier()),
2129 GetPropertyTypeString(PD, Container)
2155 const ObjCPropertyDecl *PD = *I;
2156 PropertySet.insert(PD->getIdentifier());
2158 GetPropertyName(PD->getIdentifier()),
2159 GetPropertyTypeString(PD, Container)
2409 ObjCPropertyDecl *PD
2411 if (ObjCMethodDecl *MD = PD->getGetterMethodDecl())
2414 if (ObjCMethodDecl *MD = PD->getSetterMethodDecl())
4274 CGObjCCommonMac::GetPropertyTypeString(const ObjCPropertyDecl *PD,
4277 CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container, TypeStr);
5012 ObjCPropertyDecl *PD = PID->getPropertyDecl();
5014 if (ObjCMethodDecl *MD = PD->getGetterMethodDecl())
5017 if (ObjCMethodDecl *MD = PD->getSetterMethodDecl())
5238 const ObjCProtocolDecl *PD) {
5244 llvm::ConstantExpr::getBitCast(GetOrEmitProtocol(PD),
5248 ProtocolName += PD->getName();
5533 const ObjCProtocolDecl *PD) {
5534 llvm::GlobalVariable *&Entry = Protocols[PD->getIdentifier()];
5544 "\01l_OBJC_PROTOCOL_$_" + PD->getName());
5570 const ObjCProtocolDecl *PD) {
5571 llvm::GlobalVariable *Entry = Protocols[PD->getIdentifier()];
5578 if (const ObjCProtocolDecl *Def = PD->getDefinition())
5579 PD = Def;
5586 i = PD->instmeth_begin(), e = PD->instmeth_end(); i != e; ++i) {
5590 return GetOrEmitProtocolRef(PD);
5602 i = PD->classmeth_begin(), e = PD->classmeth_end(); i != e; ++i) {
5606 return GetOrEmitProtocolRef(PD);
5623 Values[1] = GetClassName(PD->getIdentifier());
5624 Values[2] = EmitProtocolList("\01l_OBJC_$_PROTOCOL_REFS_" + PD->getName(),
5625 PD->protocol_begin(),
5626 PD->protocol_end());
5629 + PD->getName(),
5633 + PD->getName(),
5637 + PD->getName(),
5641 + PD->getName(),
5644 Values[7] = EmitPropertyList("\01l_OBJC_$_PROP_LIST_" + PD->getName(),
5645 0, PD, ObjCTypes);
5651 + PD->getName(),
5664 "\01l_OBJC_PROTOCOL_$_" + PD->getName());
5669 Protocols[PD->getIdentifier()] = Entry;
5679 "\01l_OBJC_LABEL_PROTOCOL_$_" + PD->getName());