[all-commits] [llvm/llvm-project] 4d295c: [mlir] Add base class for GpuKernelToBlobPass

Christian Sigg via All-commits all-commits at lists.llvm.org
Wed Mar 10 03:15:08 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d295cf5b54e03133e5282843a76c247b676e478
      https://github.com/llvm/llvm-project/commit/4d295cf5b54e03133e5282843a76c247b676e478
  Author: Christian Sigg <csigg at google.com>
  Date:   2021-03-10 (Wed, 10 Mar 2021)

  Changed paths:
    M mlir/include/mlir/Conversion/GPUCommon/GPUCommonPass.h
    M mlir/include/mlir/Dialect/GPU/Passes.h
    M mlir/lib/Conversion/GPUCommon/CMakeLists.txt
    M mlir/lib/Conversion/GPUCommon/ConvertKernelFuncToBlob.cpp
    M mlir/lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp
    M mlir/lib/Dialect/GPU/CMakeLists.txt
    A mlir/lib/Dialect/GPU/Transforms/SerializeToBlob.cpp

  Log Message:
  -----------
  [mlir] Add base class for GpuKernelToBlobPass

Instead of configuring kernel-to-cubin/rocdl lowering through callbacks, introduce a base class that target-specific passes can derive from.

Put the base class in GPU/Transforms, according to the discussion in D98203.

The mlir-cuda-runner will go away shortly, and the mlir-rocdl-runner as well at some point. I therefore kept the existing code path working and will remove it in a separate step.

Depends On D98168

Reviewed By: herhut

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




More information about the All-commits mailing list