[mlir][SPIRVToLLVM] Add shufflevector conversion
authorWeiwei Li <weiwei.li1@huawei.com>
Mon, 1 Nov 2021 14:47:47 +0000 (22:47 +0800)
committerWeiwei Li <weiwei.li1@huawei.com>
Mon, 1 Nov 2021 15:05:37 +0000 (23:05 +0800)
commit3483fc5a31179123ffd11494488074683706a492
tree2d6e957827e1954950f38434e2c39c8865ab0720
parent9e0a39f3787ac055631891be9062dcd561cf4501
[mlir][SPIRVToLLVM] Add shufflevector conversion

Add the shufflevector conversion. It only handles the static, i.e., IntegerAttr, index.

Co-authored: Xinyi Liu <xyliuhelen@gmail.com>

Reviewed by: antiagainst

Differential revision: https://reviews.llvm.org/D112161
mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
mlir/test/Conversion/SPIRVToLLVM/misc-ops-to-llvm.mlir