[spirv] NFC: adjust `encode*` function signatures in Serializer
authorLei Zhang <antiagainst@google.com>
Mon, 22 Jul 2019 13:00:47 +0000 (06:00 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 22 Jul 2019 13:01:19 +0000 (06:01 -0700)
commit9d52ceaf16566fd72bf1b92395c7aca4b5e934a1
tree33931d66d34f451b1099a893ffdba0ed623a4857
parent52cf6b80445f7db8abba2234d45c308550a2c527
[spirv] NFC: adjust `encode*` function signatures in Serializer

* Let them return `LogicalResult` so we can chain them together
  with other functions returning `LogicalResult`.
* Added "Into" as the suffix to the function name and made the
  `binary` as the first parameter so that it reads more naturally.

PiperOrigin-RevId: 259311636
mlir/lib/Dialect/SPIRV/Serialization/Serializer.cpp
mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp