From 671eb7989b89bc6ca07cdb2b391a8893dfa9c2b8 Mon Sep 17 00:00:00 2001 From: qinjun-li Date: Mon, 23 Dec 2024 13:29:46 +0800 Subject: [PATCH] [code] format. --- omreaderlib/src/t1/T1.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/omreaderlib/src/t1/T1.scala b/omreaderlib/src/t1/T1.scala index a935163dd..dc304d860 100644 --- a/omreaderlib/src/t1/T1.scala +++ b/omreaderlib/src/t1/T1.scala @@ -20,11 +20,11 @@ class T1(val mlirbc: Array[Byte]) extends T1OMReaderAPI { t1("lanes").list.elements().map(_.obj("vrf").obj).flatMap(getSRAM) def permutation: Seq[Retime] = { - val permutation = t1("permutation") - val reduceUnit = permutation.obj("reduceUnit").obj + val permutation = t1("permutation") + val reduceUnit = permutation.obj("reduceUnit").obj val compressUnit = permutation.obj("compress").obj // TODO: need fieldOpt(name: String) - val floatAdder = + val floatAdder = Option.when(reduceUnit.fieldNames().contains("floatAdder"))(reduceUnit("floatAdder").obj) (Seq(compressUnit) ++ floatAdder).flatMap(getRetime)