diff options
| author | jackkoenig | 2016-09-06 13:51:37 -0700 |
|---|---|---|
| committer | Donggyu Kim | 2016-09-12 12:48:46 -0700 |
| commit | 4702bf9f257f954e19d1441b21e737f951ccfbcc (patch) | |
| tree | c9bc87f605d0352d5cca58b56e7eda501e200759 /src/main/scala/firrtl/passes/Inline.scala | |
| parent | 00bef01b6df158939406f3e744cbdda544823ae5 (diff) | |
Rework map functions as class methods
Changed code from match statements in Mappers.scala to methods on the various
IR classes. This allows custom IR nodes to implement the mapper functions and
thus work (ie. not match error) when map is called on them.
This also should have a marginal performance increase because of use of virtual
function calls rather than match statements.
Diffstat (limited to 'src/main/scala/firrtl/passes/Inline.scala')
| -rw-r--r-- | src/main/scala/firrtl/passes/Inline.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/scala/firrtl/passes/Inline.scala b/src/main/scala/firrtl/passes/Inline.scala index c4529bd9..43c0ef1e 100644 --- a/src/main/scala/firrtl/passes/Inline.scala +++ b/src/main/scala/firrtl/passes/Inline.scala @@ -1,12 +1,12 @@ package firrtl package passes -// Datastructures -import scala.collection.mutable - import firrtl.ir._ +import firrtl.Mappers._ import firrtl.Annotations._ -import firrtl.Mappers.{ExpMap, StmtMap} + +// Datastructures +import scala.collection.mutable // Tags an annotation to be consumed by this pass case class InlineAnnotation(target: Named, tID: TransID) extends Annotation with Loose with Unstable { |
