diff options
Diffstat (limited to 'src/main/scala/firrtl/passes/ReplaceAccesses.scala')
| -rw-r--r-- | src/main/scala/firrtl/passes/ReplaceAccesses.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/scala/firrtl/passes/ReplaceAccesses.scala b/src/main/scala/firrtl/passes/ReplaceAccesses.scala index 5edab1f0..e31d9410 100644 --- a/src/main/scala/firrtl/passes/ReplaceAccesses.scala +++ b/src/main/scala/firrtl/passes/ReplaceAccesses.scala @@ -6,15 +6,17 @@ import firrtl.Transform import firrtl.ir._ import firrtl.{WSubAccess, WSubIndex} import firrtl.Mappers._ -import firrtl.options.{Dependency, PreservesAll} +import firrtl.options.Dependency /** Replaces constant [[firrtl.WSubAccess]] with [[firrtl.WSubIndex]] * TODO Fold in to High Firrtl Const Prop */ -object ReplaceAccesses extends Pass with PreservesAll[Transform] { +object ReplaceAccesses extends Pass { override def prerequisites = firrtl.stage.Forms.Deduped :+ Dependency(PullMuxes) + override def invalidates(a: Transform) = false + def run(c: Circuit): Circuit = { def onStmt(s: Statement): Statement = s map onStmt map onExp def onExp(e: Expression): Expression = e match { |
