diff options
Diffstat (limited to 'src/main/scala/firrtl/options/Phase.scala')
| -rw-r--r-- | src/main/scala/firrtl/options/Phase.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/options/Phase.scala b/src/main/scala/firrtl/options/Phase.scala index 0f29d165..0e534ec8 100644 --- a/src/main/scala/firrtl/options/Phase.scala +++ b/src/main/scala/firrtl/options/Phase.scala @@ -103,6 +103,13 @@ trait DependencyAPI[A <: DependencyAPI[A]] { this: TransformLike[_] => def prerequisites: Seq[Dependency[A]] = Seq.empty private[options] lazy val _prerequisites: LinkedHashSet[Dependency[A]] = new LinkedHashSet() ++ prerequisites.toSet + /** All transforms that, if a prerequisite of *another* transform, will run before this transform. + * $seqNote + */ + def optionalPrerequisites: Seq[Dependency[A]] = Seq.empty + private[options] lazy val _optionalPrerquisites: LinkedHashSet[Dependency[A]] = + new LinkedHashSet() ++ optionalPrerequisites.toSet + /** All transforms that must run ''after'' this transform * * ''This is a means of prerequisite injection into some other transform.'' Normally a transform will define its own |
