diff options
| author | Schuyler Eldridge | 2020-03-11 14:32:32 -0400 |
|---|---|---|
| committer | GitHub | 2020-03-11 14:32:32 -0400 |
| commit | 026c18dd76d4e2121c7f6c582d15e4d5a3ab842b (patch) | |
| tree | 0537dff3091db3da167c0fffc3388a5966c46204 /src/main/scala/logger/phases/Checks.scala | |
| parent | 646c91e71b8bfb1b0d0f22e81ca113147637ce71 (diff) | |
| parent | abf226471249a1cbb8de33d0c4bc8526f9aafa70 (diff) | |
Merge pull request #1123 from freechipsproject/dependency-api-2
- Use Dependency API for transform scheduling
- Add tests that old order/behavior is preserved
Or: "Now you're thinking with dependencies."
Diffstat (limited to 'src/main/scala/logger/phases/Checks.scala')
| -rw-r--r-- | src/main/scala/logger/phases/Checks.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/scala/logger/phases/Checks.scala b/src/main/scala/logger/phases/Checks.scala index c706948c..1e1ccfe6 100644 --- a/src/main/scala/logger/phases/Checks.scala +++ b/src/main/scala/logger/phases/Checks.scala @@ -4,7 +4,7 @@ package logger.phases import firrtl.AnnotationSeq import firrtl.annotations.Annotation -import firrtl.options.Phase +import firrtl.options.{Dependency, Phase, PreservesAll} import logger.{LogLevelAnnotation, LogFileAnnotation, LoggerException} @@ -12,7 +12,10 @@ import scala.collection.mutable /** Check that an [[firrtl.AnnotationSeq AnnotationSeq]] has all necessary [[firrtl.annotations.Annotation Annotation]]s * for a [[Logger]] */ -object Checks extends Phase { +object Checks extends Phase with PreservesAll[Phase] { + + override val prerequisites = Seq(Dependency[AddDefaults]) + override val dependents = Seq.empty /** Ensure that an [[firrtl.AnnotationSeq AnnotationSeq]] has necessary [[Logger]] [[firrtl.annotations.Annotation * Annotation]]s |
