Lines Matching defs:PD
226 llvm::Constant *MakePropertyEncodingString(const ObjCPropertyDecl *PD,
232 CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container);
237 NameAndAttributes += PD->getNameAsString();
240 return MakeConstantString(PD->getNameAsString());
610 const ObjCProtocolDecl *PD) override;
611 void GenerateProtocol(const ObjCProtocolDecl *PD) override;
613 virtual llvm::Constant *GenerateProtocolRef(const ObjCProtocolDecl *PD);
615 llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD) override {
616 return GenerateProtocolRef(PD);
1333 const ObjCProtocolDecl *PD) override {
1334 auto Name = PD->getNameAsString();
1339 Protocol = GenerateProtocolRef(PD);
1370 void GenerateProtocol(const ObjCProtocolDecl *PD) override {
1373 llvm::Constant *GenerateProtocolRef(const ObjCProtocolDecl *PD) override {
1374 std::string ProtocolName = PD->getNameAsString();
1385 if (const ObjCProtocolDecl *Def = PD->getDefinition())
1386 PD = Def;
1400 GetRuntimeProtocolList(PD->protocol_begin(), PD->protocol_end());
1408 EmitProtocolMethodList(PD->instance_methods(), InstanceMethodList,
1410 EmitProtocolMethodList(PD->class_methods(), ClassMethodList,
1426 ProtocolBuilder.add(GeneratePropertyList(nullptr, PD, false, false));
1428 ProtocolBuilder.add(GeneratePropertyList(nullptr, PD, false, true));
1430 ProtocolBuilder.add(GeneratePropertyList(nullptr, PD, true, false));
1432 ProtocolBuilder.add(GeneratePropertyList(nullptr, PD, true, true));
3269 const ObjCProtocolDecl *PD) {
3270 auto protocol = GenerateProtocolRef(PD);
3276 llvm::Constant *CGObjCGNU::GenerateProtocolRef(const ObjCProtocolDecl *PD) {
3277 llvm::Constant *&protocol = ExistingProtocols[PD->getNameAsString()];
3279 GenerateProtocol(PD);
3310 void CGObjCGNU::GenerateProtocol(const ObjCProtocolDecl *PD) {
3311 if (PD->isNonRuntimeProtocol())
3314 std::string ProtocolName = PD->getNameAsString();
3317 if (const ObjCProtocolDecl *Def = PD->getDefinition())
3318 PD = Def;
3321 for (const auto *PI : PD->protocols())
3325 for (const auto *I : PD->instance_methods())
3333 for (const auto *I : PD->class_methods())
3356 GeneratePropertyList(nullptr, PD, false, false);
3358 GeneratePropertyList(nullptr, PD, false, true);
3463 for (const auto *PD : RuntimeProtos)
3464 Protocols.push_back(PD->getNameAsString());
3529 for (const auto *PD : Proto->properties()) {
3530 if (isClassProperty != PD->isClassProperty())
3534 if (!isProtocol && !Context.getObjCPropertyImplDeclForPropertyDecl(PD, Container))
3536 if (!PropertySet.insert(PD->getIdentifier()).second)
3538 Properties.push_back(PD);
3544 for (auto *PD : ClassExt->properties()) {
3545 if (isClassProperty != PD->isClassProperty())
3547 PropertySet.insert(PD->getIdentifier());
3548 Properties.push_back(PD);
3551 for (const auto *PD : OCD->properties()) {
3552 if (isClassProperty != PD->isClassProperty())
3556 if (isProtocol && (protocolOptionalProperties != PD->isOptional()))
3560 if (!PropertySet.insert(PD->getIdentifier()).second)
3563 Properties.push_back(PD);