[all-commits] [llvm/llvm-project] 3926fe: [libc] Add basic wrappers for the backend address ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Aug 1 05:41:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3926feb84ebe8ffd38bb27161a15b6bb3c8fc0aa
      https://github.com/llvm/llvm-project/commit/3926feb84ebe8ffd38bb27161a15b6bb3c8fc0aa
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M libc/src/__support/GPU/amdgpu/utils.h
    M libc/src/__support/GPU/generic/utils.h
    M libc/src/__support/GPU/nvptx/utils.h

  Log Message:
  -----------
  [libc] Add basic wrappers for the backend address spaces

The GPU makes use of different address spaces. We generally work with
global memory, thread private memory, and thread shared memory. This
patch simply adds a few preliminary wrappers to map these concepts to
the numerical values the backend uses. Obviously casts between these
will need to be checked by the user.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D156731




More information about the All-commits mailing list