[clang] [llvm] [RFC][MATHVEC] Introduce the LLVM's mathvec library as yet another veclib functions provider (PR #234621)
Tarun Prabhu via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 07:45:53 PST 2026
https://github.com/tarunprabhu commented:
The frontend and middle-end parts of this look reasonable to me. I didn't look at the AArch64-specific tests. I'll hold off on approving since it's best if someone on the LLVM/libc/vectorizer side of the house takes a look as well.
Is this only available on AArch64 and X86 for now? If it is available on RISCV too, we should probably add a test for that too.
This is from your [comment](https://github.com/llvm/llvm-project/pull/234621#issuecomment-7134829986).
> Now it's up to the user how to resolve `-fveclib=llvm`, two possible ways I've tried:
>
> ```
> $ clang -O3 -o vecexpf vecexpf.c printit.o -fveclib=llvm -lllvmlibc
>
> $ clang -O3 -o vecexpf vecexpf.c printit.o -fveclib=llvm $HOME/upstream/llvm-libc-debug/lib/libmvec.a -lm
> ...
Would it be worth documenting this somewhere, if it is not already?
https://github.com/llvm/llvm-project/pull/234621
More information about the cfe-commits
mailing list