[all-commits] [llvm/llvm-project] 6b7b28: [DirectX] Disable all libcalls for DXIL in TargetL...

Deric C. via All-commits all-commits at lists.llvm.org
Mon May 12 14:23:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b7b289038acb297f433fe1c0cb66158277e9974
      https://github.com/llvm/llvm-project/commit/6b7b289038acb297f433fe1c0cb66158277e9974
  Author: Deric C. <cheung.deric at gmail.com>
  Date:   2025-05-12 (Mon, 12 May 2025)

  Changed paths:
    M llvm/lib/Analysis/TargetLibraryInfo.cpp

  Log Message:
  -----------
  [DirectX] Disable all libcalls for DXIL in TargetLibraryInfo.cpp (#138991)

Fixes #138787

To the best of my knowledge, DXIL does not (and should not) support any
of the libcalls in
[`TargetLibraryInfo.def`](https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Analysis/TargetLibraryInfo.def).
Math libcalls are not used in HLSL and also do not have lowerings to
DXIL. (The current implementation of math functions are done via
intrinsics.)
If there is a mistake with disabling all libcalls, then the libcalls we
need can be re-enabled in a follow-up PR.

---------

Co-authored-by: Justin Bogner <mail at justinbogner.com>



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