[all-commits] [llvm/llvm-project] a774ad: Bulk port 64-bit x86 builtins to TableGen (#121043)

Chandler Carruth via All-commits all-commits at lists.llvm.org
Sat Jan 4 17:52:41 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a774adb017256ceae85ec92ce5148ed47e517540
      https://github.com/llvm/llvm-project/commit/a774adb017256ceae85ec92ce5148ed47e517540
  Author: Chandler Carruth <chandlerc at gmail.com>
  Date:   2025-01-04 (Sat, 04 Jan 2025)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsX86.td
    A clang/include/clang/Basic/BuiltinsX86Base.td
    R clang/include/clang/Basic/BuiltinsX86_64.def
    A clang/include/clang/Basic/BuiltinsX86_64.td
    M clang/include/clang/Basic/CMakeLists.txt
    M clang/include/clang/Basic/TargetBuiltins.h
    M clang/lib/Basic/Targets/X86.cpp

  Log Message:
  -----------
  Bulk port 64-bit x86 builtins to TableGen (#121043)

This PR follows https://github.com/llvm/llvm-project/pull/120831 for
x86-64.

Similar to that PR, this does a very mechanical port of X86 builtins to
TableGen. There is a *lot* of improvement available here to use TableGen
more effectively and collapse repeated structures. But those can now be
follow-up PRs that restructure *within* the `.td` file.

The current structure produces a file that exactly matches the original
X-macros except for the differences outlined in
https://github.com/llvm/llvm-project/pull/120831:

- Horizontal whitespace
- `long long` types now use `long long` outside of OpenCL, but switch to
  `long` in OpenCL where relevant.

Otherwise, only the order of builtins change, and no tests regress.



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