| /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 | 351 M.getLangOpts().OpenCL ? FD->getAttr<ReqdWorkGroupSizeAttr>() : nullptr; in setFunctionDeclAttributes() 356 const auto *FlatWGS = FD->getAttr<AMDGPUFlatWorkGroupSizeAttr>(); in setFunctionDeclAttributes() 371 if (const auto *Attr = FD->getAttr<AMDGPUWavesPerEUAttr>()) in setFunctionDeclAttributes() 374 if (const auto *Attr = FD->getAttr<AMDGPUNumSGPRAttr>()) { in setFunctionDeclAttributes() 381 if (const auto *Attr = FD->getAttr<AMDGPUNumVGPRAttr>()) { in setFunctionDeclAttributes() 388 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 | 79 const auto *InterruptAttr = FD->getAttr<MSP430InterruptAttr>(); in setTargetAttributes()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | Availability.cpp | 56 if (const auto *A = RD->getAttr<clang::UnavailableAttr>()) in createInfoForDecl() 60 if (const auto *A = RD->getAttr<clang::DeprecatedAttr>()) in createInfoForDecl()
|
| H A D | TypeLoc.cpp | 455 const Attr *A = ATL.getAttr(); in findNullabilityLoc() 522 return getAttr() ? getAttr()->getRange() : SourceRange(); in getLocalSourceRange() 530 return getAttr() ? getAttr()->getRange() : SourceRange(); in getLocalSourceRange()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | Consumed.cpp | 190 QT->getAsCXXRecordDecl()->getAttr<ConsumableAttr>(); in mapConsumableAttrState() 260 switch (FunDecl->getAttr<TestTypestateAttr>()->getTestState()) { in testsFor() 577 const CallableWhenAttr *CWAttr = FunDecl->getAttr<CallableWhenAttr>(); in checkCallability() 626 if (ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) { in handleCall() 640 if (ReturnTypestateAttr *RT = Param->getAttr<ReturnTypestateAttr>()) in handleCall() 659 if (SetTypestateAttr *STA = FunD->getAttr<SetTypestateAttr>()) { in handleCall() 685 if (ReturnTypestateAttr *RTA = Fun->getAttr<ReturnTypestateAttr>()) in propagateReturnType() 773 if (ReturnTypestateAttr *RTA = Constructor->getAttr<ReturnTypestateAttr>()) { in VisitCXXConstructExpr() 854 if (const ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) in VisitParmVarDecl() 1088 const ReturnTypestateAttr *RTA = Param->getAttr<ReturnTypestateAttr>(); in checkParamsForReturnTypestate() [all …]
|
| /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/Sema/ |
| H A D | SemaSwift.cpp | 28 if (const auto *PrevSNA = D->getAttr<SwiftNameAttr>()) { in mergeNameAttr() 108 if (const auto *Other = D->getAttr<SwiftBridgeAttr>()) { in handleBridge() 330 if (auto *AsyncAttr = D->getAttr<SwiftAsyncAttr>()) in handleAsyncError() 720 if (auto *ErrorAttr = D->getAttr<SwiftAsyncErrorAttr>()) in handleAsyncAttr() 729 if (auto existingAttr = D->getAttr<ParameterABIAttr>()) { in AddParameterABIAttr()
|
| H A D | SemaHLSL.cpp | 291 PackOffsetVec.emplace_back(Var, Field->getAttr<HLSLPackOffsetAttr>()); in validatePackoffset() 599 HLSLResourceBindingAttr *RBA = Dcl->getAttr<HLSLResourceBindingAttr>(); in ActOnFinishBuffer() 617 if (HLSLNumThreadsAttr *NT = D->getAttr<HLSLNumThreadsAttr>()) { in mergeNumThreadsAttr() 632 if (HLSLWaveSizeAttr *WS = D->getAttr<HLSLWaveSizeAttr>()) { in mergeWaveSizeAttr() 670 if (HLSLVkConstantIdAttr *CI = D->getAttr<HLSLVkConstantIdAttr>()) { in mergeVkConstantIdAttr() 686 if (HLSLShaderAttr *NT = D->getAttr<HLSLShaderAttr>()) { in mergeShaderAttr() 701 if (HLSLParamModifierAttr *PA = D->getAttr<HLSLParamModifierAttr>()) { in mergeParamModifierAttr() 725 if (const auto *Shader = FD->getAttr<HLSLShaderAttr>()) { in ActOnTopLevelFunction() 751 const auto *ShaderAttr = FD->getAttr<HLSLShaderAttr>(); in CheckEntryPoint() 768 if (const auto *NT = FD->getAttr<HLSLNumThreadsAttr>()) { in CheckEntryPoint() [all …]
|
| H A D | SemaWasm.cpp | 262 if (const auto *ExistingAttr = FD->getAttr<WebAssemblyImportModuleAttr>()) { in mergeImportModuleAttr() 282 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 | SemaCUDA.cpp | 34 if (auto *A = D->getAttr<AttrT>()) in hasExplicitAttr() 307 if (auto *A = D->getAttr<AttrT>()) in hasImplicitAttr() 398 (HasD && !MemberDecl->getAttr<CUDADeviceAttr>()->isImplicit()) || in inferTargetForImplicitSpecialMember() 399 (HasH && !MemberDecl->getAttr<CUDAHostAttr>()->isImplicit()); in inferTargetForImplicitSpecialMember() 1075 if (AttrTy *Attribute = TemplateFD.getAttr<AttrTy>()) { in copyAttrIfPresent()
|
| H A D | SemaDecl.cpp | 3135 if (UsedAttr *OldAttr = Old->getMostRecentDecl()->getAttr<UsedAttr>()) { in mergeDeclAttributes() 3140 if (RetainAttr *OldAttr = Old->getMostRecentDecl()->getAttr<RetainAttr>()) { in mergeDeclAttributes() 3152 const auto *OldConstInit = Old->getAttr<ConstInitAttr>(); in mergeDeclAttributes() 3153 const auto *NewConstInit = New->getAttr<ConstInitAttr>(); in mergeDeclAttributes() 3187 if (AsmLabelAttr *NewA = New->getAttr<AsmLabelAttr>()) { in mergeDeclAttributes() 3188 if (AsmLabelAttr *OldA = Old->getAttr<AsmLabelAttr>()) { in mergeDeclAttributes() 3198 << isa<FunctionDecl>(Old) << New->getAttr<AsmLabelAttr>()->getRange(); in mergeDeclAttributes() 3203 if (const auto *NewAbiTagAttr = New->getAttr<AbiTagAttr>()) { in mergeDeclAttributes() 3204 if (const auto *OldAbiTagAttr = Old->getAttr<AbiTagAttr>()) { in mergeDeclAttributes() 3230 const auto *NewCSA = New->getAttr<CodeSegAttr>(); in mergeDeclAttributes() [all …]
|
| H A D | SemaDeclAttr.cpp | 903 if (const auto *NBA = D->getAttr<NoBuiltinAttr>()) in handleNoBuiltinAttr() 1844 if (const auto *Other = D->getAttr<CPUDispatchAttr>()) { in handleCPUSpecificAttr() 1853 if (const auto *Other = D->getAttr<CPUSpecificAttr>()) { in handleCPUSpecificAttr() 2099 if (VecReturnAttr *A = D->getAttr<VecReturnAttr>()) { in handleVecReturnAttr() 2737 T *existingAttr = D->getAttr<T>(); in mergeVisibilityAttr() 3058 WorkGroupAttr *Existing = D->getAttr<WorkGroupAttr>(); in handleWorkGroupSize() 3087 if (VecTypeHintAttr *A = D->getAttr<VecTypeHintAttr>()) { in handleVecTypeHint() 3106 if (SectionAttr *ExistingAttr = D->getAttr<SectionAttr>()) { in mergeSectionAttr() 3231 if (const auto *ExistingAttr = D->getAttr<CodeSegAttr>()) { in mergeCodeSegAttr() 3249 if (const auto *ExistingAttr = D->getAttr<CodeSegAttr>()) { in handleCodeSegAttr() [all …]
|
| H A D | SemaSYCL.cpp | 286 const auto *PrevSKEPAttr = PrevFD->getAttr<SYCLKernelEntryPointAttr>(); in CheckSYCLEntryPointFunctionDecl() 421 const auto *SKEPAttr = FD->getAttr<SYCLKernelEntryPointAttr>(); in BuildSYCLKernelCallStmt()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenModule.cpp | 809 if (const SectionAttr *SA = D->getAttr<SectionAttr>()) { in checkAliases() 1761 D->getAttr<OMPDeclareTargetDeclAttr>()->getDevType() != in setGlobalVisibility() 1971 if (const TLSModelAttr *Attr = D.getAttr<TLSModelAttr>()) { in setTLSMode() 2032 FD->getAttr<DeviceKernelAttr>()) && in getMangledNameImpl() 2060 FD->getAttr<CPUSpecificAttr>(), in getMangledNameImpl() 2064 auto *Attr = FD->getAttr<TargetAttr>(); in getMangledNameImpl() 2072 auto *Attr = FD->getAttr<TargetVersionAttr>(); in getMangledNameImpl() 2080 auto *Attr = FD->getAttr<TargetClonesAttr>(); in getMangledNameImpl() 2467 const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); in GenKernelArgMetadata() 2664 if (auto *Attr = D->getAttr<ArmNewAttr>()) { in SetLLVMFunctionAttributesForDefinition() [all …]
|
| H A D | CGHLSLRuntime.cpp | 276 HLSLResourceBindingAttr *RBA = BufDecl->getAttr<HLSLResourceBindingAttr>(); in addBuffer() 320 const auto *ShaderAttr = FD->getAttr<HLSLShaderAttr>(); in setHLSLEntryAttributes() 325 if (HLSLNumThreadsAttr *NumThreadsAttr = FD->getAttr<HLSLNumThreadsAttr>()) { in setHLSLEntryAttributes() 332 if (HLSLWaveSizeAttr *WaveSizeAttr = FD->getAttr<HLSLWaveSizeAttr>()) { in setHLSLEntryAttributes() 634 if (auto Attr = VD->getAttr<HLSLVkExtBuiltinInputAttr>()) in handleGlobalVarDefinition()
|
| H A D | CodeGenSYCL.cpp | 35 KernelEntryPointFn->getAttr<SYCLKernelEntryPointAttr>(); in EmitSYCLKernelCaller()
|
| 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() 667 if (const ReqdWorkGroupSizeAttr *A = FD->getAttr<ReqdWorkGroupSizeAttr>()) { in EmitKernelMetadata() 679 FD->getAttr<OpenCLIntelReqdSubGroupSizeAttr>()) { in EmitKernelMetadata() 714 CurCodeDecl->getAttr<ReturnsNonNullAttr>()); in requiresReturnValueCheck() 900 if (const auto *XRayAttr = D ? D->getAttr<XRayInstrumentAttr>() : nullptr) { in StartFunction() 911 if (const auto *LogArgs = D->getAttr<XRayLogArgsAttr>()) in StartFunction() 963 D ? D->getAttr<PatchableFunctionEntryAttr>() : nullptr) { in StartFunction() 1016 if (auto *A = D->getAttr<FunctionReturnThunksAttr>()) { in StartFunction() 1062 CurCodeDecl && CurCodeDecl->getAttr<ReturnsNonNullAttr>())) in StartFunction() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugSuppression.cpp | 25 if (const auto *Suppression = D->getAttr<SuppressAttr>()) in hasSuppression()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | PtrTypesSemantics.cpp | 258 if (Redecl->getAttr<ObjCBridgeAttr>() || in visitTypedef() 259 Redecl->getAttr<ObjCBridgeMutableAttr>()) { in visitTypedef() 475 if (auto *Attr = AttrType->getAttr()) { in isPtrConversion()
|