diff options
| author | Jiuyang Liu | 2020-11-10 00:12:06 +0000 |
|---|---|---|
| committer | GitHub | 2020-11-10 00:12:06 +0000 |
| commit | 92af63c599fc480f6480ee22f23763f54881085f (patch) | |
| tree | b4fde701d44a0d5a0d44d3a05489a61481762a7f /src/main/scala/firrtl/passes | |
| parent | fe95544d573fff9bb114b3302986aa746e1f4763 (diff) | |
Refactor emiter (#1879)
* split big Emitter to submodules.
* fix all deprecated warning.
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Diffstat (limited to 'src/main/scala/firrtl/passes')
| -rw-r--r-- | src/main/scala/firrtl/passes/InferTypes.scala | 4 | ||||
| -rw-r--r-- | src/main/scala/firrtl/passes/wiring/WiringUtils.scala | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/main/scala/firrtl/passes/InferTypes.scala b/src/main/scala/firrtl/passes/InferTypes.scala index bbc1ef6d..01f0b823 100644 --- a/src/main/scala/firrtl/passes/InferTypes.scala +++ b/src/main/scala/firrtl/passes/InferTypes.scala @@ -13,7 +13,7 @@ object InferTypes extends Pass { override def prerequisites = Dependency(ResolveKinds) +: firrtl.stage.Forms.WorkingIR override def invalidates(a: Transform) = false - @deprecated("This should never have been public", "1.3.2") + @deprecated("This should never have been public", "FIRRTL 1.3.2") type TypeMap = collection.mutable.LinkedHashMap[String, Type] private type TypeLookup = collection.mutable.HashMap[String, Type] @@ -102,7 +102,7 @@ object CInferTypes extends Pass { override def prerequisites = firrtl.stage.Forms.ChirrtlForm override def invalidates(a: Transform) = false - @deprecated("This should never have been public", "1.3.2") + @deprecated("This should never have been public", "FIRRTL 1.3.2") type TypeMap = collection.mutable.LinkedHashMap[String, Type] private type TypeLookup = collection.mutable.HashMap[String, Type] diff --git a/src/main/scala/firrtl/passes/wiring/WiringUtils.scala b/src/main/scala/firrtl/passes/wiring/WiringUtils.scala index 0b121cc0..d926f6a9 100644 --- a/src/main/scala/firrtl/passes/wiring/WiringUtils.scala +++ b/src/main/scala/firrtl/passes/wiring/WiringUtils.scala @@ -37,7 +37,7 @@ case class Modifications( /** A lineage tree representing the instance hierarchy in a design */ -@deprecated("Use DiGraph/InstanceGraph", "1.1.1") +@deprecated("Use DiGraph/InstanceGraph", "FIRRTL 1.1.1") case class Lineage( name: String, children: Seq[(String, Lineage)] = Seq.empty, @@ -80,13 +80,13 @@ case class Lineage( } object WiringUtils { - @deprecated("Use DiGraph/InstanceGraph", "1.1.1") + @deprecated("Use DiGraph/InstanceGraph", "FIRRTL 1.1.1") type ChildrenMap = mutable.HashMap[String, Seq[(String, String)]] /** Given a circuit, returns a map from module name to children * instance/module names */ - @deprecated("Use DiGraph/InstanceGraph", "1.1.1") + @deprecated("Use DiGraph/InstanceGraph", "FIRRTL 1.1.1") def getChildrenMap(c: Circuit): ChildrenMap = { val childrenMap = new ChildrenMap() def getChildren(mname: String)(s: Statement): Unit = s match { @@ -105,7 +105,7 @@ object WiringUtils { /** Returns a module's lineage, containing all children lineages as well */ - @deprecated("Use DiGraph/InstanceGraph", "1.1.1") + @deprecated("Use DiGraph/InstanceGraph", "FIRRTL 1.1.1") def getLineage(childrenMap: ChildrenMap, module: String): Lineage = Lineage(module, childrenMap(module).map { case (i, m) => (i, getLineage(childrenMap, m)) }) |
