• Home
  • Raw
  • Download

Lines Matching refs:hasAttr

100 static bool hasAttr(const FunctionDecl *D, bool IgnoreImplicitAttr) {  in hasAttr()  function
114 if (D->hasAttr<CUDAInvalidTargetAttr>()) in IdentifyCUDATarget()
117 if (D->hasAttr<CUDAGlobalAttr>()) in IdentifyCUDATarget()
120 if (hasAttr<CUDADeviceAttr>(D, IgnoreImplicitHDAttr)) { in IdentifyCUDATarget()
121 if (hasAttr<CUDAHostAttr>(D, IgnoreImplicitHDAttr)) in IdentifyCUDATarget()
124 } else if (hasAttr<CUDAHostAttr>(D, IgnoreImplicitHDAttr)) { in IdentifyCUDATarget()
290 bool HasH = MemberDecl->hasAttr<CUDAHostAttr>(); in inferCUDATargetForImplicitSpecialMember()
291 bool HasD = MemberDecl->hasAttr<CUDADeviceAttr>(); in inferCUDATargetForImplicitSpecialMember()
518 if (VD->hasAttr<CUDADeviceAttr>() || VD->hasAttr<CUDAConstantAttr>() || in checkAllowedCUDAInitializer()
519 VD->hasAttr<CUDASharedAttr>()) { in checkAllowedCUDAInitializer()
530 (VD->hasAttr<CUDADeviceAttr>() || VD->hasAttr<CUDAConstantAttr>())) { in checkAllowedCUDAInitializer()
546 Diag(VD->getLocation(), VD->hasAttr<CUDASharedAttr>() in checkAllowedCUDAInitializer()
590 if (!NewD->hasAttr<CUDAHostAttr>()) in maybeAddCUDAHostDeviceAttrs()
592 if (!NewD->hasAttr<CUDADeviceAttr>()) in maybeAddCUDAHostDeviceAttrs()
598 NewD->isVariadic() || NewD->hasAttr<CUDAHostAttr>() || in maybeAddCUDAHostDeviceAttrs()
599 NewD->hasAttr<CUDADeviceAttr>() || NewD->hasAttr<CUDAGlobalAttr>()) in maybeAddCUDAHostDeviceAttrs()
608 return OldD && OldD->hasAttr<CUDADeviceAttr>() && in maybeAddCUDAHostDeviceAttrs()
609 !OldD->hasAttr<CUDAHostAttr>() && in maybeAddCUDAHostDeviceAttrs()
784 bool CalleeIsDevice = Callee->hasAttr<CUDADeviceAttr>(); in CUDACheckLambdaCapture()
786 !Caller->hasAttr<CUDAGlobalAttr>() && !Caller->hasAttr<CUDADeviceAttr>(); in CUDACheckLambdaCapture()
804 if (Method->hasAttr<CUDAHostAttr>() || Method->hasAttr<CUDADeviceAttr>()) in CUDASetLambdaAttrs()