[all-commits] [llvm/llvm-project] 75cb9e: [MLIR][GPU-LLVM] Add GPU to LLVM-SPV address space...

Victor Perez via All-commits all-commits at lists.llvm.org
Fri Aug 16 02:18:57 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75cb9edf09fdc091e5bc0f3d46a96c2877735a39
      https://github.com/llvm/llvm-project/commit/75cb9edf09fdc091e5bc0f3d46a96c2877735a39
  Author: Victor Perez <victor.perez at codeplay.com>
  Date:   2024-08-16 (Fri, 16 Aug 2024)

  Changed paths:
    A mlir/include/mlir/Conversion/GPUCommon/AttrToSPIRVConverter.h
    M mlir/include/mlir/Conversion/GPUToLLVMSPV/GPUToLLVMSPVPass.h
    A mlir/lib/Conversion/GPUCommon/AttrToSPIRVConverter.cpp
    M mlir/lib/Conversion/GPUCommon/CMakeLists.txt
    M mlir/lib/Conversion/GPUToLLVMSPV/GPUToLLVMSPV.cpp
    M mlir/test/Conversion/GPUToLLVMSPV/gpu-to-llvm-spv.mlir

  Log Message:
  -----------
  [MLIR][GPU-LLVM] Add GPU to LLVM-SPV address space mapping (#102621)

Implement mapping:

- `global`: 1
- `workgroup`: 3
- `private`: 0

Add `addressSpaceToStorageClass`, mapping GPU address spaces to SPIR-V
storage classes to be able to use SPIR-V's
`storageClassToAddressSpace`, mapping SPIR-V storage classes to LLVM
address spaces according to our mapping above *by definition*.

---------

Signed-off-by: Victor Perez <victor.perez at codeplay.com>



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