class Wasmer::CpuFeatures
- Wasmer::CpuFeatures
- Reference
- Object
Overview
CpuFeatures holds a set of CPU features. They are identified by their stringified names. The reference is the GCC options:
- https:gcc.gnu.org/onlinedocs/gcc/x86-Options.html,
- https:gcc.gnu.org/onlinedocs/gcc/ARM-Options.html,
- https:gcc.gnu.org/onlinedocs/gcc/AArch64-Options.html. At the time of writing this documentation (it might be outdated in the future), the supported featurse are the following:
- sse2,
- sse3,
- ssse3,
- sse4.1,
- sse4.2,
- popcnt,
- avx,
- bmi,
- bmi2,
- avx2,
- avx512dq,
- avx512vl,
- lzcnt.
Defined in:
wasmer/target.crConstructors
-
.new
Create a new CputFeatures, which is a set of CPU features.
Instance Method Summary
-
#add(feature : String)
Add a new CPU feature to the existing set