[all-commits] [llvm/llvm-project] 81963b: [Clang] Simplify target specific implementations i...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Apr 28 11:42:10 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81963b129e9008b0fdbaf56a423a6514ee9a3f26
      https://github.com/llvm/llvm-project/commit/81963b129e9008b0fdbaf56a423a6514ee9a3f26
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2026-04-28 (Tue, 28 Apr 2026)

  Changed paths:
    M clang/lib/Headers/amdgpuintrin.h
    M clang/lib/Headers/gpuintrin.h
    M clang/lib/Headers/nvptxintrin.h
    M clang/lib/Headers/spirvintrin.h

  Log Message:
  -----------
  [Clang] Simplify target specific implementations in gpuintrin.h (#194669)

Summary:
Previously we had a three-way dance where the top-level defined an impl
then the lower level defined potentially an override and then we
stitched those together.

This simplifies  that, instead just defining a macro that says whether
or not we need it. This works because the target-specific portions are
always included first, so this basically says "Do we need to make a
default version".



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