[all-commits] [llvm/llvm-project] 4760ea: [mlir][gpu] Add the GPU offloading handler attribu...

Fabian Mora via All-commits all-commits at lists.llvm.org
Fri Aug 11 12:46:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4760ea029a942ef8da8760cdb1148ec11984a1bd
      https://github.com/llvm/llvm-project/commit/4760ea029a942ef8da8760cdb1148ec11984a1bd
  Author: Fabian Mora <fmora.dev at gmail.com>
  Date:   2023-08-11 (Fri, 11 Aug 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/GPU/IR/CompilationAttrInterfaces.td
    M mlir/include/mlir/Dialect/GPU/IR/CompilationInterfaces.h

  Log Message:
  -----------
  [mlir][gpu] Add the GPU offloading handler attribute interface.

**For an explanation of these patches see D154153.**

Commit message:
This patch adds the `OffloadingTranslationAttrTrait` trait and the
`GPUOffloadingLLVMTranslationAttrInterface` attribute interface.

The interface indicates that an attribute is a GPU offloading translation
attribute. These kinds of attributes must implement an interface for handling
the translation of GPU offloading operations like `gpu.binary` & `gpu.launch_func`.

The interface is meant to be used as an opaque interface for embedding GPU
binaries into LLVM modules and launching GPU kernels.

Depends on D154129

Reviewed By: krzysz00

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




More information about the All-commits mailing list