[MLIR][SPIRVToLLVM] SPIR-V function call conversion pattern
authorGeorge Mitenkov <georgemitenk0v@gmail.com>
Thu, 2 Jul 2020 16:34:27 +0000 (12:34 -0400)
committerLei Zhang <antiagainst@google.com>
Thu, 2 Jul 2020 16:38:27 +0000 (12:38 -0400)
commit8119a374bc3aa7ee7f135038a7c772762711d135
tree445e5430df17250efe9d913d79fa62e0986f04a4
parent03fe7eb16fa224a95d4ba252e2a03cbb3fa244af
[MLIR][SPIRVToLLVM] SPIR-V function call conversion pattern

Added conversion pattern for SPIR-V `FunctionCallOp`. Based on
specification, it returns no results or a single result, so
can be mapped directly to LLVM dialect's `llvm.call`.

Reviewed By: antiagainst, ftynse

Differential Revision: https://reviews.llvm.org/D83030
mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
mlir/test/Conversion/SPIRVToLLVM/func-to-llvm.mlir