Lines Matching defs:PD

227   llvm::Constant *MakePropertyEncodingString(const ObjCPropertyDecl *PD,
233 CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container);
238 NameAndAttributes += PD->getNameAsString();
241 return MakeConstantString(PD->getNameAsString());
611 const ObjCProtocolDecl *PD) override;
612 void GenerateProtocol(const ObjCProtocolDecl *PD) override;
614 virtual llvm::Constant *GenerateProtocolRef(const ObjCProtocolDecl *PD);
616 llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD) override {
617 return GenerateProtocolRef(PD);
1332 const ObjCProtocolDecl *PD) override {
1333 auto Name = PD->getNameAsString();
1338 Protocol = GenerateProtocolRef(PD);
1369 void GenerateProtocol(const ObjCProtocolDecl *PD) override {
1372 llvm::Constant *GenerateProtocolRef(const ObjCProtocolDecl *PD) override {
1373 std::string ProtocolName = PD->getNameAsString();
1384 if (const ObjCProtocolDecl *Def = PD->getDefinition())
1385 PD = Def;
1399 GetRuntimeProtocolList(PD->protocol_begin(), PD->protocol_end());
1407 EmitProtocolMethodList(PD->instance_methods(), InstanceMethodList,
1409 EmitProtocolMethodList(PD->class_methods(), ClassMethodList,
1425 ProtocolBuilder.add(GeneratePropertyList(nullptr, PD, false, false));
1427 ProtocolBuilder.add(GeneratePropertyList(nullptr, PD, false, true));
1429 ProtocolBuilder.add(GeneratePropertyList(nullptr, PD, true, false));
1431 ProtocolBuilder.add(GeneratePropertyList(nullptr, PD, true, true));
3257 const ObjCProtocolDecl *PD) {
3258 auto protocol = GenerateProtocolRef(PD);
3264 llvm::Constant *CGObjCGNU::GenerateProtocolRef(const ObjCProtocolDecl *PD) {
3265 llvm::Constant *&protocol = ExistingProtocols[PD->getNameAsString()];
3267 GenerateProtocol(PD);
3298 void CGObjCGNU::GenerateProtocol(const ObjCProtocolDecl *PD) {
3299 if (PD->isNonRuntimeProtocol())
3302 std::string ProtocolName = PD->getNameAsString();
3305 if (const ObjCProtocolDecl *Def = PD->getDefinition())
3306 PD = Def;
3309 for (const auto *PI : PD->protocols())
3313 for (const auto *I : PD->instance_methods())
3321 for (const auto *I : PD->class_methods())
3344 GeneratePropertyList(nullptr, PD, false, false);
3346 GeneratePropertyList(nullptr, PD, false, true);
3451 for (const auto *PD : RuntimeProtos)
3452 Protocols.push_back(PD->getNameAsString());
3517 for (const auto *PD : Proto->properties()) {
3518 if (isClassProperty != PD->isClassProperty())
3522 if (!isProtocol && !Context.getObjCPropertyImplDeclForPropertyDecl(PD, Container))
3524 if (!PropertySet.insert(PD->getIdentifier()).second)
3526 Properties.push_back(PD);
3532 for (auto *PD : ClassExt->properties()) {
3533 if (isClassProperty != PD->isClassProperty())
3535 PropertySet.insert(PD->getIdentifier());
3536 Properties.push_back(PD);
3539 for (const auto *PD : OCD->properties()) {
3540 if (isClassProperty != PD->isClassProperty())
3544 if (isProtocol && (protocolOptionalProperties != PD->isOptional()))
3548 if (!PropertySet.insert(PD->getIdentifier()).second)
3551 Properties.push_back(PD);