[all-commits] [llvm/llvm-project] 196ee2: [Clang] Correctly enable the f16 type for offloadi...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jul 10 10:57:15 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 196ee230fdc9ab90dacfeb846c794f5d0c9d1e0c
      https://github.com/llvm/llvm-project/commit/196ee230fdc9ab90dacfeb846c794f5d0c9d1e0c
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-07-10 (Wed, 10 Jul 2024)

  Changed paths:
    M clang/lib/Basic/Targets/NVPTX.h
    R clang/test/CodeGen/builtins-nvptx-native-half-type-err.c
    A clang/test/CodeGen/builtins-nvptx-native-half-type-native.c

  Log Message:
  -----------
  [Clang] Correctly enable the f16 type for offloading (#98331)

Summary:
There's an extra argument that's required to *actually* enable f16
usage. For whatever reason there's a difference between fp16 and f16,
where fp16 is some weird version that converts between the two. Long
story short, without this the math builtins are blatantly broken.



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