@@ -1855,7 +1855,7 @@ VendorSignatures getVendorSignature(unsigned *MaxLeaf) {
1855
1855
1856
1856
#if defined(__i386__) || defined(_M_IX86) || \
1857
1857
defined (__x86_64__) || defined(_M_X64)
1858
- const StringMap<bool> sys::getHostCPUFeatures() {
1858
+ StringMap<bool> sys::getHostCPUFeatures() {
1859
1859
unsigned EAX = 0 , EBX = 0 , ECX = 0 , EDX = 0 ;
1860
1860
unsigned MaxLevel;
1861
1861
StringMap<bool > Features;
@@ -2068,7 +2068,7 @@ const StringMap<bool> sys::getHostCPUFeatures() {
2068
2068
return Features;
2069
2069
}
2070
2070
#elif defined(__linux__) && (defined(__arm__) || defined(__aarch64__))
2071
- const StringMap<bool > sys::getHostCPUFeatures () {
2071
+ StringMap<bool > sys::getHostCPUFeatures () {
2072
2072
StringMap<bool > Features;
2073
2073
std::unique_ptr<llvm::MemoryBuffer> P = getProcCpuinfoContent ();
2074
2074
if (!P)
@@ -2148,7 +2148,7 @@ const StringMap<bool> sys::getHostCPUFeatures() {
2148
2148
return Features;
2149
2149
}
2150
2150
#elif defined(_WIN32) && (defined(__aarch64__) || defined(_M_ARM64))
2151
- const StringMap<bool > sys::getHostCPUFeatures () {
2151
+ StringMap<bool > sys::getHostCPUFeatures () {
2152
2152
StringMap<bool > Features;
2153
2153
2154
2154
// If we're asking the OS at runtime, believe what the OS says
@@ -2167,7 +2167,7 @@ const StringMap<bool> sys::getHostCPUFeatures() {
2167
2167
}
2168
2168
#elif defined(__linux__) && defined(__loongarch__)
2169
2169
#include < sys/auxv.h>
2170
- const StringMap<bool > sys::getHostCPUFeatures () {
2170
+ StringMap<bool > sys::getHostCPUFeatures () {
2171
2171
unsigned long hwcap = getauxval (AT_HWCAP);
2172
2172
bool HasFPU = hwcap & (1UL << 3 ); // HWCAP_LOONGARCH_FPU
2173
2173
uint32_t cpucfg2 = 0x2 , cpucfg3 = 0x3 ;
@@ -2196,7 +2196,7 @@ const StringMap<bool> sys::getHostCPUFeatures() {
2196
2196
return Features;
2197
2197
}
2198
2198
#elif defined(__linux__) && defined(__riscv)
2199
- const StringMap<bool > sys::getHostCPUFeatures () {
2199
+ StringMap<bool > sys::getHostCPUFeatures () {
2200
2200
RISCVHwProbe Query[]{{/* RISCV_HWPROBE_KEY_BASE_BEHAVIOR=*/ 3 , 0 },
2201
2201
{/* RISCV_HWPROBE_KEY_IMA_EXT_0=*/ 4 , 0 },
2202
2202
{/* RISCV_HWPROBE_KEY_MISALIGNED_SCALAR_PERF=*/ 9 , 0 }};
@@ -2279,7 +2279,7 @@ const StringMap<bool> sys::getHostCPUFeatures() {
2279
2279
return Features;
2280
2280
}
2281
2281
#else
2282
- const StringMap<bool > sys::getHostCPUFeatures () { return {}; }
2282
+ StringMap<bool > sys::getHostCPUFeatures () { return {}; }
2283
2283
#endif
2284
2284
2285
2285
#if __APPLE__
0 commit comments