[all-commits] [llvm/llvm-project] 1c12a9: [mlir][StandardToSPIRV] Handle conversion of cmpi ...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Wed Apr 29 10:09:52 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c12a95d9c52de8980ea9979350c7eabc1b9fd01
      https://github.com/llvm/llvm-project/commit/1c12a95d9c52de8980ea9979350c7eabc1b9fd01
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2020-04-29 (Wed, 29 Apr 2020)

  Changed paths:
    M mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp
    M mlir/test/Conversion/StandardToSPIRV/std-ops-to-spirv.mlir

  Log Message:
  -----------
  [mlir][StandardToSPIRV] Handle conversion of cmpi operation with i1
type operands.

The instructions used to convert std.cmpi cannot have i1 types
according to SPIR-V specification. A different set of operations are
specified in the SPIR-V spec for comparing boolean types. Enhance the
StandardToSPIRV lowering to target these instructions when operands to
std.cmpi operation are of i1 type.

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




More information about the All-commits mailing list