aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
diff options
context:
space:
mode:
authorJack Frankland <jack.frankland@arm.com>2025-01-28 16:25:22 +0000
committerGitHub <noreply@github.com>2025-01-28 16:25:22 +0000
commita58e774fba42e13aa00667d644e96b783fc914b4 (patch)
tree099fecfa413556dcc8c7ebd64e36fc657c0a2d36 /llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
parent5a8fe9e9a777094dba05bdaca8f2dd83af183a0f (diff)
downloadllvm-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