Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:OMD

396     const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
397 bool isCategoryImpl = isa<ObjCCategoryImplDecl>(OMD->getDeclContext());
400 OMD->getClassInterface(),
463 void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD,
468 if (OMD->hasAttr<NoDebugAttr>())
471 llvm::Function *Fn = CGM.getObjCRuntime().GenerateMethod(OMD, CD);
473 const CGFunctionInfo &FI = CGM.getTypes().arrangeObjCMethodDeclaration(OMD);
474 CGM.SetInternalFunctionAttributes(OMD, Fn, FI);
476 args.push_back(OMD->getSelfDecl());
477 args.push_back(OMD->getCmdDecl());
479 for (const auto *PI : OMD->params())
482 CurGD = OMD;
484 StartFunction(OMD, OMD->getReturnType(), Fn, FI, args,
485 OMD->getLocation(), StartLoc);
489 OMD->isInstanceMethod() &&
490 OMD->getSelector().isUnarySelector()) {
492 OMD->getSelector().getIdentifierInfoForSlot(0);
503 void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) {
504 StartObjCMethod(OMD, OMD->getClassInterface(), OMD->getLocStart());
505 PGO.assignRegionCounters(OMD, CurFn);
506 assert(isa<CompoundStmt>(OMD->getBody()));
507 RegionCounter Cnt = getPGORegionCounter(OMD->getBody());
509 EmitCompoundStmtWithoutScope(*cast<CompoundStmt>(OMD->getBody()));
510 FinishFunction(OMD->getBodyRBrace());
750 ObjCMethodDecl *OMD = PD->getGetterMethodDecl();
751 assert(OMD && "Invalid call to generate getter (empty method)");
752 StartObjCMethod(OMD, IMP->getClassInterface(), OMD->getLocStart());
754 generateObjCGetterBody(IMP, PID, OMD, AtomicHelperFn);
982 static void emitStructSetterCall(CodeGenFunction &CGF, ObjCMethodDecl *OMD,
996 ParmVarDecl *argVar = *OMD->param_begin();
1027 ObjCMethodDecl *OMD,
1042 ParmVarDecl *argVar = *OMD->param_begin();
1279 ObjCMethodDecl *OMD = PD->getSetterMethodDecl();
1280 assert(OMD && "Invalid call to generate setter (empty method)");
1281 StartObjCMethod(OMD, IMP->getClassInterface(), OMD->getLocStart());
1414 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
1415 ImplicitParamDecl *selfDecl = OMD->getSelfDecl();