Skip to content

Commit

Permalink
[code] format.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Dec 23, 2024
1 parent 1d8a2af commit 671eb79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions omreaderlib/src/t1/T1.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 671eb79

Please sign in to comment.