[all-commits] [llvm/llvm-project] 866dba: RuntimeLibcalls: Add definitions for vector math f...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Nov 7 14:13:29 PST 2025


  Branch: refs/heads/users/arsenm/runtime-libcalls/add-vector-library-functions
  Home:   https://github.com/llvm/llvm-project
  Commit: 866dba47b300517f3b74562230d45f9adef79af1
      https://github.com/llvm/llvm-project/commit/866dba47b300517f3b74562230d45f9adef79af1
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-11-07 (Fri, 07 Nov 2025)

  Changed paths:
    M llvm/include/llvm/IR/RuntimeLibcalls.td

  Log Message:
  -----------
  RuntimeLibcalls: Add definitions for vector math functions

This is mostly the output of a vibe coded script running on
VecFuncs.def, with a lot of manual cleanups and fixing where the
vibes were off. This is not yet wired up to anything (except for the
handful of calls which are already manually enabled). In the future
the SystemLibrary mechanism needs to be generalized to allow plugging
these sets in based on the flag.

One annoying piece is there are some name conflicts across the libraries.
Some of the libmvec functions have name collisions with some sleef functions.
I solved this by just adding a prefix to the libmvec functions. It would
probably be a good idea to add a prefix to every group. It gets ugly,
particularly since some of the sleef functions started to use a Sleef_ prefix,
but mostly do not.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list