[all-commits] [llvm/llvm-project] d48b84: [MLIR][GPUToSPIRV] Passing gpu module name to SPIR...

George Mitenkov via All-commits all-commits at lists.llvm.org
Wed Aug 26 23:20:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d48b84eb8a902a00866ef5c26dc05a7df830dbee
      https://github.com/llvm/llvm-project/commit/d48b84eb8a902a00866ef5c26dc05a7df830dbee
  Author: George Mitenkov <georgemitenk0v at gmail.com>
  Date:   2020-08-27 (Thu, 27 Aug 2020)

  Changed paths:
    M mlir/lib/Conversion/GPUToSPIRV/ConvertGPUToSPIRV.cpp
    M mlir/test/Conversion/GPUToSPIRV/builtins.mlir
    M mlir/test/Conversion/GPUToSPIRV/load-store.mlir
    M mlir/test/Conversion/GPUToSPIRV/module-structure-opencl.mlir
    M mlir/test/Conversion/GPUToSPIRV/simple.mlir

  Log Message:
  -----------
  [MLIR][GPUToSPIRV] Passing gpu module name to SPIR-V module

This patch allows to pass the gpu module name to SPIR-V
module during conversion. This has many benefits as we can lookup
converted to SPIR-V kernel in the symbol table.

In order to avoid symbol conflicts, `"__spv__"` is added to the
gpu module name to form the new one.

Reviewed By: mravishankar

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




More information about the All-commits mailing list