[all-commits] [llvm/llvm-project] 771b78: [MLIR][SPIRVToLLVM] Support cast ops, some logical...

George Mitenkov via All-commits all-commits at lists.llvm.org
Wed Jun 17 14:55:23 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 771b7886872ec9f70b233554921c8e994e711cea
      https://github.com/llvm/llvm-project/commit/771b7886872ec9f70b233554921c8e994e711cea
  Author: George Mitenkov <georgemitenk0v at gmail.com>
  Date:   2020-06-17 (Wed, 17 Jun 2020)

  Changed paths:
    M mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
    M mlir/test/Conversion/SPIRVToLLVM/arithmetic-ops-to-llvm.mlir
    A mlir/test/Conversion/SPIRVToLLVM/cast-ops-to-llvm.mlir
    A mlir/test/Conversion/SPIRVToLLVM/logical-to-llvm.mlir

  Log Message:
  -----------
  [MLIR][SPIRVToLLVM] Support cast ops, some logical ops, UModOp

Added support of simple logical ops: `LogicalAnd`, `LogicalOr`,
`LogicalEqual` and `LogicalNotEqual`. Added a missing conversion
for `UMod` op.

Also, implemented SPIR-V cast ops conversion. There are 4 simple
case where there is a clear equivalent in LLVM (e.g. `ConvertFToS`
is `fptosi`). For `FConvert`, `SConvert` and `UConvert` we
distinguish between truncation and extension based on the bit
width of the operand.

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




More information about the All-commits mailing list