emscripten-core / emscripten-core/emscripten
Add diagnose_if warnings for slow SIMD stuff?
Open
good first bug
help wanted
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
The SIMD emulation occasionally drops to scalarized code. In addition to putting a bomb emoji in the doc, we can use something like `__attribute__((diagnose_if(__EMSCRIPTEN_SIMD_🐌__ < 4, "💣", "warning")))__` to mark them in the header too. Clang would then emit warnings when a tagged function are called. Doing so might help developers with hunting down slow emulations.
Doc: https://clang.llvm.org/docs/AttributeReference.html#diagnose-if
Contributor guide
Assessment
This issue has not been assessed yet.