aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/passes/memlib/ResolveMemoryReference.scala
diff options
context:
space:
mode:
authorJack Koenig2020-08-15 10:16:28 -0700
committerGitHub2020-08-15 10:16:28 -0700
commitf1c314e6c7e116df33ffc215ec907212037292dc (patch)
treef06060e9fb52f4f5b30bc56db78acb6bd371642d /src/main/scala/firrtl/passes/memlib/ResolveMemoryReference.scala
parent2e5f942d25d7afab79ee1263c5d6833cad9d743d (diff)
parent9adbe1ede59f9aeb25e71fd8318a4e7e46c4cc34 (diff)
Merge pull request #1852 from freechipsproject/format-src-4
Apply Scalafmt Rewriting
Diffstat (limited to 'src/main/scala/firrtl/passes/memlib/ResolveMemoryReference.scala')
-rw-r--r--src/main/scala/firrtl/passes/memlib/ResolveMemoryReference.scala12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/scala/firrtl/passes/memlib/ResolveMemoryReference.scala b/src/main/scala/firrtl/passes/memlib/ResolveMemoryReference.scala
index b5ff10c6..e80e0c4a 100644
--- a/src/main/scala/firrtl/passes/memlib/ResolveMemoryReference.scala
+++ b/src/main/scala/firrtl/passes/memlib/ResolveMemoryReference.scala
@@ -14,7 +14,7 @@ case class NoDedupMemAnnotation(target: ComponentName) extends SingleTargetAnnot
}
/** Resolves annotation ref to memories that exactly match (except name) another memory
- */
+ */
class ResolveMemoryReference extends Transform with DependencyAPIMigration {
override def prerequisites = Forms.MidForm
@@ -45,10 +45,12 @@ class ResolveMemoryReference extends Transform with DependencyAPIMigration {
/** If a candidate memory is identical except for name to another, add an
* annotation that references the name of the other memory.
*/
- def updateMemStmts(mname: String,
- existingMems: AnnotatedMemories,
- noDedupMap: Map[String, Set[String]])
- (s: Statement): Statement = s match {
+ def updateMemStmts(
+ mname: String,
+ existingMems: AnnotatedMemories,
+ noDedupMap: Map[String, Set[String]]
+ )(s: Statement
+ ): Statement = s match {
// If not dedupable, no need to add to existing (since nothing can dedup with it)
// We just return the DefAnnotatedMemory as is in the default case below
case m: DefAnnotatedMemory if dedupable(noDedupMap, mname, m.name) =>