Skip to content

AMDGPU: Don't use table for metadata docs, and fix section headers #85046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions llvm/docs/AMDGPUUsage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1312,24 +1312,30 @@ The AMDGPU backend implements the following LLVM IR intrinsics.

List AMDGPU intrinsics.

.. _amdgpu_metadata:

LLVM IR Metadata
------------------
================

The AMDGPU backend implements the following target custom LLVM IR
metadata.

.. _amdgpu_last_use:

The AMDGPU backend implements the following LLVM IR metadata.
'``amdgpu.last.use``' Metadata
------------------------------

Sets TH_LOAD_LU temporal hint on load instructions that support it.
Takes priority over nontemporal hint (TH_LOAD_NT). This takes no
arguments.

.. code-block:: llvm

.. list-table:: AMDGPU LLVM IR Metatdata
:name: amdgpu-llvm-ir-metadata-table
%val = load i32, ptr %in, align 4, !amdgpu.last.use !{}

* - Metadata Name
- Description
- Values
* - !amdgpu.last.use
- Sets TH_LOAD_LU temporal hint on load instructions that support it.
Takes priority over nontemporal hint (TH_LOAD_NT).
- {}

LLVM IR Attributes
------------------
==================

The AMDGPU backend supports the following LLVM IR attributes.

Expand Down Expand Up @@ -1451,7 +1457,7 @@ The AMDGPU backend supports the following LLVM IR attributes.
======================================= ==========================================================

Calling Conventions
-------------------
===================

The AMDGPU backend supports the following calling conventions:

Expand Down