[all-commits] [llvm/llvm-project] d5442b: [AMDGPU] Programmatically port old `.def` clang bu...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jan 14 11:54:20 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5442b8c963d3921007f38ad32d9e6e429665c49
      https://github.com/llvm/llvm-project/commit/d5442b8c963d3921007f38ad32d9e6e429665c49
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2026-01-14 (Wed, 14 Jan 2026)

  Changed paths:
    R clang/include/clang/Basic/BuiltinsAMDGPU.def
    A clang/include/clang/Basic/BuiltinsAMDGPU.td
    M clang/include/clang/Basic/CMakeLists.txt
    M clang/include/clang/Basic/TargetBuiltins.h
    M clang/include/module.modulemap
    M clang/lib/Basic/Targets/AMDGPU.cpp

  Log Message:
  -----------
  [AMDGPU] Programmatically port old `.def` clang builtins to `.td` (#175873)

Summary:
This PR ports the old `.def` builtins to the new Tablegen interface.
This required a few changes in the handler, namely there is a real
meaning to `AS(0)` right now, not just in SPIR-V but when the type
parser expects it. The conversion here should be 1-to-1.

Some more work could be done to reduce the amount of repetition by
grouping all the instructions together, I'll leave that up to whether or
not anyone cares.

This was done with a hastily made Python script that likely will not
work
for the other files, but will successfully update this PR. Putting here
in
case someone wants to use it.
https://gist.github.com/jhuber6/d524c65c0da3adae5afd2ad160589537



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