[all-commits] [llvm/llvm-project] 1cfaaf: [MLIR][SPIRVToLLVM] Convert spv.constant scalars a...

George Mitenkov via All-commits all-commits at lists.llvm.org
Thu Jul 2 11:27:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1cfaaf645528cc2fed79617c8ca80945a1504021
      https://github.com/llvm/llvm-project/commit/1cfaaf645528cc2fed79617c8ca80945a1504021
  Author: George Mitenkov <georgemitenk0v at gmail.com>
  Date:   2020-07-02 (Thu, 02 Jul 2020)

  Changed paths:
    M mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
    A mlir/test/Conversion/SPIRVToLLVM/constant-op-to-llvm.mlir

  Log Message:
  -----------
  [MLIR][SPIRVToLLVM] Convert spv.constant scalars and vectors

This patch introduces conversion pattern for `spv.constant` with scalar
and vector types. There is a special case when the constant value is a
signed/unsigned integer (vector of integers). Since LLVM dialect does not
have signedness semantics, the types had to be converted to signless ints.

Reviewed By: antiagainst

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




More information about the All-commits mailing list