Lines Matching refs:hasAttr
286 bool IsIFunc = D->hasAttr<IFuncAttr>(); in checkAliases()
791 if (FD->hasAttr<DLLImportAttr>()) in setFunctionDLLStorageClass()
793 else if (FD->hasAttr<DLLExportAttr>()) in setFunctionDLLStorageClass()
874 if (D->hasAttr<NakedAttr>()) { in SetLLVMFunctionAttributesForDefinition()
878 } else if (D->hasAttr<NoDuplicateAttr>()) { in SetLLVMFunctionAttributesForDefinition()
880 } else if (D->hasAttr<NoInlineAttr>()) { in SetLLVMFunctionAttributesForDefinition()
882 } else if (D->hasAttr<AlwaysInlineAttr>() && in SetLLVMFunctionAttributesForDefinition()
889 if (D->hasAttr<ColdAttr>()) { in SetLLVMFunctionAttributesForDefinition()
890 if (!D->hasAttr<OptimizeNoneAttr>()) in SetLLVMFunctionAttributesForDefinition()
895 if (D->hasAttr<MinSizeAttr>()) in SetLLVMFunctionAttributesForDefinition()
902 if (D->hasAttr<OptimizeNoneAttr>()) { in SetLLVMFunctionAttributesForDefinition()
939 if (D && D->hasAttr<UsedAttr>()) in SetCommonAttributes()
949 if (D->hasAttr<DLLExportAttr>()) in setAliasAttributes()
982 if (ND->hasAttr<DLLImportAttr>()) { in setLinkageAndVisibilityForGV()
985 } else if (ND->hasAttr<DLLExportAttr>()) { in setLinkageAndVisibilityForGV()
988 } else if (ND->hasAttr<WeakAttr>() || ND->isWeakImported()) { in setLinkageAndVisibilityForGV()
1383 assert(D->hasAttr<AnnotateAttr>() && "no annotate attribute"); in AddGlobalAnnotations()
1527 if (Global->hasAttr<WeakRefAttr>()) in EmitGlobal()
1532 if (Global->hasAttr<AliasAttr>()) in EmitGlobal()
1536 if (Global->hasAttr<IFuncAttr>()) in EmitGlobal()
1542 if (!Global->hasAttr<CUDADeviceAttr>() && in EmitGlobal()
1543 !Global->hasAttr<CUDAGlobalAttr>() && in EmitGlobal()
1544 !Global->hasAttr<CUDAConstantAttr>() && in EmitGlobal()
1545 !Global->hasAttr<CUDASharedAttr>()) in EmitGlobal()
1554 if (isa<FunctionDecl>(Global) && !Global->hasAttr<CUDAHostAttr>() && in EmitGlobal()
1555 Global->hasAttr<CUDADeviceAttr>()) in EmitGlobal()
1600 (VD->hasAttr<CUDAConstantAttr>() || in EmitGlobal()
1601 VD->hasAttr<CUDADeviceAttr>()); in EmitGlobal()
1694 SafeToInline = VD->hasAttr<DLLImportAttr>(); in VisitDeclRefExpr()
1696 SafeToInline = !V->hasGlobalStorage() || V->hasAttr<DLLImportAttr>(); in VisitDeclRefExpr()
1700 SafeToInline = E->getOperatorDelete()->hasAttr<DLLImportAttr>(); in VisitCXXDeleteExpr()
1704 SafeToInline = E->getOperatorNew()->hasAttr<DLLImportAttr>(); in VisitCXXNewExpr()
1736 if (CodeGenOpts.OptimizationLevel == 0 && !F->hasAttr<AlwaysInlineAttr>()) in shouldEmitFunction()
1739 if (F->hasAttr<DLLImportAttr>()) { in shouldEmitFunction()
1834 if (FD && !FD->hasAttr<WeakAttr>()) in GetOrCreateLLVMFunction()
1839 if (D && !D->hasAttr<DLLImportAttr>() && !D->hasAttr<DLLExportAttr>()) in GetOrCreateLLVMFunction()
2070 if (D && !D->hasAttr<WeakAttr>()) in GetOrCreateLLVMGlobal()
2075 if (D && !D->hasAttr<DLLImportAttr>() && !D->hasAttr<DLLExportAttr>()) in GetOrCreateLLVMGlobal()
2309 if (D->hasAttr<CUDAConstantAttr>()) in GetGlobalVarAddressSpace()
2311 else if (D->hasAttr<CUDASharedAttr>()) in GetGlobalVarAddressSpace()
2328 if (!D->template hasAttr<UsedAttr>()) in MaybeHandleStaticInExternC()
2357 if (D.hasAttr<SelectAnyAttr>()) in shouldBeInCOMDAT()
2401 D->hasAttr<CUDASharedAttr>()) in EmitGlobalVarDefinition()
2488 if (D->hasAttr<AnnotateAttr>()) in EmitGlobalVarDefinition()
2504 if (D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>()) in EmitGlobalVarDefinition()
2511 if (D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>()) { in EmitGlobalVarDefinition()
2519 if (D->hasAttr<CUDAConstantAttr>()) in EmitGlobalVarDefinition()
2522 } else if (D->hasAttr<CUDASharedAttr>()) in EmitGlobalVarDefinition()
2561 if (D->hasAttr<DLLImportAttr>()) in EmitGlobalVarDefinition()
2563 else if (D->hasAttr<DLLExportAttr>()) in EmitGlobalVarDefinition()
2599 if ((NoCommon || D->hasAttr<NoCommonAttr>()) && !D->hasAttr<CommonAttr>()) in isVarDeclStrongDefinition()
2610 if (D->hasAttr<SectionAttr>()) in isVarDeclStrongDefinition()
2618 if (D->hasAttr<WeakImportAttr>()) in isVarDeclStrongDefinition()
2628 if (D->hasAttr<AlignedAttr>()) in isVarDeclStrongDefinition()
2639 if (FD->hasAttr<AlignedAttr>()) in isVarDeclStrongDefinition()
2655 if (D->hasAttr<WeakAttr>()) { in getLLVMLinkageForDeclarator()
2694 return D->hasAttr<CUDAGlobalAttr>() ? llvm::Function::ExternalLinkage in getLLVMLinkageForDeclarator()
2710 if (D->hasAttr<SelectAnyAttr>()) in getLLVMLinkageForDeclarator()
2855 if (DK == VarDecl::Definition && VD->hasAttr<DLLImportAttr>()) in HandleCXXStaticMemberVarInstantiation()
2909 if (D->hasAttr<AnnotateAttr>()) in EmitGlobalFunctionDefinition()
2977 if (D->hasAttr<WeakAttr>() || D->hasAttr<WeakRefAttr>() || in EmitAliasDefinition()
3131 if (!VD || !VD->hasAttr<DLLExportAttr>()) { in GetAddrOfConstantCFString()