Skip to content

chore(tmt): Use INT32_MIN to represent dynamic dimensions when serializing

Yuvaraj Venkatesh requested to merge tmt-unknown-dim into main

MLIR represents dynamic dimensions using ShapedType::kDynamic (INT64_MIN). Casting this value to int32_t overflows and becomes 0, which was previously used to represent unknown dimensions.

To make the representation explicit and consistent, this change replaces 0 with INT32_MIN for unknown (dynamic) dimensions during serialization.

Signed-off-by: Yuvaraj Venkatesh yuvaraj.venkatesh@arm.com

Edited by Yuvaraj Venkatesh

Merge request reports

Loading