[llvm-branch-commits] [llvm] RuntimeLibcalls: Add definitions for vector math functions (PR #167026)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Nov 8 09:39:22 PST 2025
================
@@ -182,10 +182,63 @@ foreach FPTy = ["F32", "F64", "F80", "F128", "PPCF128"] in {
def MODF_#FPTy : RuntimeLibcall;
}
-foreach VecTy = ["V4F32", "V2F64", "NXV4F32", "NXV2F64"] in {
- def MODF_#VecTy : RuntimeLibcall;
- def SINCOS_#VecTy : RuntimeLibcall;
- def SINCOSPI_#VecTy : RuntimeLibcall;
+defvar F32VectorSuffixes = ["V2F32", "V4F32", "V8F32", "V16F32", "NXV4F32"];
+defvar F64VectorSuffixes = ["V2F64", "V4F64", "V8F64", "NXV2F64"];
----------------
Andarwinux wrote:
Compared to VABI_PREFIX in VecFuncs.def, VectorSuffixes appears to lack certain semantics. For instance, in VecFuncs.def, it is possible to add “FIXED(8), MASKED, _ZGV_LLVM_M8vv”, but in VectorSuffixes, V8F64 seems unable to express the NOMASK/MASKED semantics.
https://github.com/llvm/llvm-project/pull/167026
More information about the llvm-branch-commits
mailing list