[libcxx-commits] [libcxx] [libc++] Implement hardware_interference_size even on Clang (PR #83603)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 7 08:31:51 PST 2024


philnik777 wrote:

I don't really like this direction. This is something the compiler could and should provide with relative ease. I'd really like to avoid getting into hundreds of lines of
```
#ifdef __x86__
#ifdef __tune_znver2__
...
#elifdef __tune_corei7__
...
#else
...
#endif
#else
...
#endif
```


https://github.com/llvm/llvm-project/pull/83603


More information about the libcxx-commits mailing list