summaryrefslogtreecommitdiff
path: root/mlir/lib/Bytecode/BytecodeOpInterface.cpp
diff options
context:
space:
mode:
authorTatWai Chong <tatwai.chong@arm.com>2023-05-25 23:47:23 +0000
committerRobert Suderman <suderman@google.com>2023-05-25 23:51:30 +0000
commite86defd588e79de60d19a101a43b0c8c86dff37b (patch)
tree6f897f6541e243f7a3db2fe433bd5a95e9a91a88 /mlir/lib/Bytecode/BytecodeOpInterface.cpp
parentf75b73549d4adb7e111444f4144af7bffb532f91 (diff)
[mlir][tosa] Add type checking traits to the appropriate ops
Add the trait `SameOperandsAndResultElementType` and `SameOperandsElementType` to verify ops that are known to have the same input and output type rather than generate an invalid tosa IR with mixed data types like: "tosa.add"(%0, %1) : (tensor<nxbf16>, tensor<nxf32>) -> tensor<nxf32> Thus apply tosa.cast prior if needed. Change-Id: Ie866b84e371e3b571ec04f7abb090c216dd39c33 Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D150472
Diffstat (limited to 'mlir/lib/Bytecode/BytecodeOpInterface.cpp')
0 files changed, 0 insertions, 0 deletions