[all-commits] [llvm/llvm-project] b81bed: [MLIR][SPIRVToLLVM] Conversion for composite extra...
George Mitenkov via All-commits
all-commits at lists.llvm.org
Tue Oct 6 01:47:48 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b81bedf7146ad5a163e9f1d7283c83ffa4e2043f
https://github.com/llvm/llvm-project/commit/b81bedf7146ad5a163e9f1d7283c83ffa4e2043f
Author: George Mitenkov <georgemitenk0v at gmail.com>
Date: 2020-10-06 (Tue, 06 Oct 2020)
Changed paths:
M mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
M mlir/test/Conversion/SPIRVToLLVM/misc-ops-to-llvm.mlir
Log Message:
-----------
[MLIR][SPIRVToLLVM] Conversion for composite extract and insert
A pattern to convert `spv.CompositeInsert` and `spv.CompositeExtract`.
In LLVM, there are 2 ops that correspond to each instruction depending
on the container type. If the container type is a vector type, then
the result of conversion is `llvm.insertelement` or `llvm.extractelement`.
If the container type is an aggregate type (i.e. struct, array), the
result of conversion is `llvm.insertvalue` or `llvm.extractvalue`.
Reviewed By: mravishankar
Differential Revision: https://reviews.llvm.org/D88205
More information about the All-commits
mailing list