Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:MD

37   const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
42 if (const CXXDestructorDecl* DD = dyn_cast<CXXDestructorDecl>(MD))
46 getCXXABI().getMangleContext().mangleThunk(MD, Thunk, Out);
53 static void setThunkVisibility(CodeGenModule &CGM, const CXXMethodDecl *MD,
55 CGM.setGlobalVisibility(Fn, MD);
66 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
67 setThunkVisibility(CGM, MD, Thunk, ThunkFn);
147 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
148 const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>();
177 Address ThisPtr(&*AI, CGM.getClassPointerAlignment(MD->getParent()));
217 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
218 QualType ThisType = MD->getThisType(getContext());
219 const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>();
231 FunctionArgs.append(MD->param_begin(), MD->param_end());
233 if (isa<CXXDestructorDecl>(MD))
238 MD->getLocation(), MD->getLocation());
243 CurCodeDecl = MD;
244 CurFuncDecl = MD;
260 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CurGD.getDecl());
274 MD, "non-trivial argument copy for return-adjusting thunk");
276 EmitMustTailThunk(MD, AdjustedThisPtr, Callee);
282 QualType ThisType = MD->getThisType(getContext());
285 if (isa<CXXDestructorDecl>(MD))
289 for (const ParmVarDecl *PD : MD->params())
292 const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>();
301 assert(isa<CXXDestructorDecl>(MD) || // ignore dtor return types
326 RValue RV = EmitCall(*CurFnInfo, Callee, Slot, CallArgs, MD, &CallOrInvoke);
344 void CodeGenFunction::EmitMustTailThunk(const CXXMethodDecl *MD,
381 CGM.ConstructAttributeList(*CurFnInfo, MD, AttributeList, CallingConv,
499 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
501 MD->getType()->castAs<FunctionType>()))
509 const CXXMethodDecl *MD =
513 if (isa<CXXDestructorDecl>(MD) && GD.getDtorType() == Dtor_Base)
589 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
593 ? MD->hasAttr<CUDADeviceAttr>()
594 : (MD->hasAttr<CUDAHostAttr>() ||
595 !MD->hasAttr<CUDADeviceAttr>());