• Home
  • Raw
  • Download

Lines Matching refs:hasAttr

315     bool IsIFunc = D->hasAttr<IFuncAttr>();  in checkAliases()
1008 if (D->hasAttr<DLLImportAttr>()) in setDLLImportDLLExport()
1010 else if (D->hasAttr<DLLExportAttr>() && !GV->isDeclarationForLinker()) in setDLLImportDLLExport()
1137 } else if (FD && FD->hasAttr<CUDAGlobalAttr>() && in getMangledNameImpl()
1236 assert(!isa<FunctionDecl>(ND) || !ND->hasAttr<CUDAGlobalAttr>() || in getMangledName()
1649 if (!D || !D->hasAttr<NoStackProtectorAttr>()) { in SetLLVMFunctionAttributesForDefinition()
1675 ShouldAddOptNone &= !D->hasAttr<MinSizeAttr>(); in SetLLVMFunctionAttributesForDefinition()
1676 ShouldAddOptNone &= !D->hasAttr<AlwaysInlineAttr>(); in SetLLVMFunctionAttributesForDefinition()
1679 if ((ShouldAddOptNone || D->hasAttr<OptimizeNoneAttr>()) && in SetLLVMFunctionAttributesForDefinition()
1688 if (D->hasAttr<NakedAttr>()) in SetLLVMFunctionAttributesForDefinition()
1694 } else if (D->hasAttr<NakedAttr>()) { in SetLLVMFunctionAttributesForDefinition()
1698 } else if (D->hasAttr<NoDuplicateAttr>()) { in SetLLVMFunctionAttributesForDefinition()
1700 } else if (D->hasAttr<NoInlineAttr>() && !F->hasFnAttribute(llvm::Attribute::AlwaysInline)) { in SetLLVMFunctionAttributesForDefinition()
1703 } else if (D->hasAttr<AlwaysInlineAttr>() && in SetLLVMFunctionAttributesForDefinition()
1741 if (!D->hasAttr<OptimizeNoneAttr>()) { in SetLLVMFunctionAttributesForDefinition()
1742 if (D->hasAttr<ColdAttr>()) { in SetLLVMFunctionAttributesForDefinition()
1748 if (D->hasAttr<MinSizeAttr>()) in SetLLVMFunctionAttributesForDefinition()
1758 if (!D->hasAttr<AlignedAttr>()) in SetLLVMFunctionAttributesForDefinition()
1799 if (D->hasAttr<StrictFPAttr>()) { in setLLVMFunctionFEnvAttributes()
1813 if (D && D->hasAttr<UsedAttr>()) in SetCommonAttributes()
1947 (ND->hasAttr<WeakAttr>() || ND->isWeakImported())) in setLinkageForGV()
2048 if (getLangOpts().OpenMP && FD->hasAttr<OMPDeclareSimdDeclAttr>()) in SetFunctionAttributes()
2457 assert(D->hasAttr<AnnotateAttr>() && "no annotate attribute"); in AddGlobalAnnotations()
2704 if (Global->hasAttr<WeakRefAttr>()) in EmitGlobal()
2709 if (Global->hasAttr<AliasAttr>()) in EmitGlobal()
2713 if (Global->hasAttr<IFuncAttr>()) in EmitGlobal()
2717 if (Global->hasAttr<CPUDispatchAttr>()) in EmitGlobal()
2723 if (!Global->hasAttr<CUDADeviceAttr>() && in EmitGlobal()
2724 !Global->hasAttr<CUDAGlobalAttr>() && in EmitGlobal()
2725 !Global->hasAttr<CUDAConstantAttr>() && in EmitGlobal()
2726 !Global->hasAttr<CUDASharedAttr>() && in EmitGlobal()
2737 if (isa<FunctionDecl>(Global) && !Global->hasAttr<CUDAHostAttr>() && in EmitGlobal()
2738 Global->hasAttr<CUDADeviceAttr>()) in EmitGlobal()
2849 if (RD->getDestructor() && !RD->getDestructor()->hasAttr<DLLImportAttr>()) in HasNonDllImportDtor()
2912 SafeToInline = D->hasAttr<DLLImportAttr>(); in VisitCXXBindTemporaryExpr()
2919 SafeToInline = VD->hasAttr<DLLImportAttr>(); in VisitDeclRefExpr()
2921 SafeToInline = !V->hasGlobalStorage() || V->hasAttr<DLLImportAttr>(); in VisitDeclRefExpr()
2926 SafeToInline = E->getConstructor()->hasAttr<DLLImportAttr>(); in VisitCXXConstructExpr()
2936 SafeToInline = M->hasAttr<DLLImportAttr>(); in VisitCXXMemberCallExpr()
2942 SafeToInline = E->getOperatorDelete()->hasAttr<DLLImportAttr>(); in VisitCXXDeleteExpr()
2947 SafeToInline = E->getOperatorNew()->hasAttr<DLLImportAttr>(); in VisitCXXNewExpr()
2978 if (CodeGenOpts.OptimizationLevel == 0 && !F->hasAttr<AlwaysInlineAttr>()) in shouldEmitFunction()
2981 if (F->hasAttr<DLLImportAttr>()) { in shouldEmitFunction()
3342 if (FD->hasAttr<TargetAttr>()) in GetOrCreateLLVMFunction()
3354 if (FD && !FD->hasAttr<WeakAttr>()) in GetOrCreateLLVMFunction()
3359 if (D && !D->hasAttr<DLLImportAttr>() && !D->hasAttr<DLLExportAttr>()) { in GetOrCreateLLVMFunction()
3597 if (!FD || FD->hasAttr<DLLImportAttr>()) { in CreateRuntimeFunction()
3649 if (D && !D->hasAttr<WeakAttr>()) in GetOrCreateLLVMGlobal()
3654 if (D && !D->hasAttr<DLLImportAttr>() && !D->hasAttr<DLLExportAttr>()) in GetOrCreateLLVMGlobal()
3771 !D->hasDefinition() && D->hasInit() && !D->hasAttr<DLLImportAttr>()) { in GetOrCreateLLVMGlobal()
3976 if (D && D->hasAttr<CUDAConstantAttr>()) in GetGlobalVarAddressSpace()
3978 else if (D && D->hasAttr<CUDASharedAttr>()) in GetGlobalVarAddressSpace()
3980 else if (D && D->hasAttr<CUDADeviceAttr>()) in GetGlobalVarAddressSpace()
4037 if (!D->template hasAttr<UsedAttr>()) in MaybeHandleStaticInExternC()
4068 if (D.hasAttr<CUDAGlobalAttr>()) in shouldBeInCOMDAT()
4071 if (D.hasAttr<SelectAnyAttr>()) in shouldBeInCOMDAT()
4128 getLangOpts().CUDAIsDevice && D->hasAttr<CUDASharedAttr>(); in EmitGlobalVarDefinition()
4133 (D->hasAttr<CUDAConstantAttr>() || D->hasAttr<CUDADeviceAttr>() || in EmitGlobalVarDefinition()
4134 D->hasAttr<CUDASharedAttr>()); in EmitGlobalVarDefinition()
4144 else if (D->hasAttr<LoaderUninitializedAttr>()) in EmitGlobalVarDefinition()
4226 if (D->hasAttr<AnnotateAttr>()) in EmitGlobalVarDefinition()
4243 (D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>())) in EmitGlobalVarDefinition()
4250 if (D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>()) { in EmitGlobalVarDefinition()
4262 D->hasAttr<CUDAConstantAttr>()); in EmitGlobalVarDefinition()
4263 } else if (D->hasAttr<CUDASharedAttr>()) { in EmitGlobalVarDefinition()
4279 if (TD->hasAttr<CUDADeviceBuiltinSurfaceTypeAttr>()) { in EmitGlobalVarDefinition()
4336 !D->hasAttr<ConstInitAttr>()) in EmitGlobalVarDefinition()
4340 if (D->hasAttr<DLLImportAttr>()) in EmitGlobalVarDefinition()
4342 else if (D->hasAttr<DLLExportAttr>()) in EmitGlobalVarDefinition()
4398 if ((NoCommon || D->hasAttr<NoCommonAttr>()) && !D->hasAttr<CommonAttr>()) in isVarDeclStrongDefinition()
4409 if (D->hasAttr<SectionAttr>()) in isVarDeclStrongDefinition()
4415 if (D->hasAttr<PragmaClangBSSSectionAttr>() || in isVarDeclStrongDefinition()
4416 D->hasAttr<PragmaClangDataSectionAttr>() || in isVarDeclStrongDefinition()
4417 D->hasAttr<PragmaClangRelroSectionAttr>() || in isVarDeclStrongDefinition()
4418 D->hasAttr<PragmaClangRodataSectionAttr>()) in isVarDeclStrongDefinition()
4426 if (D->hasAttr<WeakImportAttr>()) in isVarDeclStrongDefinition()
4436 if (D->hasAttr<AlignedAttr>()) in isVarDeclStrongDefinition()
4447 if (FD->hasAttr<AlignedAttr>()) in isVarDeclStrongDefinition()
4474 if (D->hasAttr<WeakAttr>()) { in getLLVMLinkageForDeclarator()
4520 return D->hasAttr<CUDAGlobalAttr>() ? llvm::Function::ExternalLinkage in getLLVMLinkageForDeclarator()
4536 if (D->hasAttr<SelectAnyAttr>()) in getLLVMLinkageForDeclarator()
4668 if (DK == VarDecl::Definition && VD->hasAttr<DLLImportAttr>()) in HandleCXXStaticMemberVarInstantiation()
4724 if (D->hasAttr<AnnotateAttr>()) in EmitGlobalFunctionDefinition()
4800 if (D->hasAttr<WeakAttr>() || D->hasAttr<WeakRefAttr>() || in EmitAliasDefinition()
4985 if (!VD || !VD->hasAttr<DLLExportAttr>()) in GetAddrOfConstantCFString()