diff options
Diffstat (limited to 'src/main/scala/firrtl/passes/Passes.scala')
| -rw-r--r-- | src/main/scala/firrtl/passes/Passes.scala | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main/scala/firrtl/passes/Passes.scala b/src/main/scala/firrtl/passes/Passes.scala index 8ccfb0b0..bc11bc9d 100644 --- a/src/main/scala/firrtl/passes/Passes.scala +++ b/src/main/scala/firrtl/passes/Passes.scala @@ -51,20 +51,6 @@ trait Pass extends LazyLogging { class PassException(message: String) extends Exception(message) class PassExceptions(exceptions: Seq[PassException]) extends Exception("\n" + exceptions.mkString("\n")) -object PassUtils extends LazyLogging { - val listOfPasses: Seq[Pass] = Seq(ToWorkingIR,ResolveKinds,InferTypes,ResolveGenders,InferWidths,PullMuxes,ExpandConnects,RemoveAccesses,ExpandWhens,LowerTypes) - lazy val mapNameToPass: Map[String, Pass] = listOfPasses.map(p => p.name -> p).toMap - - def executePasses(c: Circuit, passes: Seq[Pass]): Circuit = { - if (passes.isEmpty) {logger.info(s"Done!"); c} - else { - val p = passes.head - val x = time(p.name) { p.run(c) } - executePasses(x, passes.tail) - } - } -} - // These should be distributed into separate files object ToWorkingIR extends Pass { private var mname = "" |
