[all-commits] [llvm/llvm-project] 2dace0: [mlir][spirv] Implement gpu::TargetAttrInterface (...

Sang Ik Lee via All-commits all-commits at lists.llvm.org
Sun Nov 5 08:12:23 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2dace0452107a43ed030f1156d52282dd6495de2
      https://github.com/llvm/llvm-project/commit/2dace0452107a43ed030f1156d52282dd6495de2
  Author: Sang Ik Lee <sang.ik.lee at intel.com>
  Date:   2023-11-05 (Sun, 05 Nov 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/GPU/Transforms/Passes.h
    M mlir/include/mlir/Dialect/GPU/Transforms/Passes.td
    M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVAttributes.h
    M mlir/include/mlir/InitAllDialects.h
    A mlir/include/mlir/Target/SPIRV/Target.h
    M mlir/lib/Dialect/GPU/CMakeLists.txt
    M mlir/lib/Dialect/GPU/Transforms/ModuleToBinary.cpp
    A mlir/lib/Dialect/GPU/Transforms/SPIRVAttachTarget.cpp
    M mlir/lib/Dialect/SPIRV/IR/SPIRVDialect.cpp
    M mlir/lib/Target/SPIRV/CMakeLists.txt
    A mlir/lib/Target/SPIRV/Target.cpp
    A mlir/test/Dialect/GPU/module-to-binary-spirv.mlir
    A mlir/test/Dialect/GPU/spirv-attach-targets.mlir
    A mlir/test/Dialect/SPIRV/IR/target.mlir

  Log Message:
  -----------
  [mlir][spirv] Implement gpu::TargetAttrInterface (#69949)

This commit implements gpu::TargetAttrInterface for SPIR-V target
attribute. The plan is to use this to enable GPU compilation pipeline
for OpenCL kernels later.

The changes do not impact Vulkan shaders using milr-vulkan-runner.
New GPU Dialect transform pass spirv-attach-target is implemented for
attaching attribute from CLI.

gpu-module-to-binary pass now works with GPU module that has SPIR-V
module with OpenCL kernel functions inside.




More information about the All-commits mailing list