Home
last modified time | relevance | path

Searched refs:getAttr (Results 1 – 25 of 102) sorted by relevance

12345

/freebsd-14-stable/contrib/llvm-project/clang/lib/AST/
HDAvailability.cpp37 if (const auto *A = RD->getAttr<UnavailableAttr>()) in createFromDecl()
41 if (const auto *A = RD->getAttr<DeprecatedAttr>()) in createFromDecl()
HDTypeLoc.cpp452 const Attr *A = ATL.getAttr(); in findNullabilityLoc()
519 return getAttr() ? getAttr()->getRange() : SourceRange(); in getLocalSourceRange()
527 return getAttr() ? getAttr()->getRange() : SourceRange(); in getLocalSourceRange()
HDMicrosoftCXXABI.cpp233 MSInheritanceAttr *IA = getAttr<MSInheritanceAttr>(); in getMSInheritanceModel()
245 if (MSVtorDispAttr *VDA = getAttr<MSVtorDispAttr>()) in getMSVtorDispMode()
HDDeclBase.cpp601 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-14-stable/contrib/llvm-project/clang/lib/CodeGen/Targets/
HDWebAssembly.cpp61 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()
HDAVR.cpp141 if (FD->getAttr<AVRInterruptAttr>()) in setTargetAttributes()
144 if (FD->getAttr<AVRSignalAttr>()) in setTargetAttributes()
HDAMDGPU.cpp340 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()
HDM68k.cpp34 if (const auto *attr = FD->getAttr<M68kInterruptAttr>()) { in setTargetAttributes()
HDMSP430.cpp78 const auto *InterruptAttr = FD->getAttr<MSP430InterruptAttr>(); in setTargetAttributes()
HDTCE.cpp45 const ReqdWorkGroupSizeAttr *Attr = FD->getAttr<ReqdWorkGroupSizeAttr>(); in setTargetAttributes()
/freebsd-14-stable/contrib/llvm-project/clang/lib/CodeGen/
HDCGHLSLRuntime.cpp195 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()
HDCodeGenModule.cpp701 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 …]
HDCodeGenFunction.cpp641 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 …]
/freebsd-14-stable/contrib/llvm-project/clang/lib/Sema/
HDSemaHLSL.cpp95 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()
HDSemaSwift.cpp28 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()
HDSemaCUDA.cpp36 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()
HDSemaWasm.cpp249 if (const auto *ExistingAttr = FD->getAttr<WebAssemblyImportModuleAttr>()) { in mergeImportModuleAttr()
269 if (const auto *ExistingAttr = FD->getAttr<WebAssemblyImportNameAttr>()) { in mergeImportNameAttr()
HDSemaOpenCL.cpp38 if (D->getAttr<OpenCLAccessAttr>()->getSemanticSpelling() == in handleAccessAttr()
91 D->getAttr<OpenCLIntelReqdSubGroupSizeAttr>(); in handleSubGroupSize()
360 return D->getAttr<OpenCLAccessAttr>(); in getOpenCLArgAccess()
HDSemaDecl.cpp3079 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 …]
HDSemaDeclAttr.cpp886 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 …]
/freebsd-14-stable/contrib/llvm-project/clang/lib/Analysis/
HDConsumed.cpp197 QT->getAsCXXRecordDecl()->getAttr<ConsumableAttr>(); in mapConsumableAttrState()
267 switch (FunDecl->getAttr<TestTypestateAttr>()->getTestState()) { in testsFor()
584 const CallableWhenAttr *CWAttr = FunDecl->getAttr<CallableWhenAttr>(); in checkCallability()
633 if (ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) { in handleCall()
647 if (ReturnTypestateAttr *RT = Param->getAttr<ReturnTypestateAttr>()) in handleCall()
666 if (SetTypestateAttr *STA = FunD->getAttr<SetTypestateAttr>()) { in handleCall()
692 if (ReturnTypestateAttr *RTA = Fun->getAttr<ReturnTypestateAttr>()) in propagateReturnType()
780 if (ReturnTypestateAttr *RTA = Constructor->getAttr<ReturnTypestateAttr>()) { in VisitCXXConstructExpr()
861 if (const ParamTypestateAttr *PTA = Param->getAttr<ParamTypestateAttr>()) in VisitParmVarDecl()
1095 const ReturnTypestateAttr *RTA = Param->getAttr<ReturnTypestateAttr>(); in checkParamsForReturnTypestate()
[all …]
/freebsd-14-stable/contrib/llvm-project/clang/include/clang/Sema/
HDAttr.h130 if (const auto *A = D->getAttr<AttrTy>()) { in checkAttrMutualExclusion()
142 if (const auto *A = D->getAttr<AttrTy>()) { in checkAttrMutualExclusion()
HDSemaInternal.h53 if (auto *Import = D->getAttr<DLLImportAttr>()) in getDLLAttr()
55 if (auto *Export = D->getAttr<DLLExportAttr>()) in getDLLAttr()
/freebsd-14-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
HDBugSuppression.cpp23 if (const auto *Suppression = D->getAttr<SuppressAttr>()) in hasSuppression()
/freebsd-14-stable/contrib/llvm-project/clang/lib/ARCMigrate/
HDTransBlockObjCVariable.cpp136 BlocksAttr *attr = var->getAttr<BlocksAttr>(); in traverseBody()

12345