[all-commits] [llvm/llvm-project] c80484: [mlir][StandardToSPIRV] Add support for lowering t...

Han-Chung Wang via All-commits all-commits at lists.llvm.org
Wed Feb 17 07:24:27 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c80484e16ed8a69f1bef7bedc687a3b31707ac30
      https://github.com/llvm/llvm-project/commit/c80484e16ed8a69f1bef7bedc687a3b31707ac30
  Author: Hanhan Wang <hanchung at google.com>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

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

  Log Message:
  -----------
  [mlir][StandardToSPIRV] Add support for lowering trunci to SPIR-V to i1 types.

Add a pattern to converting some value to a boolean. spirv.S/UConvert does not
work on i1 types. Thus, the pattern is lowered to cmpi + select.

Reviewed By: antiagainst

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




More information about the All-commits mailing list