diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst --- a/llvm/docs/AMDGPUUsage.rst +++ b/llvm/docs/AMDGPUUsage.rst @@ -12188,9 +12188,21 @@ .sgpr_count: 2 .vgpr_count: 3 .max_flat_workgroup_size: 256 - ... + .args: + - .size: 8 + .offset: 0 + .value_kind: by_value + //... .end_amdgpu_metadata +This kernel is equivalent to the following HIP program: + +.. code:: + :number-lines: + __global__ void hello_world(float *p) { + *p = 3.14159f; + } + If an assembly source file contains multiple kernels and/or functions, the :ref:`amdgpu-amdhsa-assembler-symbol-next_free_vgpr` and :ref:`amdgpu-amdhsa-assembler-symbol-next_free_sgpr` symbols may be reset using