Home
last modified time | relevance | path

Searched refs:OMD (Results 1 – 23 of 23) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/
DCGObjC.cpp684 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl); in EmitObjCMessageExpr() local
685 bool isCategoryImpl = isa<ObjCCategoryImplDecl>(OMD->getDeclContext()); in EmitObjCMessageExpr()
688 OMD->getClassInterface(), in EmitObjCMessageExpr()
750 void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD, in StartObjCMethod() argument
752 SourceLocation StartLoc = OMD->getBeginLoc(); in StartObjCMethod()
755 if (OMD->hasAttr<NoDebugAttr>()) in StartObjCMethod()
758 llvm::Function *Fn = CGM.getObjCRuntime().GenerateMethod(OMD, CD); in StartObjCMethod()
760 const CGFunctionInfo &FI = CGM.getTypes().arrangeObjCMethodDeclaration(OMD); in StartObjCMethod()
761 if (OMD->isDirectMethod()) { in StartObjCMethod()
763 CGM.SetLLVMFunctionAttributes(OMD, FI, Fn, /*IsThunk=*/false); in StartObjCMethod()
[all …]
DCGObjCRuntime.h239 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
245 const ObjCMethodDecl *OMD,
DCGObjCGNU.cpp599 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
602 const ObjCMethodDecl *OMD,
1900 auto addIfExists = [&](const ObjCMethodDecl *OMD) { in GenerateClass() argument
1901 if (OMD && OMD->hasBody()) in GenerateClass()
1902 InstanceMethods.push_back(OMD); in GenerateClass()
2828 for (const auto *OMD : Methods) { in GenerateMethodList() local
2830 TheModule.getFunction(getSymbolNameForMethod(OMD)); in GenerateMethodList()
2835 Method.add(GetConstantSelector(OMD->getSelector(), in GenerateMethodList()
2836 Context.getObjCEncodingForMethodDecl(OMD))); in GenerateMethodList()
2837 Method.add(MakeConstantString(Context.getObjCEncodingForMethodDecl(OMD, true))); in GenerateMethodList()
[all …]
DCGObjCMac.cpp1074 const ObjCMethodDecl *OMD,
1093 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
1096 llvm::Function *GenerateDirectMethod(const ObjCMethodDecl *OMD,
1100 const ObjCMethodDecl *OMD,
4021 llvm::Function *CGObjCCommonMac::GenerateMethod(const ObjCMethodDecl *OMD, in GenerateMethod() argument
4025 if (OMD->isDirectMethod()) { in GenerateMethod()
4026 Method = GenerateDirectMethod(OMD, CD); in GenerateMethod()
4028 auto Name = getSymbolNameForMethod(OMD); in GenerateMethod()
4032 Types.GetFunctionType(Types.arrangeObjCMethodDeclaration(OMD)); in GenerateMethod()
4038 MethodDefinitions.insert(std::make_pair(OMD, Method)); in GenerateMethod()
[all …]
DCGObjCRuntime.cpp394 std::string CGObjCRuntime::getSymbolNameForMethod(const ObjCMethodDecl *OMD, in getSymbolNameForMethod() argument
398 CGM.getCXXABI().getMangleContext().mangleObjCMethodName(OMD, out, in getSymbolNameForMethod()
DCodeGenFunction.cpp646 else if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(F)) in endsWithReturn() local
647 Body = OMD->getBody(); in endsWithReturn()
784 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in StartFunction() local
785 IdentifierInfo *II = OMD->getSelector().getIdentifierInfoForSlot(0); in StartFunction()
786 if (OMD->getMethodFamily() == OMF_dealloc || in StartFunction()
787 OMD->getMethodFamily() == OMF_initialize || in StartFunction()
788 (OMD->getSelector().isUnarySelector() && II->isStr(".cxx_destruct"))) { in StartFunction()
DCGDebugInfo.cpp255 StringRef CGDebugInfo::getObjCMethodName(const ObjCMethodDecl *OMD) { in getObjCMethodName() argument
258 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getObjCMethodName()
259 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName()
274 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getObjCMethodName()
3759 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getObjCMethodDeclaration() local
3760 if (!OMD) in getObjCMethodDeclaration()
3763 if (CGM.getCodeGenOpts().DwarfVersion < 5 && !OMD->isDirectMethod()) in getObjCMethodDeclaration()
3766 if (OMD->isDirectMethod()) in getObjCMethodDeclaration()
3773 ID = OMD->getClassInterface(); in getObjCMethodDeclaration()
3782 InterfaceType, getObjCMethodName(OMD), StringRef(), in getObjCMethodDeclaration()
[all …]
DCodeGenModule.cpp5810 auto *OMD = cast<ObjCImplementationDecl>(D); in EmitTopLevelDecl() local
5811 EmitObjCPropertyImplementations(OMD); in EmitTopLevelDecl()
5812 EmitObjCIvarInitializations(OMD); in EmitTopLevelDecl()
5813 ObjCRuntime->GenerateClass(OMD); in EmitTopLevelDecl()
5818 OMD->getClassInterface()), OMD->getLocation()); in EmitTopLevelDecl()
5822 auto *OMD = cast<ObjCMethodDecl>(D); in EmitTopLevelDecl() local
5824 if (OMD->getBody()) in EmitTopLevelDecl()
5825 CodeGenFunction(*this).GenerateObjCMethod(OMD); in EmitTopLevelDecl()
DCGDecl.cpp230 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(DC)) in getStaticDeclName() local
231 ContextName = OMD->getSelector().getAsString(); in getStaticDeclName()
DCodeGenFunction.h468 AbstractCallee(const ObjCMethodDecl *OMD) : CalleeDecl(OMD) {}
2041 void GenerateObjCMethod(const ObjCMethodDecl *OMD);
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
DDeclPrinter.cpp1272 void DeclPrinter::VisitObjCMethodDecl(ObjCMethodDecl *OMD) { in VisitObjCMethodDecl() argument
1273 if (OMD->isInstanceMethod()) in VisitObjCMethodDecl()
1277 if (!OMD->getReturnType().isNull()) { in VisitObjCMethodDecl()
1278 PrintObjCMethodType(OMD->getASTContext(), OMD->getObjCDeclQualifier(), in VisitObjCMethodDecl()
1279 OMD->getReturnType()); in VisitObjCMethodDecl()
1282 std::string name = OMD->getSelector().getAsString(); in VisitObjCMethodDecl()
1284 for (const auto *PI : OMD->parameters()) { in VisitObjCMethodDecl()
1290 PrintObjCMethodType(OMD->getASTContext(), in VisitObjCMethodDecl()
1297 if (OMD->param_begin() == OMD->param_end()) in VisitObjCMethodDecl()
1300 if (OMD->isVariadic()) in VisitObjCMethodDecl()
[all …]
DMangle.cpp191 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local
192 mangleObjCMethodNameAsSourceName(OMD, Out); in mangleName()
208 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local
209 mangleObjCMethodNameAsSourceName(OMD, Out); in mangleName()
DASTContext.cpp577 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getCommentForDecl() local
578 if (OMD && OMD->isPropertyAccessor()) in getCommentForDecl()
579 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl()
582 if (OMD) in getCommentForDecl()
583 addRedeclaredMethods(OMD, Overridden); in getCommentForDecl()
/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DMIGChecker.cpp175 for (const auto *OMD: MD->overridden_methods()) in isInMIGCall() local
176 if (OMD->hasAttr<MIGServerRoutineAttr>()) in isInMIGCall()
DLocalizationChecker.cpp848 if (const ObjCMethodDecl *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in checkPreObjCMessage() local
849 auto formals = OMD->parameters(); in checkPreObjCMessage()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Analysis/
DAnalysisDeclContext.cpp368 } else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in getFunctionName() local
371 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getFunctionName()
372 const DeclContext *DC = OMD->getDeclContext(); in getFunctionName()
387 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getFunctionName()
DBodyFarm.cpp858 auto *OMD = Ext->getInstanceMethod(D->getSelector()); in getBody() local
859 if (OMD && !OMD->isImplicit()) in getBody()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp1064 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument
1069 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl()
1075 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl()
1084 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl()
1090 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl()
1098 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl()
1105 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl()
1125 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl()
1139 if (OMD->isVariadic()) in RewriteObjCMethodDecl()
1174 for (auto *OMD : IMD ? IMD->instance_methods() : CID->instance_methods()) { in RewriteImplementationDecl() local
[all …]
DRewriteModernObjC.cpp912 auto *OMD = IMP->getInstanceMethod(getter ? PD->getGetterName() in mustSynthesizeSetterGetterMethod() local
914 return !OMD || OMD->isSynthesizedAccessorStub(); in mustSynthesizeSetterGetterMethod()
1230 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument
1235 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl()
1241 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl()
1250 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl()
1256 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl()
1264 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl()
1271 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl()
1291 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
DSemaExprMember.cpp436 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList() local
437 return OMD; in FindGetterSetterNameDeclFromProtocolList()
461 if (ObjCMethodDecl *OMD = I->getInstanceMethod(Sel)) { in FindGetterSetterNameDecl() local
462 GDecl = OMD; in FindGetterSetterNameDecl()
1507 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(PMDecl)) { in LookupMemberExpr() local
1519 ObjCPropertyRefExpr(OMD, SMD, S.Context.PseudoObjectTy, VK_LValue, in LookupMemberExpr()
DSemaObjCProperty.cpp1440 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() local
1442 if (!OMD) in ActOnPropertyImplDecl()
1443 OMD = RedeclarePropertyAccessor(Context, IC, getterMethod, AtLoc, in ActOnPropertyImplDecl()
1445 PIDecl->setGetterMethodDecl(OMD); in ActOnPropertyImplDecl()
1504 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() local
1506 if (!OMD) in ActOnPropertyImplDecl()
1507 OMD = RedeclarePropertyAccessor(Context, IC, setterMethod, in ActOnPropertyImplDecl()
1509 PIDecl->setSetterMethodDecl(OMD); in ActOnPropertyImplDecl()
DSemaExprObjC.cpp1749 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes() local
1750 if (OMD && !OMD->isInvalidDecl()) { in CheckMessageArgumentTypes()
1756 Selector MatchedSel = OMD->getSelector(); in CheckMessageArgumentTypes()
DSemaDeclCXX.cpp3120 const CXXMethodDecl *OMD = *MD->begin_overridden_methods(); in DiagnoseAbsenceOfOverrideControl() local
3121 Diag(OMD->getLocation(), diag::note_overridden_virtual_function); in DiagnoseAbsenceOfOverrideControl()