[all-commits] [llvm/llvm-project] 8eda60: [RFC][Docs][Clang][AMDGPU] Add AMDGPU builtins doc...

Shilei Tian via All-commits all-commits at lists.llvm.org
Fri Feb 13 12:37:28 PST 2026


  Branch: refs/heads/users/shiltian/amdgpu-clang-builtins-doc
  Home:   https://github.com/llvm/llvm-project
  Commit: 8eda605d400cb6c5e348b08dae003b9c687985c6
      https://github.com/llvm/llvm-project/commit/8eda605d400cb6c5e348b08dae003b9c687985c6
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    A clang/docs/AMDGPUBuiltins.rst
    M clang/docs/index.rst

  Log Message:
  -----------
  [RFC][Docs][Clang][AMDGPU] Add AMDGPU builtins documentation

Add comprehensive documentation for AMDGPU target-specific builtins
(`AMDGPUBuiltins.rst`) covering argument semantics, restrictions, and
lowering notes for all builtin families.

This documentation was generated by AI (Claude) by cross-referencing:
- `clang/include/clang/Basic/BuiltinsAMDGPU.td` (builtin definitions)
- `llvm/include/llvm/IR/IntrinsicsAMDGPU.td` (intrinsic definitions)
- `clang/lib/Sema/SemaAMDGPU.cpp` (argument validation/constraints)
- `clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp` (lowering logic)

I did my best to proofread the parts I'm familiar with, but it would be greatly
appreciated if more people could help review it as well.


  Commit: 3136188831cfad36a25773db3117e3c3a9744cb2
      https://github.com/llvm/llvm-project/commit/3136188831cfad36a25773db3117e3c3a9744cb2
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    M clang/docs/AMDGPUBuiltins.rst

  Log Message:
  -----------
  add a warning


  Commit: 5e369088bcf2605e40ce31e3f853ea2908cd4f75
      https://github.com/llvm/llvm-project/commit/5e369088bcf2605e40ce31e3f853ea2908cd4f75
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    M clang/docs/AMDGPUBuiltins.rst

  Log Message:
  -----------
  fix doc build error


  Commit: 45d5b46a774dfc4e1d68733cd85cc7cb21ca77f9
      https://github.com/llvm/llvm-project/commit/45d5b46a774dfc4e1d68733cd85cc7cb21ca77f9
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    M clang/docs/AMDGPUBuiltins.rst

  Log Message:
  -----------
  - further refine
- cross reference from AMD's official GPUOpen Machine-Readable ISA
- Improve readability for broader target audience


Compare: https://github.com/llvm/llvm-project/compare/96393b81af18...45d5b46a774d

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