Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjC.cpp757 if (OMD->hasAttr<NoDebugAttr>()) in StartObjCMethod()
763 if (OMD->isDirectMethod()) { in StartObjCMethod()
772 if (!OMD->isDirectMethod()) in StartObjCMethod()
775 args.append(OMD->param_begin(), OMD->param_end()); in StartObjCMethod()
777 CurGD = OMD; in StartObjCMethod()
778 CurEHLocation = OMD->getEndLoc(); in StartObjCMethod()
780 StartFunction(OMD, OMD->getReturnType(), Fn, FI, args, in StartObjCMethod()
783 if (OMD->isDirectMethod()) { in StartObjCMethod()
793 OMD->isInstanceMethod() && in StartObjCMethod()
808 StartObjCMethod(OMD, OMD->getClassInterface()); in GenerateObjCMethod()
[all …]
H A DCGObjCGNU.cpp1914 if (OMD && OMD->hasBody()) in GenerateClass()
1915 InstanceMethods.push_back(OMD); in GenerateClass()
2052 if (OMD->isClassMethod()) { in GenerateDirectMethodPrologue()
2079 auto retTy = OMD->getReturnType(); in GenerateDirectMethodPrologue()
2092 if (OMD->isClassMethod()) { in GenerateDirectMethodPrologue()
2119 if (OMD->getCmdDecl()->isUsed()) { in GenerateDirectMethodPrologue()
2122 CGF.EmitVarDecl(*OMD->getCmdDecl()); in GenerateDirectMethodPrologue()
3037 for (const auto *OMD : Methods) { in GenerateMethodList() local
4064 bool isDirect = OMD->isDirectMethod(); in GenerateMethod()
4073 auto *COMD = OMD->getCanonicalDecl(); in GenerateMethod()
[all …]
H A DCGObjCRuntime.h240 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
246 const ObjCMethodDecl *OMD,
H A DCGObjCMac.cpp3944 if (OMD->isDirectMethod()) { in GenerateMethod()
3945 Method = GenerateDirectMethod(OMD, CD); in GenerateMethod()
3947 auto Name = getSymbolNameForMethod(OMD); in GenerateMethod()
3957 MethodDefinitions.insert(std::make_pair(OMD, Method)); in GenerateMethod()
3965 auto *COMD = OMD->getCanonicalDecl(); in GenerateDirectMethod()
3979 if (!OMD->getBody() || COMD->getReturnType() == OMD->getReturnType()) in GenerateDirectMethod()
4029 if (OMD->isClassMethod()) { in GenerateDirectMethodPrologue()
4073 auto retTy = OMD->getReturnType(); in GenerateDirectMethodPrologue()
4087 if (OMD->getCmdDecl()->isUsed()) { in GenerateDirectMethodPrologue()
4090 CGF.EmitVarDecl(*OMD->getCmdDecl()); in GenerateDirectMethodPrologue()
[all …]
H A DCGObjCRuntime.cpp469 std::string CGObjCRuntime::getSymbolNameForMethod(const ObjCMethodDecl *OMD, in getSymbolNameForMethod() argument
473 CGM.getCXXABI().getMangleContext().mangleObjCMethodName(OMD, out, in getSymbolNameForMethod()
H A DCodeGenFunction.cpp641 else if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(F)) in endsWithReturn() local
642 Body = OMD->getBody(); in endsWithReturn()
808 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in StartFunction() local
809 IdentifierInfo *II = OMD->getSelector().getIdentifierInfoForSlot(0); in StartFunction()
810 if (OMD->getMethodFamily() == OMF_dealloc || in StartFunction()
811 OMD->getMethodFamily() == OMF_initialize || in StartFunction()
812 (OMD->getSelector().isUnarySelector() && II->isStr(".cxx_destruct"))) { in StartFunction()
H A DCGDebugInfo.cpp268 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getObjCMethodName()
269 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName()
284 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getObjCMethodName()
4093 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getObjCMethodDeclaration() local
4094 if (!OMD) in getObjCMethodDeclaration()
4100 if (OMD->isDirectMethod()) in getObjCMethodDeclaration()
4107 ID = OMD->getClassInterface(); in getObjCMethodDeclaration()
4116 InterfaceType, getObjCMethodName(OMD), StringRef(), in getObjCMethodDeclaration()
4119 ObjCMethodCache[ID].push_back({FD, OMD->isDirectMethod()}); in getObjCMethodDeclaration()
4246 Name = getObjCMethodName(OMD); in emitFunctionStart()
[all …]
H A DCodeGenModule.cpp6851 auto *OMD = cast<ObjCImplementationDecl>(D); in EmitTopLevelDecl() local
6852 EmitObjCPropertyImplementations(OMD); in EmitTopLevelDecl()
6853 EmitObjCIvarInitializations(OMD); in EmitTopLevelDecl()
6854 ObjCRuntime->GenerateClass(OMD); in EmitTopLevelDecl()
6859 OMD->getClassInterface()), OMD->getLocation()); in EmitTopLevelDecl()
6863 auto *OMD = cast<ObjCMethodDecl>(D); in EmitTopLevelDecl() local
6865 if (OMD->getBody()) in EmitTopLevelDecl()
6866 CodeGenFunction(*this).GenerateObjCMethod(OMD); in EmitTopLevelDecl()
H A DCGDecl.cpp234 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(DC)) in getStaticDeclName() local
235 ContextName = OMD->getSelector().getAsString(); in getStaticDeclName()
H A DCodeGenFunction.h509 AbstractCallee(const ObjCMethodDecl *OMD) : CalleeDecl(OMD) {}
2163 void GenerateObjCMethod(const ObjCMethodDecl *OMD);
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DDeclPrinter.cpp1429 if (OMD->isInstanceMethod()) in VisitObjCMethodDecl()
1433 if (!OMD->getReturnType().isNull()) { in VisitObjCMethodDecl()
1434 PrintObjCMethodType(OMD->getASTContext(), OMD->getObjCDeclQualifier(), in VisitObjCMethodDecl()
1435 OMD->getReturnType()); in VisitObjCMethodDecl()
1438 std::string name = OMD->getSelector().getAsString(); in VisitObjCMethodDecl()
1440 for (const auto *PI : OMD->parameters()) { in VisitObjCMethodDecl()
1446 PrintObjCMethodType(OMD->getASTContext(), in VisitObjCMethodDecl()
1453 if (OMD->param_begin() == OMD->param_end()) in VisitObjCMethodDecl()
1456 if (OMD->isVariadic()) in VisitObjCMethodDecl()
1459 prettyPrintAttributes(OMD); in VisitObjCMethodDecl()
[all …]
H A DMangle.cpp189 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local
190 mangleObjCMethodNameAsSourceName(OMD, Out); in mangleName()
210 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local
211 mangleObjCMethodNameAsSourceName(OMD, Out); in mangleName()
H A DASTContext.cpp603 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getCommentForDecl() local
604 if (OMD && OMD->isPropertyAccessor()) in getCommentForDecl()
605 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl()
608 if (OMD) in getCommentForDecl()
609 addRedeclaredMethods(OMD, Overridden); in getCommentForDecl()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMIGChecker.cpp177 for (const auto *OMD: MD->overridden_methods()) in isInMIGCall() local
178 if (OMD->hasAttr<MIGServerRoutineAttr>()) in isInMIGCall()
H A DLocalizationChecker.cpp844 if (const ObjCMethodDecl *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in checkPreObjCMessage() local
845 for (auto [Idx, FormalParam] : llvm::enumerate(OMD->parameters())) { in checkPreObjCMessage()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp367 } else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in getFunctionName() local
370 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getFunctionName()
371 const DeclContext *DC = OMD->getDeclContext(); in getFunctionName()
386 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getFunctionName()
H A DBodyFarm.cpp899 auto *OMD = Ext->getInstanceMethod(D->getSelector()); in getBody() local
900 if (OMD && !OMD->isImplicit()) in getBody()
/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp1075 if (OMD->isInstanceMethod()) 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()
1175 if (!OMD->getBody()) in RewriteImplementationDecl()
1178 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr); in RewriteImplementationDecl()
1179 SourceLocation LocStart = OMD->getBeginLoc(); in RewriteImplementationDecl()
1188 if (!OMD->getBody()) in RewriteImplementationDecl()
1191 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr); in RewriteImplementationDecl()
[all …]
H A DRewriteModernObjC.cpp915 return !OMD || OMD->isSynthesizedAccessorStub(); in mustSynthesizeSetterGetterMethod()
1242 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl()
1265 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl()
1272 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl()
1292 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl()
1306 if (OMD->isVariadic()) in RewriteObjCMethodDecl()
1352 if (!OMD->getBody()) in RewriteImplementationDecl()
1355 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr); in RewriteImplementationDecl()
1365 if (!OMD->getBody()) in RewriteImplementationDecl()
1368 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr); in RewriteImplementationDecl()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprMember.cpp470 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList() local
471 return OMD; in FindGetterSetterNameDeclFromProtocolList()
495 if (ObjCMethodDecl *OMD = I->getInstanceMethod(Sel)) { in FindGetterSetterNameDecl() local
496 GDecl = OMD; in FindGetterSetterNameDecl()
1556 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(PMDecl)) { in LookupMemberExpr() local
1568 ObjCPropertyRefExpr(OMD, SMD, S.Context.PseudoObjectTy, VK_LValue, in LookupMemberExpr()
H A DSemaObjCProperty.cpp1439 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() local
1441 if (!OMD) in ActOnPropertyImplDecl()
1442 OMD = RedeclarePropertyAccessor(Context, IC, getterMethod, AtLoc, in ActOnPropertyImplDecl()
1444 PIDecl->setGetterMethodDecl(OMD); in ActOnPropertyImplDecl()
1503 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() local
1505 if (!OMD) in ActOnPropertyImplDecl()
1506 OMD = RedeclarePropertyAccessor(Context, IC, setterMethod, in ActOnPropertyImplDecl()
1508 PIDecl->setSetterMethodDecl(OMD); in ActOnPropertyImplDecl()
H A DSemaExprObjC.cpp1748 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes() local
1749 if (OMD && !OMD->isInvalidDecl()) { in CheckMessageArgumentTypes()
1755 Selector MatchedSel = OMD->getSelector(); in CheckMessageArgumentTypes()
H A DSemaDeclAttr.cpp3831 if (auto *OMD = dyn_cast<ObjCMethodDecl>(D)) in handleFormatArgAttr() local
3832 if (auto *Interface = OMD->getClassInterface()) in handleFormatArgAttr()
H A DSemaDeclCXX.cpp3344 const CXXMethodDecl *OMD = *MD->begin_overridden_methods(); in DiagnoseAbsenceOfOverrideControl() local
3345 Diag(OMD->getLocation(), diag::note_overridden_virtual_function); in DiagnoseAbsenceOfOverrideControl()
H A DSemaChecking.cpp10634 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(D)) in checkFormatStringExpr() local
10635 IsVariadic = OMD->isVariadic(); in checkFormatStringExpr()

12