Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:OMD

452     const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
453 bool isCategoryImpl = isa<ObjCCategoryImplDecl>(OMD->getDeclContext());
456 OMD->getClassInterface(),
518 void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD,
520 SourceLocation StartLoc = OMD->getLocStart();
523 if (OMD->hasAttr<NoDebugAttr>())
526 llvm::Function *Fn = CGM.getObjCRuntime().GenerateMethod(OMD, CD);
528 const CGFunctionInfo &FI = CGM.getTypes().arrangeObjCMethodDeclaration(OMD);
529 CGM.SetInternalFunctionAttributes(OMD, Fn, FI);
531 args.push_back(OMD->getSelfDecl());
532 args.push_back(OMD->getCmdDecl());
534 args.append(OMD->param_begin(), OMD->param_end());
536 CurGD = OMD;
537 CurEHLocation = OMD->getLocEnd();
539 StartFunction(OMD, OMD->getReturnType(), Fn, FI, args,
540 OMD->getLocation(), StartLoc);
544 OMD->isInstanceMethod() &&
545 OMD->getSelector().isUnarySelector()) {
547 OMD->getSelector().getIdentifierInfoForSlot(0);
558 void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) {
559 StartObjCMethod(OMD, OMD->getClassInterface());
560 PGO.assignRegionCounters(GlobalDecl(OMD), CurFn);
561 assert(isa<CompoundStmt>(OMD->getBody()));
562 incrementProfileCounter(OMD->getBody());
563 EmitCompoundStmtWithoutScope(*cast<CompoundStmt>(OMD->getBody()));
564 FinishFunction(OMD->getBodyRBrace());
800 ObjCMethodDecl *OMD = PD->getGetterMethodDecl();
801 assert(OMD && "Invalid call to generate getter (empty method)");
802 StartObjCMethod(OMD, IMP->getClassInterface());
804 generateObjCGetterBody(IMP, PID, OMD, AtomicHelperFn);
1038 static void emitStructSetterCall(CodeGenFunction &CGF, ObjCMethodDecl *OMD,
1052 ParmVarDecl *argVar = *OMD->param_begin();
1081 ObjCMethodDecl *OMD,
1096 ParmVarDecl *argVar = *OMD->param_begin();
1326 ObjCMethodDecl *OMD = PD->getSetterMethodDecl();
1327 assert(OMD && "Invalid call to generate setter (empty method)");
1328 StartObjCMethod(OMD, IMP->getClassInterface());
1445 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
1446 ImplicitParamDecl *selfDecl = OMD->getSelfDecl();