This project is mirrored from https://review.mlplatform.org/tosa/tosa_mlir_translator.
Pull mirroring updated .
- Jun 26, 2025
-
-
Philip742 authored
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: Ifba179b5c0ea5bfaa676fc354e5a4e4e47e1a435
-
- Jun 18, 2025
-
-
udaya-ranga authored
* Add mlir::NameLoc with mlir::FileLineColLoc as ChildLoc to preserve locations across serialize-deserialize iterations. * Add location information to test files and aprropriate CHECK commands Signed-off-by:
Udaya Ranga <udaya.ranga@arm.com> Change-Id: I48725f9c354e1bacd76b20c137e58a1b63059e70 (cherry picked from commit 67fbed32eeca2153ff7114a348d4cabd4d889ad3)
-
- Jun 10, 2025
-
-
Reintroduce support for the custom simplified form of COND_IF to improve readability. Additionally, an optional check has been added to TOSA validation pass in MLIR to ensure that the form of control-flow operations conform to the specification. Signed-off-by:
TatWai Chong <tatwai.chong@arm.com> Change-Id: I588e3781e2ebd3b28fa989fa570cf222138146b3
-
Add location information while generating flatbuffer. serialization_lib changes: f1f9a7d Add OpLocation table 665df00 Add tests for npy serialization of cfloat types 134ae09 Update flatbuffers version in README to align with FetchContent Signed-off-by:
Udaya Ranga <udaya.ranga@arm.com> Change-Id: I489bd0616238217b3fd48eb8b0c1551d239f9239 (cherry picked from commit d04b9e80)
-
This commit removes an unused variable that tried to get a result from `tosa.variable`, but `tosa.variable` does not return a result. Also added a test to prevent regression in the future. Change-Id: Ia2ac521d0a5e7df645b3cb5c3a0af8a0ed844d18 Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
- Jun 09, 2025
-
-
udaya-ranga authored
Signed-off-by:
Udaya Ranga <udaya.ranga@arm.com> Change-Id: If7ca417c48dba5f247c677b6a23dcc34dbbd15c7
-
- Jun 04, 2025
-
-
Tai Ly authored
Tosa variable op interface has changed. the attribute "type" used to specify variable type, but now it specifies element type. Changed to use tosa::getVariableType(VariableOp) to get type of variable. Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: Idc7adc546c1f1eafacc0a96167bdb32929c7cb27
-
- May 30, 2025
-
-
Tai Ly authored
This patch changes to make use of TosaSerializationShape in serialization library REF_MODEL_REFSPEC: refs/changes/16/750616/23 Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I36551ee88eb71574c38b9b84450a4fb4ea27b72d
-
- May 29, 2025
-
-
Yuvaraj Venkatesh authored
Signed-off-by:
Yuvaraj Venkatesh <yuvaraj.venkatesh@arm.com> Change-Id: I9770fc2262fba9ced3683e95869547379df017b9
-
- May 28, 2025
-
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I9b83447ad3e33e2be11e3eb91432af8bf6cac0c2
-
- May 19, 2025
-
-
Ian Tayler Lessa authored
Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I54d55a6e8452c1a9f7c68047c46f51e2203b30c7
-
Ian Tayler Lessa authored
New commits: 83c3a9c Fix warnings specific to GCC 9.4 43fdb52 Allow adding placeholders without data 3f7f423 Generate strict json by default when serializing Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I8b62ccc73160688ec66e6f092ff972e418b9a231
-
- May 14, 2025
-
-
Tai Ly authored
This patch updates the serialization lib githash to include: 23f755a [serialization_lib] update tosa_serializer.py 30b9ca8 [serialization_lib] update README.md 199425b Set warnings as errors a24fbe5 [serialization_lib] Add Op Info 9e3b662 Avoid supplying unsupported linker flags 877c7ff Use portable type with random engine b22b01d Apply hardened flags to test/gtest subdir and fixed the warnings 565b58c Update save_npy/load_npy, add STORAGE_MAP & get_tosa_dtype_mapping d149525 [ser lib] Remove incompatible hardened flags 5e240c6 [SDL] Remove SDL banned functions 9254a9e Set CMP0135 to improve FetchContent cache 5a85d26 Remove expected_return_code in desc.json fba6f8d Add SECURITY.md to list third-party dependencies e8be475 Remove Git submodules 1fadda4 Avoid explicit new Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: Ib26761e3c362069d768893ebaf96ca33c763bce2
-
- May 13, 2025
-
-
TatWai Chong authored
Also change COND_IF IR format back to generic form in lit test. Since ERROR_IF checks are added in MLIR COND_IF op verifier. The existing simplified form is not supported anymore. Change-Id: If0a303303ac48af63f016eed833fdcf9dd4aaeb9 Signed-off-by:
TatWai Chong <tatwai.chong@arm.com>
-
- May 12, 2025
-
-
Ian Tayler Lessa authored
Also add a lit test to check that the nan_mode is recovered correctly Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: Ie4a70095d733c0b71ed8bf24da9ea7f73a83bd59
-
- May 09, 2025
-
-
With these changes it's no longer necessary for a user to make changes to their PATH before they can run the tests. The lit configuration handles it automatically. Also remove unnecessary and potentially incorrect settings from the lit configuration. Change-Id: Ibe032b0abc2c49709226535bbc0737069b80bb0d
-
- May 07, 2025
-
-
Won Jong Jeon authored
Add information on how to build a standalone MLIR Optimizer Driver and run unit tests. Update the versions of the tested prerequisites. Signed-off-by:
Won Jeon <won.jeon@arm.com> Change-Id: I23503d653aaa1444697324aa7114803a72f96fa9
-
- Apr 30, 2025
-
-
Jerry-Ge authored
* Removed std::memcpy Signed-off-by:
Jerry Ge <jerry.ge@arm.com> Change-Id: Ie1e12ff7f9d4fe047cae05d46afd7b7b706cff42
-
- Apr 21, 2025
-
-
Tai Ly authored
Refactor to remove .cast<T>, .dyn_cast<T> and .isa<T> deprecated functions, and replaced with mlir::cast<T>, mlir::dyn_cast<T> and mlir::isa<T> Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I1432be64a0888ab296a8d8acd8320f22b68cc1ec
-
- Apr 17, 2025
-
-
Signed-off-by:
Michael Platings <michael.platings@arm.com> Change-Id: I3f0376e0ef58063ee94ef06ad860ae11ba4298e8
-
- Apr 16, 2025
-
-
Michael Platings authored
1. Don't assume that the build directory is in the source dir. 2. Get include dirs automatically by adding a target dependency. Signed-off-by:
Michael Platings <michael.platings@arm.com> Change-Id: If6f9ff8eed45ebea977d01e79df9f0992adccd87
-
- Apr 09, 2025
-
-
Signed-off-by:
Jerry Ge <jerry.ge@arm.com> Change-Id: Id6e303082f111b8478358bab99a538110164efd0
-
- Apr 07, 2025
-
-
Tai Ly authored
serialize uint8 as INT8 (already does not serialize uint16) remove DType.UINT8 and UINT16 from deserialization Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I03494e8b50773c7c55e98de9419805c42abba865
-
- Apr 01, 2025
-
-
Tai Ly authored
Removes Yield Op from tosa serialization lib operators Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I87d0b3ca4cfdbbabb27748f8c082fe3b1a5735fc
-
- Mar 18, 2025
-
-
Base on the LLVM change: https://github.com/llvm/llvm-project/commit/f4943464d769e2eacd5c54dfaaf0468788abeb84 Should update the isFloat8 API to b.getType<Float*Type>() and llvm::isa<Float8*Type>() Signed-off-by:
Jerry Ge <jerry.ge@arm.com> Change-Id: Idddf40416ea5e16c640ce5b49def48878b323575
-
update lit tests for recent changes in: - rescale (rounding_mode) - negate (zero points) I also added .gitignore to ignore build directory v1.0 backport conflicts: test/conv2d.mlir test/unary_f32.mlir test/unary_i32.mlir In resolving conflicts, have included lit test updates for rescale from 37a84e08 Signed-off-by:
Tai Ly <tai.ly@arm.com> Signed-off-by:
Peng Sun <peng.sun@arm.com> Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I2e5d2e67fdf26dd313be3964acc33c87e64d9321
-
- Mar 13, 2025
-
-
tosa-opt is not always needed from typical projects such as torch-mlir. Set MLIR_TOSA_OPT=ON explicitly to CMake to build tosa-opt and enable lit testing. Change-Id: Ic9425a1c8cf598018b34dd5b81ad1040ae1c1183 Signed-off-by:
TatWai Chong <tatwai.chong@arm.com>
-
- Mar 11, 2025
-
-
Ian Tayler Lessa authored
This is a v1.0-only patch as the build is already conditional in main Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I187718f4e1dc32c02633366e927a1d014630ff7c
-
- Feb 21, 2025
-
-
Enable serialization of `DenseResourceElementsAttr` that is commonly used for handling large constant data. Signed-off-by:
Georgios Pinitas <georgios.pinitas@arm.com> Signed-off-by:
Luke Hutton <luke.hutton@arm.com> Change-Id: I93c6c27e57797b00fe49cc64b689a367724717cd
-
Luke Hutton authored
Fixes some issues with markdown rendering and adjusts the installation commands to make sure executables are on the users path and reduce duplication of paths using `TRANSLATOR_BUILD` and `LLVM_BUILD`. Change-Id: Ifdaffe8235e27ea6d9fbfb146afc897ecd4c1acf Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
- Feb 19, 2025
-
-
Luke Hutton authored
This commit changes the zero point attribute to an input to align with the 1.0 spec. Change-Id: Ida2958d5f5f7fe69d89dbe550b5db32fd79692a0 Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
- Feb 12, 2025
-
-
TatWai Chong authored
Signed-off-by:
TatWai Chong <tatwai.chong@arm.com> Change-Id: I354a1719c54e828c488378ac1c0c3c980d71ed1e
-
udaya-ranga authored
Signed-off-by:
Udaya Ranga <udaya.ranga@arm.com> Change-Id: Ibeec5444a21e1f71a9fd1700bfcfcdc59a3082fa (cherry picked from commit c725f589cea936848c3713e05216fcb7c3c2cfb2)
-
- Feb 11, 2025
-
-
Peng Sun authored
* update serialization library submodule Change-Id: I8b24d3274df83b36eca27c08c4fe1922a7e96683 Signed-off-by:
Peng Sun <peng.sun@arm.com>
-
- Jan 29, 2025
-
-
This commit changes the zero point attribute to an input to align with the 1.0 spec. Change-Id: I958a52d52ac3fcc74e78c04b0585f01ea170db77 (cherry picked from commit 28b3287c)
-
Change-Id: I19114488eeddc54b3bc3a00face9546f5b3efd6c Signed-off-by:
Freddie Liardet <frederick.liardet@arm.com>
-
- Jan 28, 2025
-
-
Luke Hutton authored
Change from double_round boolean to rounding_mode rounding_mode_t enumeration Change-Id: I9213be7fabbebf89734f1fbc981810d090f234ae Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
- Jan 24, 2025
-
-
Tai Ly authored
This patch adapts tosa_mlir_translator to use the new tosa serialization schema where each op has its own attribute type Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I8c70f4e399c07181f1c5213ff137834b3d08afbf
-
- Jan 23, 2025
-
-
udaya-ranga authored
Signed-off-by:
Udaya Ranga <udaya.ranga@arm.com> Change-Id: I695f8efbe255a0f3865f6da2c637a228afe3b77c
-
- Jan 22, 2025
-
-
Tai Ly authored
When deserializing PadOp, construct a rank-1 scalar value for pad_const input (instead of rank-0) Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I9033fbdd3b1304635ba7acd6ec9b034bbaa1687d
-