Skip to content

Commit 4decfbd

Browse files
authored
Merge pull request #533 from serge-sans-paille/fix/arch-name
Support `name()` method for arch
2 parents 92c139b + d2a4428 commit 4decfbd

16 files changed

+22
-0
lines changed

include/xsimd/types/xsimd_avx2_register.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace xsimd
1010
static constexpr bool supported() { return XSIMD_WITH_AVX2; }
1111
static constexpr bool available() { return true; }
1212
static constexpr unsigned version() { return generic::version(2, 2, 0); }
13+
static constexpr char const* name() { return "avx2"; }
1314
};
1415

1516
#if XSIMD_WITH_AVX2

include/xsimd/types/xsimd_avx512bw_register.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace xsimd {
99
static constexpr bool supported() { return XSIMD_WITH_AVX512BW; }
1010
static constexpr bool available() { return true; }
1111
static constexpr unsigned version() { return generic::version(3, 4, 0); }
12+
static constexpr char const* name() { return "avx512bw"; }
1213
};
1314

1415
#if XSIMD_WITH_AVX512BW

include/xsimd/types/xsimd_avx512cd_register.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace xsimd {
99
static constexpr bool supported() { return XSIMD_WITH_AVX512BW; }
1010
static constexpr bool available() { return true; }
1111
static constexpr unsigned version() { return generic::version(3, 2, 0); }
12+
static constexpr char const* name() { return "avx512cd"; }
1213
};
1314

1415
#if XSIMD_WITH_AVX512BW

include/xsimd/types/xsimd_avx512dq_register.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace xsimd {
99
static constexpr bool supported() { return XSIMD_WITH_AVX512DQ; }
1010
static constexpr bool available() { return true; }
1111
static constexpr unsigned version() { return generic::version(3, 3, 0); }
12+
static constexpr char const* name() { return "avx512dq"; }
1213
};
1314

1415
#if XSIMD_WITH_AVX512DQ

include/xsimd/types/xsimd_avx512f_register.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace xsimd {
1111
static constexpr unsigned version() { return generic::version(3, 1, 0); }
1212
static constexpr std::size_t alignment() { return 64; }
1313
static constexpr bool requires_alignment() { return true; }
14+
static constexpr char const* name() { return "avx512f"; }
1415
};
1516

1617
#if XSIMD_WITH_AVX512F

include/xsimd/types/xsimd_avx_register.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace xsimd {
1111
static constexpr unsigned version() { return generic::version(2, 1, 0); }
1212
static constexpr std::size_t alignment() { return 32; }
1313
static constexpr bool requires_alignment() { return true; }
14+
static constexpr char const* name() { return "avx"; }
1415
};
1516
}
1617

include/xsimd/types/xsimd_fma3_register.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace xsimd {
1010
static constexpr bool supported() { return XSIMD_WITH_FMA3; }
1111
static constexpr bool available() { return true; }
1212
static constexpr unsigned version() { return generic::version(1, 5, 0); }
13+
static constexpr char const* name() { return "sse4.2+fma"; }
1314
};
1415

1516
#if XSIMD_WITH_FMA3

include/xsimd/types/xsimd_fma5_register.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace xsimd {
1010
static constexpr bool supported() { return XSIMD_WITH_FMA5; }
1111
static constexpr bool available() { return true; }
1212
static constexpr unsigned version() { return generic::version(2, 3, 0); }
13+
static constexpr char const* name() { return "avx2+fma"; }
1314
};
1415

1516
#if XSIMD_WITH_FMA5

include/xsimd/types/xsimd_neon64_register.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ namespace xsimd
1212
static constexpr bool requires_alignment() { return true; }
1313
static constexpr std::size_t alignment() { return 16; }
1414
static constexpr unsigned version() { return generic::version(8, 1, 0); }
15+
static constexpr char const* name() { return "arm64+neon"; }
1516
};
1617

1718
#if XSIMD_WITH_NEON64

include/xsimd/types/xsimd_neon_register.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace xsimd
1717
static constexpr bool requires_alignment() { return true; }
1818
static constexpr std::size_t alignment() { return 16; }
1919
static constexpr unsigned version() { return generic::version(7, 0, 0); }
20+
static constexpr char const* name() { return "arm32+neon"; }
2021
};
2122

2223
#if XSIMD_WITH_NEON

0 commit comments

Comments
 (0)