[mlir][spirv] Clean up SPIRVOps.cpp. NFC.
authorJakub Kuderski <kubak@google.com>
Tue, 9 Aug 2022 14:40:16 +0000 (10:40 -0400)
committerJakub Kuderski <kubak@google.com>
Tue, 9 Aug 2022 14:40:43 +0000 (10:40 -0400)
commit08cc03befd44c1157fa5b5586c1a9861a5869203
tree0afc10ba43dbeda9bb4b04a944ba0aba957fccd7
parente780648a15e67df92d6aee1fe68393f1edddf06d
[mlir][spirv] Clean up SPIRVOps.cpp. NFC.

Resolve almost all clang tidy warnings in this file:
1. Clean up string constants.
2. Use consistent argument names across function declarations and definitions. Rename `state` - > `result`, which is consistent with the other dialects.
3. Remove misleading function parameter name comments (`argTypes`). This did not match the actual function argument (`bool enableNameShadowing`).
4. Simplify calls to `is_splat`.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D131297
mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp