Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjC.cpp686 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl); in EmitObjCMessageExpr() local
687 bool isCategoryImpl = isa<ObjCCategoryImplDecl>(OMD->getDeclContext()); in EmitObjCMessageExpr()
690 OMD->getClassInterface(), in EmitObjCMessageExpr()
752 void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD, in StartObjCMethod() argument
754 SourceLocation StartLoc = OMD->getBeginLoc(); in StartObjCMethod()
757 if (OMD->hasAttr<NoDebugAttr>()) in StartObjCMethod()
760 llvm::Function *Fn = CGM.getObjCRuntime().GenerateMethod(OMD, CD); in StartObjCMethod()
762 const CGFunctionInfo &FI = CGM.getTypes().arrangeObjCMethodDeclaration(OMD); in StartObjCMethod()
763 if (OMD->isDirectMethod()) { in StartObjCMethod()
765 CGM.SetLLVMFunctionAttributes(OMD, FI, Fn, /*IsThunk=*/false); in StartObjCMethod()
[all …]
H A DCGObjCGNU.cpp597 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
604 const ObjCMethodDecl *OMD,
1920 auto addIfExists = [&](const ObjCMethodDecl *OMD) { in GenerateClass() argument
1921 if (OMD && OMD->hasBody()) in GenerateClass()
1922 InstanceMethods.push_back(OMD); in GenerateClass()
2036 const ObjCMethodDecl *OMD, in GenerateDirectMethodPrologue() argument
2040 auto selfAddr = CGF.GetAddrOfLocalVar(OMD->getSelfDecl()); in GenerateDirectMethodPrologue()
2060 if (OMD->isClassMethod()) { in GenerateDirectMethodPrologue()
2087 auto retTy = OMD->getReturnType(); in GenerateDirectMethodPrologue()
2100 if (OMD->isClassMethod()) { in GenerateDirectMethodPrologue()
[all …]
H A DCGObjCRuntime.h225 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
231 const ObjCMethodDecl *OMD,
H A DCGObjCMac.cpp1035 const ObjCMethodDecl *OMD,
1053 GenerateMethod(const ObjCMethodDecl *OMD,
1056 llvm::Function *GenerateDirectMethod(const ObjCMethodDecl *OMD,
1060 const ObjCMethodDecl *OMD,
3845 llvm::Function *CGObjCCommonMac::GenerateMethod(const ObjCMethodDecl *OMD, in GenerateMethod() argument
3849 if (OMD->isDirectMethod()) { in GenerateMethod()
3850 Method = GenerateDirectMethod(OMD, CD); in GenerateMethod()
3852 auto Name = getSymbolNameForMethod(OMD); in GenerateMethod()
3856 Types.GetFunctionType(Types.arrangeObjCMethodDeclaration(OMD)); in GenerateMethod()
3861 MethodDefinitions.insert(std::make_pair(OMD, Method)); in GenerateMethod()
[all …]
H A DCGObjCRuntime.cpp468 std::string CGObjCRuntime::getSymbolNameForMethod(const ObjCMethodDecl *OMD, in getSymbolNameForMethod() argument
472 CGM.getCXXABI().getMangleContext().mangleObjCMethodName(OMD, out, in getSymbolNameForMethod()
H A DCodeGenFunction.cpp692 else if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(F)) in endsWithReturn() local
693 Body = OMD->getBody(); in endsWithReturn()
872 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in StartFunction() local
873 const IdentifierInfo *II = OMD->getSelector().getIdentifierInfoForSlot(0); in StartFunction()
874 if (OMD->getMethodFamily() == OMF_dealloc || in StartFunction()
875 OMD->getMethodFamily() == OMF_initialize || in StartFunction()
876 (OMD->getSelector().isUnarySelector() && II->isStr(".cxx_destruct"))) { in StartFunction()
H A DCGDebugInfo.cpp414 StringRef CGDebugInfo::getObjCMethodName(const ObjCMethodDecl *OMD) { in getObjCMethodName() argument
417 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getObjCMethodName()
418 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName()
433 OS << ' ' << OMD->getSelector().getAsString() << ']'; in getObjCMethodName()
4498 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getObjCMethodDeclaration() local
4499 if (!OMD) in getObjCMethodDeclaration()
4502 if (CGM.getCodeGenOpts().DwarfVersion < 5 && !OMD->isDirectMethod()) in getObjCMethodDeclaration()
4505 if (OMD->isDirectMethod()) in getObjCMethodDeclaration()
4512 ID = OMD->getClassInterface(); in getObjCMethodDeclaration()
4521 InterfaceType, getObjCMethodName(OMD), StringRef(), in getObjCMethodDeclaration()
[all …]
H A DCodeGenModule.cpp7323 auto *OMD = cast<ObjCImplementationDecl>(D); in EmitTopLevelDecl() local
7324 EmitObjCPropertyImplementations(OMD); in EmitTopLevelDecl()
7325 EmitObjCIvarInitializations(OMD); in EmitTopLevelDecl()
7326 ObjCRuntime->GenerateClass(OMD); in EmitTopLevelDecl()
7331 OMD->getClassInterface()), OMD->getLocation()); in EmitTopLevelDecl()
7335 auto *OMD = cast<ObjCMethodDecl>(D); in EmitTopLevelDecl() local
7337 if (OMD->getBody()) in EmitTopLevelDecl()
7338 CodeGenFunction(*this).GenerateObjCMethod(OMD); in EmitTopLevelDecl()
H A DCGDecl.cpp244 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(DC)) in getStaticDeclName() local
245 ContextName = OMD->getSelector().getAsString(); in getStaticDeclName()
H A DCodeGenFunction.h543 AbstractCallee(const ObjCMethodDecl *OMD) : CalleeDecl(OMD) {}
2271 void GenerateObjCMethod(const ObjCMethodDecl *OMD);
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclPrinter.cpp1421 void DeclPrinter::VisitObjCMethodDecl(ObjCMethodDecl *OMD) { in VisitObjCMethodDecl() argument
1422 if (OMD->isInstanceMethod()) in VisitObjCMethodDecl()
1426 if (!OMD->getReturnType().isNull()) { in VisitObjCMethodDecl()
1427 PrintObjCMethodType(OMD->getASTContext(), OMD->getObjCDeclQualifier(), in VisitObjCMethodDecl()
1428 OMD->getReturnType()); in VisitObjCMethodDecl()
1431 std::string name = OMD->getSelector().getAsString(); in VisitObjCMethodDecl()
1433 for (const auto *PI : OMD->parameters()) { in VisitObjCMethodDecl()
1439 PrintObjCMethodType(OMD->getASTContext(), in VisitObjCMethodDecl()
1446 if (OMD->param_begin() == OMD->param_end()) in VisitObjCMethodDecl()
1449 if (OMD->isVariadic()) in VisitObjCMethodDecl()
[all …]
H A DMangle.cpp205 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local
206 mangleObjCMethodNameAsSourceName(OMD, Out); in mangleName()
226 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) in mangleName() local
227 mangleObjCMethodNameAsSourceName(OMD, Out); in mangleName()
H A DASTContext.cpp639 const auto *OMD = dyn_cast<ObjCMethodDecl>(D); in getCommentForDecl() local
640 if (OMD && OMD->isPropertyAccessor()) in getCommentForDecl()
641 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl()
644 if (OMD) in getCommentForDecl()
645 addRedeclaredMethods(OMD, Overridden); in getCommentForDecl()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMIGChecker.cpp180 for (const auto *OMD: MD->overridden_methods()) in isInMIGCall() local
181 if (OMD->hasAttr<MIGServerRoutineAttr>()) in isInMIGCall()
H A DLocalizationChecker.cpp840 if (const ObjCMethodDecl *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) { in checkPreObjCMessage() local
841 for (auto [Idx, FormalParam] : llvm::enumerate(OMD->parameters())) { in checkPreObjCMessage()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp365 } else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) { in getFunctionName() local
368 OS << (OMD->isInstanceMethod() ? '-' : '+') << '['; in getFunctionName()
369 const DeclContext *DC = OMD->getDeclContext(); in getFunctionName()
384 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/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp1062 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument
1067 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl()
1073 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl()
1082 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl()
1088 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl()
1096 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl()
1103 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl()
1123 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl()
1137 if (OMD->isVariadic()) in RewriteObjCMethodDecl()
1172 for (auto *OMD : IMD ? IMD->instance_methods() : CID->instance_methods()) { in RewriteImplementationDecl() local
[all …]
H A DRewriteModernObjC.cpp911 auto *OMD = IMP->getInstanceMethod(getter ? PD->getGetterName() in mustSynthesizeSetterGetterMethod() local
913 return !OMD || OMD->isSynthesizedAccessorStub(); in mustSynthesizeSetterGetterMethod()
1229 ObjCMethodDecl *OMD, in RewriteObjCMethodDecl() argument
1234 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType); in RewriteObjCMethodDecl()
1240 if (OMD->isInstanceMethod()) in RewriteObjCMethodDecl()
1249 dyn_cast<ObjCCategoryImplDecl>(OMD->getDeclContext())) { in RewriteObjCMethodDecl()
1255 std::string selString = OMD->getSelector().getAsString(); in RewriteObjCMethodDecl()
1263 MethodInternalNames[OMD] = NameStr; in RewriteObjCMethodDecl()
1270 if (OMD->isInstanceMethod()) { in RewriteObjCMethodDecl()
1290 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprMember.cpp515 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList() local
516 return OMD; in FindGetterSetterNameDeclFromProtocolList()
540 if (ObjCMethodDecl *OMD = I->getInstanceMethod(Sel)) { in FindGetterSetterNameDecl() local
541 GDecl = OMD; in FindGetterSetterNameDecl()
1504 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(PMDecl)) { in LookupMemberExpr() local
1516 ObjCPropertyRefExpr(OMD, SMD, S.Context.PseudoObjectTy, VK_LValue, in LookupMemberExpr()
H A DSemaObjCProperty.cpp1428 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() local
1430 if (!OMD) in ActOnPropertyImplDecl()
1431 OMD = RedeclarePropertyAccessor(Context, IC, getterMethod, AtLoc, in ActOnPropertyImplDecl()
1433 PIDecl->setGetterMethodDecl(OMD); in ActOnPropertyImplDecl()
1492 ObjCMethodDecl *OMD = ClassImpDecl->getMethod( in ActOnPropertyImplDecl() local
1494 if (!OMD) in ActOnPropertyImplDecl()
1495 OMD = RedeclarePropertyAccessor(Context, IC, setterMethod, in ActOnPropertyImplDecl()
1497 PIDecl->setSetterMethodDecl(OMD); in ActOnPropertyImplDecl()
H A DSemaExprObjC.cpp1750 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes() local
1751 if (OMD && !OMD->isInvalidDecl()) { in CheckMessageArgumentTypes()
1757 Selector MatchedSel = OMD->getSelector(); in CheckMessageArgumentTypes()
H A DSemaDeclAttr.cpp3778 if (auto *OMD = dyn_cast<ObjCMethodDecl>(D)) in handleFormatArgAttr() local
3779 if (auto *Interface = OMD->getClassInterface()) in handleFormatArgAttr()
H A DSemaChecking.cpp3266 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(D)) in getFormatStringInfo() local
3267 IsVariadic = OMD->isVariadic(); in getFormatStringInfo()
H A DSemaDeclCXX.cpp3322 const CXXMethodDecl *OMD = *MD->begin_overridden_methods(); in DiagnoseAbsenceOfOverrideControl() local
3323 Diag(OMD->getLocation(), diag::note_overridden_virtual_function); in DiagnoseAbsenceOfOverrideControl()

12