[spirv] Various small improvements
authorLei Zhang <antiagainst@google.com>
Tue, 2 Jul 2019 18:19:22 +0000 (11:19 -0700)
committerMehdi Amini <aminim@google.com>
Tue, 2 Jul 2019 23:43:36 +0000 (16:43 -0700)
commit08927308b7fdd0c6c7d5e3280fe1eb34076f6489
tree8351dec841a79e929964402db7c88c3650e67b4c
parent206e55cc1653795166b0aebc25390bcc46f452db
[spirv] Various small improvements

* Added comments
* Improved op creation
* Used LogicalResult where suitable

PiperOrigin-RevId: 256203068
mlir/include/mlir/SPIRV/SPIRVBase.td
mlir/include/mlir/SPIRV/Serialization.h
mlir/lib/SPIRV/Serialization/ConvertFromBinary.cpp
mlir/lib/SPIRV/Serialization/ConvertToBinary.cpp
mlir/lib/SPIRV/Serialization/Serializer.cpp