aboutsummaryrefslogtreecommitdiff
path: root/src/ARMeilleure/Optimizations.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ARMeilleure/Optimizations.cs')
-rw-r--r--src/ARMeilleure/Optimizations.cs44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/ARMeilleure/Optimizations.cs b/src/ARMeilleure/Optimizations.cs
index 13348cec..8fe478e4 100644
--- a/src/ARMeilleure/Optimizations.cs
+++ b/src/ARMeilleure/Optimizations.cs
@@ -1,5 +1,3 @@
-using System.Runtime.Intrinsics.Arm;
-
namespace ARMeilleure
{
using Arm64HardwareCapabilities = ARMeilleure.CodeGen.Arm64.HardwareCapabilities;
@@ -9,31 +7,31 @@ namespace ARMeilleure
{
public static bool FastFP { get; set; } = true;
- public static bool AllowLcqInFunctionTable { get; set; } = true;
+ public static bool AllowLcqInFunctionTable { get; set; } = true;
public static bool UseUnmanagedDispatchLoop { get; set; } = true;
- public static bool UseAdvSimdIfAvailable { get; set; } = true;
- public static bool UseArm64AesIfAvailable { get; set; } = true;
+ public static bool UseAdvSimdIfAvailable { get; set; } = true;
+ public static bool UseArm64AesIfAvailable { get; set; } = true;
public static bool UseArm64PmullIfAvailable { get; set; } = true;
- public static bool UseSseIfAvailable { get; set; } = true;
- public static bool UseSse2IfAvailable { get; set; } = true;
- public static bool UseSse3IfAvailable { get; set; } = true;
- public static bool UseSsse3IfAvailable { get; set; } = true;
- public static bool UseSse41IfAvailable { get; set; } = true;
- public static bool UseSse42IfAvailable { get; set; } = true;
- public static bool UsePopCntIfAvailable { get; set; } = true;
- public static bool UseAvxIfAvailable { get; set; } = true;
- public static bool UseAvx512FIfAvailable { get; set; } = true;
- public static bool UseAvx512VlIfAvailable { get; set; } = true;
- public static bool UseAvx512BwIfAvailable { get; set; } = true;
- public static bool UseAvx512DqIfAvailable { get; set; } = true;
- public static bool UseF16cIfAvailable { get; set; } = true;
- public static bool UseFmaIfAvailable { get; set; } = true;
- public static bool UseAesniIfAvailable { get; set; } = true;
+ public static bool UseSseIfAvailable { get; set; } = true;
+ public static bool UseSse2IfAvailable { get; set; } = true;
+ public static bool UseSse3IfAvailable { get; set; } = true;
+ public static bool UseSsse3IfAvailable { get; set; } = true;
+ public static bool UseSse41IfAvailable { get; set; } = true;
+ public static bool UseSse42IfAvailable { get; set; } = true;
+ public static bool UsePopCntIfAvailable { get; set; } = true;
+ public static bool UseAvxIfAvailable { get; set; } = true;
+ public static bool UseAvx512FIfAvailable { get; set; } = true;
+ public static bool UseAvx512VlIfAvailable { get; set; } = true;
+ public static bool UseAvx512BwIfAvailable { get; set; } = true;
+ public static bool UseAvx512DqIfAvailable { get; set; } = true;
+ public static bool UseF16cIfAvailable { get; set; } = true;
+ public static bool UseFmaIfAvailable { get; set; } = true;
+ public static bool UseAesniIfAvailable { get; set; } = true;
public static bool UsePclmulqdqIfAvailable { get; set; } = true;
- public static bool UseShaIfAvailable { get; set; } = true;
- public static bool UseGfniIfAvailable { get; set; } = true;
+ public static bool UseShaIfAvailable { get; set; } = true;
+ public static bool UseGfniIfAvailable { get; set; } = true;
public static bool ForceLegacySse
{
@@ -41,6 +39,7 @@ namespace ARMeilleure
set => X86HardwareCapabilities.ForceLegacySse = value;
}
+#pragma warning disable IDE0055 // Disable formatting
internal static bool UseAdvSimd => UseAdvSimdIfAvailable && Arm64HardwareCapabilities.SupportsAdvSimd;
internal static bool UseArm64Aes => UseArm64AesIfAvailable && Arm64HardwareCapabilities.SupportsAes;
internal static bool UseArm64Pmull => UseArm64PmullIfAvailable && Arm64HardwareCapabilities.SupportsPmull;
@@ -63,6 +62,7 @@ namespace ARMeilleure
internal static bool UsePclmulqdq => UsePclmulqdqIfAvailable && X86HardwareCapabilities.SupportsPclmulqdq;
internal static bool UseSha => UseShaIfAvailable && X86HardwareCapabilities.SupportsSha;
internal static bool UseGfni => UseGfniIfAvailable && X86HardwareCapabilities.SupportsGfni;
+#pragma warning restore IDE0055
internal static bool UseAvx512Ortho => UseAvx512F && UseAvx512Vl;
internal static bool UseAvx512OrthoFloat => UseAvx512Ortho && UseAvx512Dq;