diff options
author | Jack Frankland <jack.frankland@arm.com> | 2025-01-28 16:25:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-28 16:25:22 +0000 |
commit | a58e774fba42e13aa00667d644e96b783fc914b4 (patch) | |
tree | 099fecfa413556dcc8c7ebd64e36fc657c0a2d36 /llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp | |
parent | 5a8fe9e9a777094dba05bdaca8f2dd83af183a0f (diff) | |
download | llvm-a58e774fba42e13aa00667d644e96b783fc914b4.zip llvm-a58e774fba42e13aa00667d644e96b783fc914b4.tar.gz llvm-a58e774fba42e13aa00667d644e96b783fc914b4.tar.bz2 |
[mlir][tosa] Make TOSA MUL's Shift an Input (#121953)
The TOSA-v1.0 specification makes the shift attribute of the MUL
(Hammard product) operator an input. Move the `shift` parameter of the
MUL operator in the MILR TOSA dialect from an attribute to an input and
update any lit tests appropriately.
Expand the verifier of the `tosa::MulOp` operation to check the various
constraints defined in the TOSA-v1.0 specification. Specifically, ensure
that all input operands (excluding the optional shift) are of the same
rank. This means that broadcasting tests which previously checked rank-0
tensors would be broadcast are no longer valid and are removed.
Signed-off-by: Jack Frankland <jack.frankland@arm.com>
Co-authored-by: TatWai Chong <tatwai.chong@arm.com>
Diffstat (limited to 'llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions