Lines Matching refs:hasAttr
740 if (FD->hasAttr<DLLImportAttr>()) in setFunctionDLLStorageClass()
742 else if (FD->hasAttr<DLLExportAttr>()) in setFunctionDLLStorageClass()
823 if (D->hasAttr<NakedAttr>()) { in SetLLVMFunctionAttributesForDefinition()
827 } else if (D->hasAttr<NoDuplicateAttr>()) { in SetLLVMFunctionAttributesForDefinition()
829 } else if (D->hasAttr<NoInlineAttr>()) { in SetLLVMFunctionAttributesForDefinition()
831 } else if (D->hasAttr<AlwaysInlineAttr>() && in SetLLVMFunctionAttributesForDefinition()
838 if (D->hasAttr<ColdAttr>()) { in SetLLVMFunctionAttributesForDefinition()
839 if (!D->hasAttr<OptimizeNoneAttr>()) in SetLLVMFunctionAttributesForDefinition()
844 if (D->hasAttr<MinSizeAttr>()) in SetLLVMFunctionAttributesForDefinition()
851 if (D->hasAttr<OptimizeNoneAttr>()) { in SetLLVMFunctionAttributesForDefinition()
894 if (D && D->hasAttr<UsedAttr>()) in SetCommonAttributes()
904 if (D->hasAttr<DLLExportAttr>()) in setAliasAttributes()
937 if (ND->hasAttr<DLLImportAttr>()) { in setLinkageAndVisibilityForGV()
940 } else if (ND->hasAttr<DLLExportAttr>()) { in setLinkageAndVisibilityForGV()
943 } else if (ND->hasAttr<WeakAttr>() || ND->isWeakImported()) { in setLinkageAndVisibilityForGV()
1330 assert(D->hasAttr<AnnotateAttr>() && "no annotate attribute"); in AddGlobalAnnotations()
1468 if (Global->hasAttr<WeakRefAttr>()) in EmitGlobal()
1473 if (Global->hasAttr<AliasAttr>()) in EmitGlobal()
1479 if (!Global->hasAttr<CUDADeviceAttr>() && in EmitGlobal()
1480 !Global->hasAttr<CUDAGlobalAttr>() && in EmitGlobal()
1481 !Global->hasAttr<CUDAConstantAttr>() && in EmitGlobal()
1482 !Global->hasAttr<CUDASharedAttr>()) in EmitGlobal()
1485 if (!Global->hasAttr<CUDAHostAttr>() && ( in EmitGlobal()
1486 Global->hasAttr<CUDADeviceAttr>() || in EmitGlobal()
1487 Global->hasAttr<CUDAConstantAttr>() || in EmitGlobal()
1488 Global->hasAttr<CUDASharedAttr>())) in EmitGlobal()
1599 SafeToInline = VD->hasAttr<DLLImportAttr>(); in VisitDeclRefExpr()
1601 SafeToInline = !V->hasGlobalStorage() || V->hasAttr<DLLImportAttr>(); in VisitDeclRefExpr()
1605 SafeToInline = E->getOperatorDelete()->hasAttr<DLLImportAttr>(); in VisitCXXDeleteExpr()
1609 SafeToInline = E->getOperatorNew()->hasAttr<DLLImportAttr>(); in VisitCXXNewExpr()
1641 if (CodeGenOpts.OptimizationLevel == 0 && !F->hasAttr<AlwaysInlineAttr>()) in shouldEmitFunction()
1644 if (F->hasAttr<DLLImportAttr>()) { in shouldEmitFunction()
1739 if (FD && !FD->hasAttr<WeakAttr>()) in GetOrCreateLLVMFunction()
1744 if (D && !D->hasAttr<DLLImportAttr>() && !D->hasAttr<DLLExportAttr>()) in GetOrCreateLLVMFunction()
1970 if (D && !D->hasAttr<WeakAttr>()) in GetOrCreateLLVMGlobal()
1975 if (D && !D->hasAttr<DLLImportAttr>() && !D->hasAttr<DLLExportAttr>()) in GetOrCreateLLVMGlobal()
2163 if (D->hasAttr<CUDAConstantAttr>()) in GetGlobalVarAddressSpace()
2165 else if (D->hasAttr<CUDASharedAttr>()) in GetGlobalVarAddressSpace()
2182 if (!D->template hasAttr<UsedAttr>()) in MaybeHandleStaticInExternC()
2211 if (D.hasAttr<SelectAnyAttr>()) in shouldBeInCOMDAT()
2252 && D->hasAttr<CUDASharedAttr>()) { in EmitGlobalVarDefinition()
2343 if (D->hasAttr<AnnotateAttr>()) in EmitGlobalVarDefinition()
2354 (D->hasAttr<CUDAConstantAttr>() || D->hasAttr<CUDADeviceAttr>())) { in EmitGlobalVarDefinition()
2390 if (D->hasAttr<DLLImportAttr>()) in EmitGlobalVarDefinition()
2392 else if (D->hasAttr<DLLExportAttr>()) in EmitGlobalVarDefinition()
2428 if ((NoCommon || D->hasAttr<NoCommonAttr>()) && !D->hasAttr<CommonAttr>()) in isVarDeclStrongDefinition()
2439 if (D->hasAttr<SectionAttr>()) in isVarDeclStrongDefinition()
2447 if (D->hasAttr<WeakImportAttr>()) in isVarDeclStrongDefinition()
2457 if (D->hasAttr<AlignedAttr>()) in isVarDeclStrongDefinition()
2468 if (FD->hasAttr<AlignedAttr>()) in isVarDeclStrongDefinition()
2484 if (D->hasAttr<WeakAttr>()) { in getLLVMLinkageForDeclarator()
2530 if (D->hasAttr<SelectAnyAttr>()) in getLLVMLinkageForDeclarator()
2725 if (D->hasAttr<AnnotateAttr>()) in EmitGlobalFunctionDefinition()
2793 if (D->hasAttr<WeakAttr>() || D->hasAttr<WeakRefAttr>() || in EmitAliasDefinition()