How to enable SIMD in Swift WebAssembly

FWIW it's no different than enabling other LLVM backend features for any other instruction set, there's nothing exclusive to Wasm here in terms of passing the options. See the rest of target-dependent -m and -f options supported by Clang, there is a Wasm section there too. There was a thread or two here on forums about controlling CPU-specific architecture features, which is done in exactly the same way.

1 Like