[all-commits] [llvm/llvm-project] 2ad7e1: [MLIR][SPIRVToLLVM] Conversion for global and addr...

George Mitenkov via All-commits all-commits at lists.llvm.org
Tue Aug 11 23:45:34 PDT 2020


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

  Changed paths:
    M mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
    M mlir/test/Conversion/SPIRVToLLVM/memory-ops-to-llvm.mlir

  Log Message:
  -----------
  [MLIR][SPIRVToLLVM] Conversion for global and addressof

Inital conversion of `spv._address_of` and `spv.globalVariable`.
In SPIR-V, the global returns a pointer, whereas in LLVM dialect
the global holds an actual value. This difference is handled by
`spv._address_of` and `llvm.mlir.addressof`ops that both return
a pointer. Moreover, only current invocation is in conversion's
scope.

Reviewed By: antiagainst, mravishankar

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




More information about the All-commits mailing list