[all-commits] [llvm/llvm-project] 3f4449: [mlir][GPU] Expose the functionality to create a G...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Thu Mar 5 11:04:37 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f44495dfd61deddb6573c9d506a7a843b355735
      https://github.com/llvm/llvm-project/commit/3f44495dfd61deddb6573c9d506a7a843b355735
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2020-03-05 (Thu, 05 Mar 2020)

  Changed paths:
    A mlir/include/mlir/Dialect/GPU/Utils.h
    M mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp
    M mlir/test/Dialect/GPU/outlining.mlir

  Log Message:
  -----------
  [mlir][GPU] Expose the functionality to create a GPUFuncOp from a LaunchOp

The current setup of the GPU dialect is to model both the host and
device side codegen. For cases (like IREE) the host side modeling
might not directly fit its use case, but device-side codegen is still
valuable. First step in accessing just the device-side functionality
of the GPU dialect is to allow just creating a gpu.func operation from
a gpu.launch operation. In addition this change also "inlines"
operations into the gpu.func op at time of creation instead of this
being a later step.

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




More information about the All-commits mailing list