emscripten-core / emscripten-core/emscripten

Add diagnose_if warnings for slow SIMD stuff?

Open
#12,871 3 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.