/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaCUDA.cpp | 111 static bool hasAttr(const Decl *D, bool IgnoreImplicitAttr) { in hasAttr() function 126 if ((hasAttr<CUDADeviceAttr>(VD, /*IgnoreImplicit=*/true) && in CUDATargetContextRAII() 127 !hasAttr<CUDAHostAttr>(VD, /*IgnoreImplicit=*/true)) || in CUDATargetContextRAII() 128 hasAttr<CUDASharedAttr>(VD, /*IgnoreImplicit=*/true) || in CUDATargetContextRAII() 129 hasAttr<CUDAConstantAttr>(VD, /*IgnoreImplicit=*/true)) in CUDATargetContextRAII() 142 if (D->hasAttr<CUDAInvalidTargetAttr>()) in IdentifyTarget() 145 if (D->hasAttr<CUDAGlobalAttr>()) in IdentifyTarget() 148 if (hasAttr<CUDADeviceAttr>(D, IgnoreImplicitHDAttr)) { in IdentifyTarget() 149 if (hasAttr<CUDAHostAttr>(D, IgnoreImplicitHDAttr)) in IdentifyTarget() 152 } else if (hasAttr<CUDAHostAttr>(D, IgnoreImplicitHDAttr)) { in IdentifyTarget() [all …]
|
H A D | SemaDecl.cpp | 1472 if (Context.getLangOpts().CPlusPlus || New->hasAttr<OverloadableAttr>()) in AllowOverloadingOfFunction() 1487 return ND->hasAttr<OverloadableAttr>(); in AllowOverloadingOfFunction() 1490 return Previous.getFoundDecl()->hasAttr<OverloadableAttr>(); in AllowOverloadingOfFunction() 1831 if (D->isInvalidDecl() || D->isUsed() || D->hasAttr<UnusedAttr>()) in ShouldWarnIfUnusedFileScopedDecl() 1922 if (BD->isReferenced() || BD->hasAttr<UnusedAttr>()) in ShouldDiagnoseUnusedDecl() 1937 if (D->hasAttr<UnusedAttr>() || D->hasAttr<ObjCPreciseLifetimeAttr>() || in ShouldDiagnoseUnusedDecl() 1938 D->hasAttr<CleanupAttr>()) in ShouldDiagnoseUnusedDecl() 1973 if (TT->getDecl()->hasAttr<UnusedAttr>()) in ShouldDiagnoseUnusedDecl() 1996 if (Tag->hasAttr<UnusedAttr>()) in ShouldDiagnoseUnusedDecl() 2000 if (!RD->hasTrivialDestructor() && !RD->hasAttr<WarnUnusedAttr>()) in ShouldDiagnoseUnusedDecl() [all …]
|
H A D | SemaDeclObjC.cpp | 121 if (OldD->hasAttr<NoEscapeAttr>() && !NewD->hasAttr<NoEscapeAttr>()) { in diagnoseNoescape() 190 if ((NewMethod->hasAttr<NSReturnsRetainedAttr>() != in CheckObjCMethodOverride() 191 Overridden->hasAttr<NSReturnsRetainedAttr>())) { in CheckObjCMethodOverride() 199 if ((NewMethod->hasAttr<NSReturnsNotRetainedAttr>() != in CheckObjCMethodOverride() 200 Overridden->hasAttr<NSReturnsNotRetainedAttr>())) { in CheckObjCMethodOverride() 216 if (newDecl->hasAttr<NSConsumedAttr>() != in CheckObjCMethodOverride() 217 oldDecl->hasAttr<NSConsumedAttr>()) { in CheckObjCMethodOverride() 270 if (method->hasAttr<NSReturnsRetainedAttr>()) in CheckARCMethodDecl() 278 if (method->hasAttr<NSReturnsRetainedAttr>() || in CheckARCMethodDecl() 279 method->hasAttr<NSReturnsNotRetainedAttr>() || in CheckARCMethodDecl() [all …]
|
H A D | SemaAttr.cpp | 104 if (Record->hasAttr<OwnerAttr>() || Record->hasAttr<PointerAttr>()) in addGslOwnerPointerAttributeIfNotExisting() 204 if (Record->hasAttr<OwnerAttr>() || Record->hasAttr<PointerAttr>()) in inferGslOwnerPointerAttribute() 226 !CRD->hasAttr<TypeNullableAttr>()) in inferNullableClassAttribute() 1180 if (!FD->hasAttr<SectionAttr>()) in AddSectionMSAllocText() 1195 if (FD->hasAttr<MinSizeAttr>() || FD->hasAttr<AlwaysInlineAttr>()) in AddOptnoneAttributeIfNoConflicts() 1200 if (!FD->hasAttr<OptimizeNoneAttr>()) in AddOptnoneAttributeIfNoConflicts() 1202 if (!FD->hasAttr<NoInlineAttr>()) in AddOptnoneAttributeIfNoConflicts()
|
H A D | CheckExprLifetime.cpp | 250 return RD->hasAttr<T>(); in isRecordWithAttr() 312 if (!RD->hasAttr<PointerAttr>() && !RD->hasAttr<OwnerAttr>()) in shouldTrackFirstArgument() 384 if (CCE->getNumArgs() > 0 && RD->hasAttr<PointerAttr>()) in handleGslAnnotatedTypes() 464 CheckCoroCall = RD->hasAttr<CoroLifetimeBoundAttr>() && in visitLifetimeBoundArguments() 465 RD->hasAttr<CoroReturnTypeAttr>() && in visitLifetimeBoundArguments() 466 !Callee->hasAttr<CoroDisableLifetimeBoundAttr>(); in visitLifetimeBoundArguments() 486 if (CheckCoroCall || Callee->getParamDecl(I)->hasAttr<LifetimeBoundAttr>()) in visitLifetimeBoundArguments()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | GlobalDecl.h | 63 assert(!D->hasAttr<CUDAGlobalAttr>() && "Use other ctor with GPU kernels!"); in Init() 73 if (!D->hasAttr<CUDAGlobalAttr>()) { in MultiVersionIndex() 81 assert(D->hasAttr<CUDAGlobalAttr>() && "Decl is not a GPU kernel!"); in GlobalDecl() 125 !cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() && in getMultiVersionIndex() 134 cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>()) || in getKernelReferenceKind() 138 ->hasAttr<CUDAGlobalAttr>())) && in getKernelReferenceKind() 189 !cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() && in getWithMultiVersionIndex() 200 cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() && in getWithKernelReferenceKind()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenModule.cpp | 669 bool IsIFunc = D->hasAttr<IFuncAttr>(); in checkAliases() 1598 D->hasAttr<OMPDeclareTargetDeclAttr>() && in setGlobalVisibility() 1746 if (D->hasAttr<DLLImportAttr>()) in setDLLImportDLLExport() 1748 else if ((D->hasAttr<DLLExportAttr>() || in setDLLImportDLLExport() 1860 } else if (FD && FD->hasAttr<CUDAGlobalAttr>() && in getMangledNameImpl() 2012 assert(!isa<FunctionDecl>(ND) || !ND->hasAttr<CUDAGlobalAttr>() || in getMangledName() 2421 if ((!D || !D->hasAttr<NoUwtableAttr>()) && CodeGenOpts.UnwindTables) in SetLLVMFunctionAttributesForDefinition() 2434 if (D && D->hasAttr<NoStackProtectorAttr>()) in SetLLVMFunctionAttributesForDefinition() 2436 else if (D && D->hasAttr<StrictGuardStackCheckAttr>() && in SetLLVMFunctionAttributesForDefinition() 2460 if (D->hasAttr<ArmLocallyStreamingAttr>()) in SetLLVMFunctionAttributesForDefinition() [all …]
|
H A D | CGCall.cpp | 215 if (D->hasAttr<StdCallAttr>()) in getCallingConventionForDecl() 218 if (D->hasAttr<FastCallAttr>()) in getCallingConventionForDecl() 221 if (D->hasAttr<RegCallAttr>()) in getCallingConventionForDecl() 224 if (D->hasAttr<ThisCallAttr>()) in getCallingConventionForDecl() 227 if (D->hasAttr<VectorCallAttr>()) in getCallingConventionForDecl() 230 if (D->hasAttr<PascalAttr>()) in getCallingConventionForDecl() 236 if (D->hasAttr<AArch64VectorPcsAttr>()) in getCallingConventionForDecl() 239 if (D->hasAttr<AArch64SVEPcsAttr>()) in getCallingConventionForDecl() 242 if (D->hasAttr<AMDGPUKernelCallAttr>()) in getCallingConventionForDecl() 245 if (D->hasAttr<IntelOclBiccAttr>()) in getCallingConventionForDecl() [all …]
|
H A D | CGCUDANV.cpp | 144 VD->hasAttr<HIPManagedAttr>(), in registerDeviceVar() 1034 if (D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>() || in internalizeDeviceSideVar() 1035 D->hasAttr<CUDASharedAttr>() || in internalizeDeviceSideVar() 1044 if (D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>()) { in handleVarRegistration() 1060 D->hasAttr<HIPManagedAttr>()) { in handleVarRegistration() 1062 D->hasAttr<CUDAConstantAttr>()); in handleVarRegistration() 1071 if (TD->hasAttr<CUDADeviceBuiltinSurfaceTypeAttr>()) { in handleVarRegistration() 1196 Info.D->isUsed() && !Info.D->hasAttr<UsedAttr>()) { in finalizeModule()
|
H A D | CGVTables.cpp | 784 ? MD->hasAttr<CUDADeviceAttr>() in addVTableComponent() 785 : (MD->hasAttr<CUDAHostAttr>() || !MD->hasAttr<CUDADeviceAttr>()); in addVTableComponent() 1090 if (IsInNamedModule || (keyFunction && !RD->hasAttr<DLLImportAttr>())) { in getVTableLinkage() 1146 if (RD->hasAttr<DLLExportAttr>()) { in getVTableLinkage() 1149 } else if (RD->hasAttr<DLLImportAttr>()) { in getVTableLinkage() 1279 if (RD->hasAttr<LTOVisibilityPublicAttr>() || RD->hasAttr<UuidAttr>() || in AlwaysHasLTOVisibilityPublic() 1280 RD->hasAttr<DLLExportAttr>() || RD->hasAttr<DLLImportAttr>()) in AlwaysHasLTOVisibilityPublic()
|
H A D | CodeGenFunction.cpp | 583 if (!CurFuncDecl || CurFuncDecl->hasAttr<NoInstrumentFunctionAttr>()) in ShouldInstrumentFunction() 591 return CurFuncDecl->hasAttr<DisableSanitizerInstrumentationAttr>(); in ShouldSkipSanitizerInstrumentation() 631 if (!FD->hasAttr<OpenCLKernelAttr>() && !FD->hasAttr<CUDAGlobalAttr>()) in EmitKernelMetadata() 992 if (D && D->hasAttr<CFICanonicalJumpTableAttr>()) in StartFunction() 995 if (D && D->hasAttr<NoProfileFunctionAttr>()) in StartFunction() 998 if (D && D->hasAttr<HybridPatchableAttr>()) in StartFunction() 1021 if (FD && FD->hasAttr<ClspvLibclcBuiltinAttr>()) { in StartFunction() 1065 (getLangOpts().CUDA && FD->hasAttr<CUDAGlobalAttr>()))) in StartFunction() 1073 if ((FD && (FD->UsesFPIntrin() || FD->hasAttr<StrictFPAttr>())) || in StartFunction() 1138 if (!CurFuncDecl || !CurFuncDecl->hasAttr<NoInstrumentFunctionAttr>()) { in StartFunction() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | Mips.cpp | 59 if (FD->hasAttr<MipsLongCallAttr>()) in setTargetAttributes() 61 else if (FD->hasAttr<MipsShortCallAttr>()) in setTargetAttributes() 68 if (FD->hasAttr<Mips16Attr>()) { in setTargetAttributes() 71 else if (FD->hasAttr<NoMips16Attr>()) { in setTargetAttributes() 75 if (FD->hasAttr<MicroMipsAttr>()) in setTargetAttributes() 77 else if (FD->hasAttr<NoMicroMipsAttr>()) in setTargetAttributes() 276 RD->hasAttr<PackedAttr>()); in returnAggregateInRegs()
|
H A D | AMDGPU.cpp | 328 return !D->hasAttr<OMPDeclareTargetDeclAttr>() && in requiresAMDGPUProtectedVisibility() 329 (D->hasAttr<OpenCLKernelAttr>() || in requiresAMDGPUProtectedVisibility() 330 (isa<FunctionDecl>(D) && D->hasAttr<CUDAGlobalAttr>()) || in requiresAMDGPUProtectedVisibility() 332 (D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>() || in requiresAMDGPUProtectedVisibility() 342 M.getLangOpts().OpenCL && FD->hasAttr<OpenCLKernelAttr>(); in setFunctionDeclAttributes() 343 const bool IsHIPKernel = M.getLangOpts().HIP && FD->hasAttr<CUDAGlobalAttr>(); in setFunctionDeclAttributes()
|
H A D | NVPTX.cpp | 251 if (FD->hasAttr<OpenCLKernelAttr>()) { in setTargetAttributes() 265 if (FD->hasAttr<CUDAGlobalAttr>()) { in setTargetAttributes() 274 if (FD->hasAttr<NVPTXKernelAttr>()) { in setTargetAttributes()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | SemaInternal.h | 43 bool isDeviceSideDecl = D->hasAttr<CUDADeviceAttr>() || in DeclAttrsMatchCUDAMode() 44 D->hasAttr<CUDASharedAttr>() || in DeclAttrsMatchCUDAMode() 45 D->hasAttr<CUDAGlobalAttr>(); in DeclAttrsMatchCUDAMode() 51 assert(!(D->hasAttr<DLLImportAttr>() && D->hasAttr<DLLExportAttr>()) && in getDLLAttr()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Decl.cpp | 382 return !fn->hasAttr<VisibilityAttr>(); in shouldConsiderTemplateVisibility() 424 return (computation.isTypeVisibility() && D->hasAttr<TypeVisibilityAttr>()) || in hasDirectVisibilityAttribute() 425 D->hasAttr<VisibilityAttr>(); in hasDirectVisibilityAttribute() 571 FD->hasBody(Def) && Def->isInlined() && !Def->hasAttr<GNUInlineAttr>(); in useInlineVisibilityHidden() 1454 if (D->hasAttr<InternalLinkageAttr>()) in computeLVForDecl() 1571 if (D->hasAttr<InternalLinkageAttr>()) in getLVForDecl() 2153 if (!hasAttr<ThreadAttr>() && in getTLSKind() 2156 hasAttr<OMPThreadPrivateDeclAttr>())) in getTLSKind() 2160 hasAttr<OMPThreadPrivateDeclAttr>()) in getTLSKind() 2664 return hasAttr<BlocksAttr>() && NonParmVarDeclBits.EscapingByref; in isEscapingByref() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | ObjCUnusedIVarsChecker.cpp | 120 Ivar->hasAttr<UnusedAttr>() || Ivar->hasAttr<IBOutletAttr>() || in checkObjCUnusedIvar() 121 Ivar->hasAttr<IBOutletCollectionAttr>() || Ivar->isUnnamedBitField()) in checkObjCUnusedIvar()
|
H A D | NoReturnFunctionChecker.cpp | 45 BuildSinks = FD->hasAttr<AnalyzerNoReturnAttr>() || FD->isNoReturn(); in checkPostCall() 94 if (MD->hasAttr<AnalyzerNoReturnAttr>()) { in checkPostObjCMessage()
|
H A D | MIGChecker.cpp | 175 if (D->hasAttr<MIGServerRoutineAttr>()) in isInMIGCall() 181 if (OMD->hasAttr<MIGServerRoutineAttr>()) in isInMIGCall()
|
H A D | TrustReturnsNonnullChecker.cpp | 48 return CallDeclaration->hasAttr<ReturnsNonNullAttr>(); in isNonNullPtr()
|
/freebsd/contrib/llvm-project/lld/MachO/ |
H A D | InputSection.cpp | 97 if (relocAttrs.hasAttr(RelocAttrBits::BRANCH)) in resolveSymbolVA() 99 if (relocAttrs.hasAttr(RelocAttrBits::GOT)) in resolveSymbolVA() 101 if (relocAttrs.hasAttr(RelocAttrBits::TLV)) in resolveSymbolVA() 226 target->hasAttr(r.type, RelocAttrBits::UNSIGNED); in writeTo() 227 if (target->hasAttr(r.type, RelocAttrBits::SUBTRAHEND)) { in writeTo() 240 if (target->hasAttr(r.type, RelocAttrBits::LOAD) && in writeTo()
|
H A D | Target.h | 97 bool hasAttr(uint8_t type, RelocAttrBits bit) const { in hasAttr() function 98 return getRelocAttrs(type).hasAttr(bit); in hasAttr()
|
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/ |
H A D | Visitor.cpp | 48 !D->hasAttr<DLLExportAttr>()); in isInlined() 55 if (!(NoCXXAttr || RD->hasAttr<GNUInlineAttr>())) in isInlined() 135 if (D->hasAttr<ObjCExceptionAttr>()) in hasObjCExceptionAttribute() 241 const bool WeakDef = D->hasAttr<WeakAttr>(); in VisitVarDecl() 292 const bool WeakDef = ExplicitInstantiation || D->hasAttr<WeakAttr>(); in VisitFunctionDecl() 389 if (D->hasAttr<WeakAttr>()) in isRTTIWeakDef() 717 const bool WeakDef = Var->hasAttr<WeakAttr>() || KeepInlineAsWeak; in VisitCXXRecordDecl()
|
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | ObjCMT.cpp | 1250 OM->hasAttr<ObjCReturnsInnerPointerAttr>()) in migrateNsReturnsInnerPointer() 1419 if (Decl->hasAttr<CFAuditedTransferAttr>()) { in migrateCFAnnotation() 1482 !pd->hasAttr<CFConsumedAttr>() && in AddCFAnnotations() 1488 !pd->hasAttr<NSConsumedAttr>() && in AddCFAnnotations() 1506 bool FuncIsReturnAnnotated = (FuncDecl->hasAttr<CFReturnsRetainedAttr>() || in migrateAddFunctionAnnotation() 1507 FuncDecl->hasAttr<CFReturnsNotRetainedAttr>() || in migrateAddFunctionAnnotation() 1508 FuncDecl->hasAttr<NSReturnsRetainedAttr>() || in migrateAddFunctionAnnotation() 1509 FuncDecl->hasAttr<NSReturnsNotRetainedAttr>() || in migrateAddFunctionAnnotation() 1510 FuncDecl->hasAttr<NSReturnsAutoreleasedAttr>()); in migrateAddFunctionAnnotation() 1535 if (AE.getKind() == DecRef && !pd->hasAttr<CFConsumedAttr>()) in migrateAddFunctionAnnotation() [all …]
|
H A D | TransUnbridgedCasts.cpp | 136 if (FD->hasAttr<CFReturnsRetainedAttr>()) { in transformNonObjCToObjCCast() 140 if (FD->hasAttr<CFReturnsNotRetainedAttr>()) { in transformNonObjCToObjCCast() 186 if (!method->hasAttr<NSReturnsRetainedAttr>()) { in transformNonObjCToObjCCast() 440 if (PD->hasAttr<CFConsumedAttr>()) { in isPassedToCParamWithKnownOwnership()
|