Skip to content

Commit

Permalink
codegen all value ir node classes
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-schultz committed Jan 10, 2025
1 parent 0d81e95 commit 9b5f0dd
Show file tree
Hide file tree
Showing 11 changed files with 1,340 additions and 1,249 deletions.
2 changes: 1 addition & 1 deletion hail/.scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.7.17
version = 3.8.3

runner.dialect = scala212

Expand Down
17 changes: 17 additions & 0 deletions hail/build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ object hail extends HailModule { outer =>
buildInfo(),
)

override def generatedSources: T[Seq[PathRef]] = Task {
Seq(`ir-gen`.generate())
}

override def unmanagedClasspath: T[Agg[PathRef]] =
Agg(shadedazure.assembly())

Expand Down Expand Up @@ -246,6 +250,19 @@ object hail extends HailModule { outer =>
PathRef(T.dest)
}

object `ir-gen` extends HailModule {
def ivyDeps = Agg(
ivy"com.lihaoyi::mainargs:0.6.2",
ivy"com.lihaoyi::os-lib:0.10.7",
ivy"com.lihaoyi::sourcecode:0.4.2",
)

def generate: T[PathRef] = Task {
runner().run(Args("--path", T.dest).value)
PathRef(T.dest)
}
}

object memory extends JavaModule { // with CrossValue {
override def zincIncrementalCompilation: T[Boolean] = false

Expand Down
Loading

0 comments on commit 9b5f0dd

Please sign in to comment.