#864·codon

[FEATURE REQUEST] veclib for vectorized math functions

Author: chillenbCreated Sep 21, 2026Updated Sep 24, 2026

I can't get codon to do the equivalent of clang's -fveclib=[], so trig functions, etc are all scalar.

The LLVM-IR produced by codon does have short vector trig intrinsics, but they're always lowered to scalar libm functions. You might want to add a command-line option like fveclib to enable short vector math. Here are some relevant parts of the llvm codebase