[spirv] Add folders for spv.IAdd and spv.IMul
authorLei Zhang <antiagainst@google.com>
Wed, 27 Nov 2019 21:46:20 +0000 (13:46 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 27 Nov 2019 21:46:52 +0000 (13:46 -0800)
commitd4e4387fbfde164c9655bc882d4102c321368d97
treeb5b292ebc84a19b63784e273f3ecc9bbe0ba7941
parent9f89c34f4b8b6333744bd988e67bc6a18ccee83f
[spirv] Add folders for spv.IAdd and spv.IMul

Adding zero and multiplying one can be common when generating code
for index calculation.

This CL also sorted canonicalize.mlir to alphabetical order.

PiperOrigin-RevId: 282828055
mlir/include/mlir/Dialect/SPIRV/SPIRVArithmeticOps.td
mlir/lib/Dialect/SPIRV/SPIRVOps.cpp
mlir/test/Dialect/SPIRV/canonicalize.mlir