/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Availability.cpp | 37 if (const auto *A = RD->getAttr<UnavailableAttr>()) in createFromDecl() 41 if (const auto *A = RD->getAttr<DeprecatedAttr>()) in createFromDecl()
|
H A D | TypeLoc.cpp | 452 const Attr *A = ATL.getAttr(); in findNullabilityLoc() 519 return getAttr() ? getAttr()->getRange() : SourceRange(); in getLocalSourceRange() 527 return getAttr() ? getAttr()->getRange() : SourceRange(); in getLocalSourceRange()
|
H A D | DeclBase.cpp | 601 if (auto *attr = Definition->getAttr<ExternalSourceSymbolAttr>()) in getExternalSourceSymbolAttr() 604 return dcd->getAttr<ExternalSourceSymbolAttr>(); in getExternalSourceSymbolAttr() 616 if (auto *AA = getAttr<AliasAttr>()) in getDefiningAttr() 618 if (auto *IFA = getAttr<IFuncAttr>()) in getDefiningAttr() 620 if (auto *NZA = getAttr<LoaderUninitializedAttr>()) in getDefiningAttr()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | WebAssembly.cpp | 61 if (const auto *Attr = FD->getAttr<WebAssemblyImportModuleAttr>()) { in setTargetAttributes() 67 if (const auto *Attr = FD->getAttr<WebAssemblyImportNameAttr>()) { in setTargetAttributes() 73 if (const auto *Attr = FD->getAttr<WebAssemblyExportNameAttr>()) { in setTargetAttributes()
|
H A D | AVR.cpp | 141 if (FD->getAttr<AVRInterruptAttr>()) in setTargetAttributes() 144 if (FD->getAttr<AVRSignalAttr>()) in setTargetAttributes()
|
H A D | AMDGPU.cpp | 340 M.getLangOpts().OpenCL ? FD->getAttr<ReqdWorkGroupSizeAttr>() : nullptr; in setFunctionDeclAttributes() 345 const auto *FlatWGS = FD->getAttr<AMDGPUFlatWorkGroupSizeAttr>(); in setFunctionDeclAttributes() 360 if (const auto *Attr = FD->getAttr<AMDGPUWavesPerEUAttr>()) in setFunctionDeclAttributes() 363 if (const auto *Attr = FD->getAttr<AMDGPUNumSGPRAttr>()) { in setFunctionDeclAttributes() 370 if (const auto *Attr = FD->getAttr<AMDGPUNumVGPRAttr>()) { in setFunctionDeclAttributes() 377 if (const auto *Attr = FD->getAttr<AMDGPUMaxNumWorkGroupsAttr>()) { in setFunctionDeclAttributes()
|
H A D | M68k.cpp | 34 if (const auto *attr = FD->getAttr<M68kInterruptAttr>()) { in setTargetAttributes()
|
H A D | TCE.cpp | 45 const ReqdWorkGroupSizeAttr *Attr = FD->getAttr<ReqdWorkGroupSizeAttr>(); in setTargetAttributes()
|
H A D | MSP430.cpp | 78 const auto *InterruptAttr = FD->getAttr<MSP430InterruptAttr>(); in setTargetAttributes()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGHLSLRuntime.cpp | 195 Binding(D->getAttr<HLSLResourceBindingAttr>()) {} in Buffer() 283 const auto *HLSLResAttr = RD->getAttr<HLSLResourceAttr>(); in annotateHLSLResource() 284 const auto *HLSLResClassAttr = RD->getAttr<HLSLResourceClassAttr>(); in annotateHLSLResource() 293 BufferResBinding Binding(D->getAttr<HLSLResourceBindingAttr>()); in annotateHLSLResource() 313 const auto *ShaderAttr = FD->getAttr<HLSLShaderAttr>(); in setHLSLEntryAttributes() 318 if (HLSLNumThreadsAttr *NumThreadsAttr = FD->getAttr<HLSLNumThreadsAttr>()) { in setHLSLEntryAttributes()
|
H A D | CodeGenModule.cpp | 701 if (const SectionAttr *SA = D->getAttr<SectionAttr>()) { in checkAliases() 1599 D->getAttr<OMPDeclareTargetDeclAttr>()->getDevType() != in setGlobalVisibility() 1804 if (const TLSModelAttr *Attr = D.getAttr<TLSModelAttr>()) { in setTLSMode() 1888 FD->getAttr<CPUSpecificAttr>(), in getMangledNameImpl() 1892 auto *Attr = FD->getAttr<TargetAttr>(); in getMangledNameImpl() 1900 auto *Attr = FD->getAttr<TargetVersionAttr>(); in getMangledNameImpl() 1908 auto *Attr = FD->getAttr<TargetClonesAttr>(); in getMangledNameImpl() 2269 const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); in GenKernelArgMetadata() 2463 if (auto *Attr = D->getAttr<ArmNewAttr>()) { in SetLLVMFunctionAttributesForDefinition() 2629 const auto *TD = FD ? FD->getAttr<TargetAttr>() : nullptr; in GetCPUAndFeaturesAttributes() [all …]
|
H A D | CodeGenFunction.cpp | 641 if (const VecTypeHintAttr *A = FD->getAttr<VecTypeHintAttr>()) { in EmitKernelMetadata() 656 if (const WorkGroupSizeHintAttr *A = FD->getAttr<WorkGroupSizeHintAttr>()) { in EmitKernelMetadata() 664 if (const ReqdWorkGroupSizeAttr *A = FD->getAttr<ReqdWorkGroupSizeAttr>()) { in EmitKernelMetadata() 673 FD->getAttr<OpenCLIntelReqdSubGroupSizeAttr>()) { in EmitKernelMetadata() 708 CurCodeDecl->getAttr<ReturnsNonNullAttr>()); in requiresReturnValueCheck() 894 if (const auto *XRayAttr = D ? D->getAttr<XRayInstrumentAttr>() : nullptr) { in StartFunction() 905 if (const auto *LogArgs = D->getAttr<XRayLogArgsAttr>()) in StartFunction() 955 D ? D->getAttr<PatchableFunctionEntryAttr>() : nullptr) { in StartFunction() 1003 if (auto *A = D->getAttr<FunctionReturnThunksAttr>()) { in StartFunction() 1046 CurCodeDecl && CurCodeDecl->getAttr<ReturnsNonNullAttr>())) in StartFunction() [all …]
|
H A D | CGDecl.cpp | 458 if (auto *SA = D.getAttr<PragmaClangBSSSectionAttr>()) in EmitStaticVarDecl() 460 if (auto *SA = D.getAttr<PragmaClangDataSectionAttr>()) in EmitStaticVarDecl() 462 if (auto *SA = D.getAttr<PragmaClangRodataSectionAttr>()) in EmitStaticVarDecl() 464 if (auto *SA = D.getAttr<PragmaClangRelroSectionAttr>()) in EmitStaticVarDecl() 467 if (const SectionAttr *SA = D.getAttr<SectionAttr>()) in EmitStaticVarDecl() 1933 : (D.getAttr<UninitializedAttr>() in EmitAutoVarInit() 2162 if (const CleanupAttr *CA = D.getAttr<CleanupAttr>()) { in EmitAutoVarCleanups() 2848 if (const auto *AA = VD->getAttr<OMPAllocateDeclAttr>()) { in getOMPAllocateAlignment()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaHLSL.cpp | 95 PackOffsetVec.emplace_back(Var, Field->getAttr<HLSLPackOffsetAttr>()); in ActOnFinishBuffer() 136 if (HLSLNumThreadsAttr *NT = D->getAttr<HLSLNumThreadsAttr>()) { in mergeNumThreadsAttr() 150 if (HLSLShaderAttr *NT = D->getAttr<HLSLShaderAttr>()) { in mergeShaderAttr() 165 if (HLSLParamModifierAttr *PA = D->getAttr<HLSLParamModifierAttr>()) { in mergeParamModifierAttr() 189 if (const auto *Shader = FD->getAttr<HLSLShaderAttr>()) { in ActOnTopLevelFunction() 215 const auto *ShaderAttr = FD->getAttr<HLSLShaderAttr>(); in CheckEntryPoint() 231 if (const auto *NT = FD->getAttr<HLSLNumThreadsAttr>()) { in CheckEntryPoint() 254 if (const auto *AnnotationAttr = Param->getAttr<HLSLAnnotationAttr>()) { in CheckEntryPoint() 270 auto *ShaderAttr = EntryPoint->getAttr<HLSLShaderAttr>(); in CheckSemanticAnnotation() 725 if (HLSLShaderAttr *ShaderAttr = FD->getAttr<HLSLShaderAttr>()) { in RunOnTranslationUnit()
|
H A D | SemaSwift.cpp | 28 if (const auto *PrevSNA = D->getAttr<SwiftNameAttr>()) { in mergeNameAttr() 94 if (const auto *Other = D->getAttr<SwiftBridgeAttr>()) { in handleBridge() 316 if (auto *AsyncAttr = D->getAttr<SwiftAsyncAttr>()) in handleAsyncError() 706 if (auto *ErrorAttr = D->getAttr<SwiftAsyncErrorAttr>()) in handleAsyncAttr() 715 if (auto existingAttr = D->getAttr<ParameterABIAttr>()) { in AddParameterABIAttr()
|
H A D | SemaCUDA.cpp | 36 if (auto *A = D->getAttr<AttrT>()) in hasExplicitAttr() 309 if (auto *A = D->getAttr<AttrT>()) in hasImplicitAttr() 384 (HasD && !MemberDecl->getAttr<CUDADeviceAttr>()->isImplicit()) || in inferTargetForImplicitSpecialMember() 385 (HasH && !MemberDecl->getAttr<CUDAHostAttr>()->isImplicit()); in inferTargetForImplicitSpecialMember() 1055 if (AttrTy *Attribute = TemplateFD.getAttr<AttrTy>()) { in copyAttrIfPresent()
|
H A D | SemaWasm.cpp | 249 if (const auto *ExistingAttr = FD->getAttr<WebAssemblyImportModuleAttr>()) { in mergeImportModuleAttr() 269 if (const auto *ExistingAttr = FD->getAttr<WebAssemblyImportNameAttr>()) { in mergeImportNameAttr()
|
H A D | SemaOpenCL.cpp | 38 if (D->getAttr<OpenCLAccessAttr>()->getSemanticSpelling() == in handleAccessAttr() 91 D->getAttr<OpenCLIntelReqdSubGroupSizeAttr>(); in handleSubGroupSize() 360 return D->getAttr<OpenCLAccessAttr>(); in getOpenCLArgAccess()
|
H A D | SemaDecl.cpp | 3079 if (UsedAttr *OldAttr = Old->getMostRecentDecl()->getAttr<UsedAttr>()) { in mergeDeclAttributes() 3084 if (RetainAttr *OldAttr = Old->getMostRecentDecl()->getAttr<RetainAttr>()) { in mergeDeclAttributes() 3096 const auto *OldConstInit = Old->getAttr<ConstInitAttr>(); in mergeDeclAttributes() 3097 const auto *NewConstInit = New->getAttr<ConstInitAttr>(); in mergeDeclAttributes() 3131 if (AsmLabelAttr *NewA = New->getAttr<AsmLabelAttr>()) { in mergeDeclAttributes() 3132 if (AsmLabelAttr *OldA = Old->getAttr<AsmLabelAttr>()) { in mergeDeclAttributes() 3142 << isa<FunctionDecl>(Old) << New->getAttr<AsmLabelAttr>()->getRange(); in mergeDeclAttributes() 3147 if (const auto *NewAbiTagAttr = New->getAttr<AbiTagAttr>()) { in mergeDeclAttributes() 3148 if (const auto *OldAbiTagAttr = Old->getAttr<AbiTagAttr>()) { in mergeDeclAttributes() 3174 const auto *NewCSA = New->getAttr<CodeSegAttr>(); in mergeDeclAttributes() [all …]
|
H A D | SemaDeclAttr.cpp | 886 if (const auto *NBA = D->getAttr<NoBuiltinAttr>()) in handleNoBuiltinAttr() 1728 if (const auto *Other = D->getAttr<CPUDispatchAttr>()) { in handleCPUSpecificAttr() 1737 if (const auto *Other = D->getAttr<CPUSpecificAttr>()) { in handleCPUSpecificAttr() 1930 if (VecReturnAttr *A = D->getAttr<VecReturnAttr>()) { in handleVecReturnAttr() 2531 T *existingAttr = D->getAttr<T>(); in mergeVisibilityAttr() 2782 WorkGroupAttr *Existing = D->getAttr<WorkGroupAttr>(); in handleWorkGroupSize() 2809 if (VecTypeHintAttr *A = D->getAttr<VecTypeHintAttr>()) { in handleVecTypeHint() 2828 if (SectionAttr *ExistingAttr = D->getAttr<SectionAttr>()) { in mergeSectionAttr() 2919 if (const auto *ExistingAttr = D->getAttr<CodeSegAttr>()) { in mergeCodeSegAttr() 2937 if (const auto *ExistingAttr = D->getAttr<CodeSegAttr>()) { in handleCodeSegAttr() [all …]
|
H A D | SemaStmtAsm.cpp | 143 S.Diag(Func->getAttr<NakedAttr>()->getLocation(), diag::note_attribute); in CheckNakedParmReference() 149 S.Diag(Func->getAttr<NakedAttr>()->getLocation(), diag::note_attribute); in CheckNakedParmReference() 201 if (AsmLabelAttr *Attr = Variable->getAttr<AsmLabelAttr>()) in extractRegisterName()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Attr.h | 130 if (const auto *A = D->getAttr<AttrTy>()) { in checkAttrMutualExclusion() 142 if (const auto *A = D->getAttr<AttrTy>()) { in checkAttrMutualExclusion()
|
H A D | SemaInternal.h | 53 if (auto *Import = D->getAttr<DLLImportAttr>()) in getDLLAttr() 55 if (auto *Export = D->getAttr<DLLExportAttr>()) in getDLLAttr()
|
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | TransBlockObjCVariable.cpp | 136 BlocksAttr *attr = var->getAttr<BlocksAttr>(); in traverseBody()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | BugSuppression.cpp | 23 if (const auto *Suppression = D->getAttr<SuppressAttr>()) in hasSuppression()
|