Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:OMD

371     const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
372 bool isCategoryImpl = isa<ObjCCategoryImplDecl>(OMD->getDeclContext());
375 OMD->getClassInterface(),
438 void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD,
443 if (!OMD->hasAttr<NoDebugAttr>())
446 llvm::Function *Fn = CGM.getObjCRuntime().GenerateMethod(OMD, CD);
448 const CGFunctionInfo &FI = CGM.getTypes().arrangeObjCMethodDeclaration(OMD);
449 CGM.SetInternalFunctionAttributes(OMD, Fn, FI);
451 args.push_back(OMD->getSelfDecl());
452 args.push_back(OMD->getCmdDecl());
454 for (ObjCMethodDecl::param_const_iterator PI = OMD->param_begin(),
455 E = OMD->param_end(); PI != E; ++PI)
458 CurGD = OMD;
460 StartFunction(OMD, OMD->getResultType(), Fn, FI, args, StartLoc);
464 OMD->isInstanceMethod() &&
465 OMD->getSelector().isUnarySelector()) {
467 OMD->getSelector().getIdentifierInfoForSlot(0);
478 void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) {
479 StartObjCMethod(OMD, OMD->getClassInterface(), OMD->getLocStart());
480 EmitStmt(OMD->getBody());
481 FinishFunction(OMD->getBodyRBrace());
719 ObjCMethodDecl *OMD = PD->getGetterMethodDecl();
720 assert(OMD && "Invalid call to generate getter (empty method)");
721 StartObjCMethod(OMD, IMP->getClassInterface(), OMD->getLocStart());
723 generateObjCGetterBody(IMP, PID, OMD, AtomicHelperFn);
946 static void emitStructSetterCall(CodeGenFunction &CGF, ObjCMethodDecl *OMD,
960 ParmVarDecl *argVar = *OMD->param_begin();
991 ObjCMethodDecl *OMD,
1006 ParmVarDecl *argVar = *OMD->param_begin();
1244 ObjCMethodDecl *OMD = PD->getSetterMethodDecl();
1245 assert(OMD && "Invalid call to generate setter (empty method)");
1246 StartObjCMethod(OMD, IMP->getClassInterface(), OMD->getLocStart());
1375 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
1376 return Builder.CreateLoad(LocalDeclMap[OMD->getSelfDecl()], "self");
1380 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
1381 ImplicitParamDecl *selfDecl = OMD->getSelfDecl();