Files
wasmtime/cranelift/native
Chris Fallin 5033f9994b cranelift-native flags detection: fix flags on SSE2-only systems. (#4231)
In #4224 we saw that an SSE2-only x86-64 system somehow was still
 detecting SSE3/SSSE3/SSE4.1/SSE4.2. It turns out that we enabled these
 in the baseline `Flags` in #3816, because without that, a ton of other
 things break: default flags no longer produce a compiler backend that
 works with default Wasmtime settings. However the logic to set them
 when detected (via `CPUID`-using feature-test macros) only does an "if
 detected then set bit" step per feature; the bits are never *cleared*.
 This PR fixes that.
2022-06-08 13:48:41 -07:00
..
2022-06-06 09:12:47 -05:00

This crate performs autodetection of the host architecture, which can be used to configure Cranelift to generate code specialized for the machine it's running on.