commit | cc22e151a99bfff16199021e19af6c7fe6377f9e | [log] [tgz] |
---|---|---|
author | Luke Hutton <luke.hutton@arm.com> | Tue Sep 16 18:55:10 2025 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Sep 16 10:56:36 2025 -0700 |
tree | 709d9c07f5c14ca899f6e71976ce3d2cde7a6e10 | |
parent | c3b9106830b8216cdf97d4adc2fcbbffa73ea46c [diff] |
[mlir][tosa] Handle unsigned constants in `TosaConvertIntegerTypeToSignless` (#156483) This commit fixes handling of unsigned constant data in the `TosaConvertIntegerTypeToSignless` pass. Previously, the type of the "values" attribute would remain unsigned, which caused an error in the const ops verifier: ``` error: 'tosa.const' op expected same attr/result element types %input_zp = "tosa.const"() {values = dense<17> : tensor<1xui8>} : () -> tensor<1xui8> ^ note: see current operation: %0 = "tosa.const"() <{values = dense<17> : tensor<1xui8>}> : () -> tensor<1xi8> ``` Now the constant data in "values" is transformed to signless as well. GitOrigin-RevId: 3c4ab4fdefcbd34106163899d7e2914246328616
See https://mlir.llvm.org/ for more information.