[spirv] Provide decorations in batch for op construction
authorLei Zhang <antiagainst@google.com>
Tue, 6 Aug 2019 14:02:35 +0000 (07:02 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 6 Aug 2019 14:02:59 +0000 (07:02 -0700)
commitcd1c488ecdc952c50d6d999652b90872d6e861f6
tree50be4c28cd08d3244e36fb674e180971f46e6f21
parent4b422a51edd3030ead029cd21a0fe19883dee2b4
[spirv] Provide decorations in batch for op construction

Instead of setting the attributes for decorations one by one
after constructing the op, this CL changes to attach all
the attributes for decorations to the attribute vector for
constructing the op. This should be simpler and more
efficient.

PiperOrigin-RevId: 261905578
mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp