[mlir][spirv] Fix spv.GLSL.{S|U}Clamp type checking
authorLei Zhang <antiagainst@google.com>
Tue, 8 Mar 2022 20:56:37 +0000 (15:56 -0500)
committerLei Zhang <antiagainst@google.com>
Tue, 8 Mar 2022 20:56:37 +0000 (15:56 -0500)
commitf8fb2aff70621c0d5ac9dfcc8c48bdd869058f86
treecc3659fc18ab0e206a4bd2a87f495a8d1ebdc0dc
parent55a4df9c1424948943c2095a124157472860015b
[mlir][spirv] Fix spv.GLSL.{S|U}Clamp type checking

It's fine to use any integer (vector) values regardless of the
signedness. The opcode decides how to interpret the bits.

Reviewed By: hanchung

Differential Revision: https://reviews.llvm.org/D121238
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVGLSLOps.td
mlir/test/Dialect/SPIRV/IR/glsl-ops.mlir