Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need .tds for libm and runtime libcall API for ~all LLVM targets #112093

Open
workingjubilee opened this issue Oct 12, 2024 · 0 comments
Open

Need .tds for libm and runtime libcall API for ~all LLVM targets #112093

workingjubilee opened this issue Oct 12, 2024 · 0 comments

Comments

@workingjubilee
Copy link
Contributor

This was raised as a concern in #111269 and I am opening an issue to make sure it is not lost as a desired followup.

Basically, there are two contending needs for a list of libm functions:

  • Frontends want to know what builtin functions LLVM will need to call at runtime
  • LLVM wants to keep track of actual calls to libm functions for LTO purposes

Frontends see RuntimeLibcalls.def as suiting the former, but LLVM has lately grown some... appropriations of the .def as the latter. However, RuntimeLibcalls.def is inadequate for the latter, even if it has proven a convenient start. It could use being promoted to a proper TableGen file that can better handle the obviously parameterized cases here.

It might need to be multiple files, given the distinct usages, but hopefully we can avoid complete duplication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant