Skip to content

Commit

Permalink
move ir node defs into subpackage of ir
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-schultz committed Jan 14, 2025
1 parent 52033ec commit 520608e
Show file tree
Hide file tree
Showing 131 changed files with 1,435 additions and 1,181 deletions.
2 changes: 1 addition & 1 deletion hail/hail/src/is/hail/annotations/BroadcastValue.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package is.hail.annotations

import is.hail.asm4s.HailClassLoader
import is.hail.backend.{BroadcastValue, ExecuteContext}
import is.hail.expr.ir.EncodedLiteral
import is.hail.expr.ir.defs.EncodedLiteral
import is.hail.io.{BufferSpec, Decoder, TypedCodecSpec}
import is.hail.types.physical.{PArray, PStruct, PType}
import is.hail.types.virtual.{TBaseStruct, TStruct}
Expand Down
3 changes: 2 additions & 1 deletion hail/hail/src/is/hail/backend/local/LocalBackend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import is.hail.annotations.Region
import is.hail.asm4s._
import is.hail.backend._
import is.hail.expr.Validate
import is.hail.expr.ir.{IRParser, _}
import is.hail.expr.ir._
import is.hail.expr.ir.analyses.SemanticHash
import is.hail.expr.ir.defs.{EncodedLiteral, GetFieldByIdx, MakeTuple}
import is.hail.expr.ir.lowering._
import is.hail.io.fs._
import is.hail.linalg.BlockMatrix
Expand Down
5 changes: 3 additions & 2 deletions hail/hail/src/is/hail/backend/service/ServiceBackend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import is.hail.asm4s._
import is.hail.backend._
import is.hail.expr.Validate
import is.hail.expr.ir.{
Compile, IR, IRParser, IRParserEnvironment, IRSize, LoweringAnalyses, MakeTuple, SortField,
TableIR, TableReader, TypeCheck,
Compile, IR, IRParser, IRParserEnvironment, IRSize, LoweringAnalyses, SortField, TableIR,
TableReader, TypeCheck,
}
import is.hail.expr.ir.analyses.SemanticHash
import is.hail.expr.ir.defs.MakeTuple
import is.hail.expr.ir.functions.IRFunctionRegistry
import is.hail.expr.ir.lowering._
import is.hail.io.fs._
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/backend/spark/SparkBackend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import is.hail.expr.{JSONAnnotationImpex, SparkAnnotationImpex, Validate}
import is.hail.expr.ir.{IRParser, _}
import is.hail.expr.ir.IRParser.parseType
import is.hail.expr.ir.analyses.SemanticHash
import is.hail.expr.ir.defs.{EncodedLiteral, GetFieldByIdx, MakeTuple}
import is.hail.expr.ir.lowering._
import is.hail.io.{BufferSpec, TypedCodecSpec}
import is.hail.io.fs._
Expand Down
5 changes: 2 additions & 3 deletions hail/hail/src/is/hail/expr/Validate.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package is.hail.expr

import is.hail.expr.ir.{
BaseIR, BlockMatrixRead, BlockMatrixWrite, MatrixRead, MatrixWrite, TableRead, TableWrite,
}
import is.hail.expr.ir.{BaseIR, BlockMatrixRead, MatrixRead, TableRead}
import is.hail.expr.ir.defs.{BlockMatrixWrite, MatrixWrite, TableWrite}
import is.hail.utils._

case class ValidateState(writeFilePaths: Set[String])
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/Binds.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package is.hail.expr.ir

import is.hail.expr.ir.defs._
import is.hail.types.tcoerce
import is.hail.types.virtual._
import is.hail.types.virtual.TIterable.elementType
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/BlockMatrixIR.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import is.hail.HailContext
import is.hail.annotations.NDArray
import is.hail.backend.{BackendContext, ExecuteContext}
import is.hail.expr.Nat
import is.hail.expr.ir.defs._
import is.hail.expr.ir.lowering.{BMSContexts, BlockMatrixStage2, LowererUnsupportedOperation}
import is.hail.io.{StreamBufferSpec, TypedCodecSpec}
import is.hail.io.fs.FS
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/BlockMatrixWriter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import is.hail.annotations.Region
import is.hail.asm4s._
import is.hail.backend.ExecuteContext
import is.hail.expr.Nat
import is.hail.expr.ir.defs.{MetadataWriter, Str, UUID4, WriteMetadata, WriteValue}
import is.hail.expr.ir.lowering.{BlockMatrixStage2, LowererUnsupportedOperation}
import is.hail.io.{StreamBufferSpec, TypedCodecSpec}
import is.hail.io.fs.FS
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/Children.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package is.hail.expr.ir

import is.hail.expr.ir.defs._
import is.hail.utils._

object Children {
Expand Down
2 changes: 2 additions & 0 deletions hail/hail/src/is/hail/expr/ir/Compilable.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package is.hail.expr.ir

import is.hail.expr.ir.defs._

object InterpretableButNotCompilable {
def apply(x: IR): Boolean = x match {
case _: LiftMeOut => true
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/Compile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import is.hail.annotations._
import is.hail.asm4s._
import is.hail.backend.{ExecuteContext, HailTaskContext}
import is.hail.expr.ir.agg.AggStateSig
import is.hail.expr.ir.defs.In
import is.hail.expr.ir.lowering.LoweringPipeline
import is.hail.expr.ir.streams.EmitStream
import is.hail.io.fs.FS
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/CompileAndEvaluate.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package is.hail.expr.ir
import is.hail.annotations.{Region, SafeRow}
import is.hail.asm4s._
import is.hail.backend.ExecuteContext
import is.hail.expr.ir.defs.{Begin, EncodedLiteral, Literal, MakeTuple, NA}
import is.hail.expr.ir.lowering.LoweringPipeline
import is.hail.types.physical.PTuple
import is.hail.types.physical.stypes.PTypeReferenceSingleCodeType
Expand Down
2 changes: 2 additions & 0 deletions hail/hail/src/is/hail/expr/ir/ComputeUsesAndDefs.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package is.hail.expr.ir

import is.hail.expr.ir.defs.{BaseRef, Recur, Ref, RelationalRef}

import scala.collection.mutable

case class UsesAndDefs(
Expand Down
2 changes: 2 additions & 0 deletions hail/hail/src/is/hail/expr/ir/Copy.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package is.hail.expr.ir

import is.hail.expr.ir.defs._

object Copy {
def apply(x: IR, newChildren: IndexedSeq[BaseIR]): IR = {
x match {
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/DeprecatedIRBuilder.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package is.hail.expr.ir

import is.hail.expr.ir.defs._
import is.hail.types.virtual._
import is.hail.utils.{toRichIterable, FastSeq}

Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/Emit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import is.hail.expr.ir.agg.{AggStateSig, ArrayAggStateSig, GroupedStateSig}
import is.hail.expr.ir.analyses.{
ComputeMethodSplits, ControlFlowPreventsSplit, ParentPointers, SemanticHash,
}
import is.hail.expr.ir.defs._
import is.hail.expr.ir.lowering.TableStageDependency
import is.hail.expr.ir.ndarrays.EmitNDArray
import is.hail.expr.ir.streams.{EmitStream, StreamProducer, StreamUtils}
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/EmitClassBuilder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package is.hail.expr.ir
import is.hail.annotations.{Region, RegionPool, RegionValueBuilder}
import is.hail.asm4s._
import is.hail.backend.{BackendUtils, ExecuteContext, HailTaskContext}
import is.hail.expr.ir.defs.EncodedLiteral
import is.hail.expr.ir.functions.IRRandomness
import is.hail.expr.ir.orderings.{CodeOrdering, StructOrdering}
import is.hail.io.{BufferSpec, InputBuffer, TypedCodecSpec}
Expand Down
2 changes: 2 additions & 0 deletions hail/hail/src/is/hail/expr/ir/Env.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package is.hail.expr.ir

import is.hail.expr.ir.defs.Ref

object Env {
type K = Name

Expand Down
2 changes: 2 additions & 0 deletions hail/hail/src/is/hail/expr/ir/Exists.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package is.hail.expr.ir

import is.hail.expr.ir.defs._

//
// Search an IR tree for the first node satisfying some condition
//
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/ExtractIntervalFilters.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package is.hail.expr.ir

import is.hail.annotations.{ExtendedOrdering, IntervalEndpointOrdering, SafeRow}
import is.hail.backend.ExecuteContext
import is.hail.expr.ir.defs._
import is.hail.rvd.PartitionBoundOrdering
import is.hail.types.virtual._
import is.hail.utils.{Interval, IntervalEndpoint, _}
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/FoldConstants.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package is.hail.expr.ir

import is.hail.backend.ExecuteContext
import is.hail.expr.ir.defs._
import is.hail.types.virtual.{TStream, TVoid}
import is.hail.utils.HailException

Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/ForwardLets.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package is.hail.expr.ir

import is.hail.backend.ExecuteContext
import is.hail.expr.ir.defs.{BaseRef, Binding, Block, In, Ref, Str}
import is.hail.types.virtual.TVoid
import is.hail.utils.BoxedArrayBuilder

Expand Down
2 changes: 2 additions & 0 deletions hail/hail/src/is/hail/expr/ir/ForwardRelationalLets.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package is.hail.expr.ir

import is.hail.expr.ir.defs.{RelationalLet, RelationalRef}

import scala.collection.mutable

object ForwardRelationalLets {
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/FreeVariables.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package is.hail.expr.ir

import is.hail.expr.ir.defs.Ref
import is.hail.types.virtual.Type

import scala.collection.mutable
Expand Down
1 change: 1 addition & 0 deletions hail/hail/src/is/hail/expr/ir/GenericTableValue.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package is.hail.expr.ir
import is.hail.annotations.Region
import is.hail.asm4s._
import is.hail.backend.ExecuteContext
import is.hail.expr.ir.defs.{Literal, PartitionReader, ReadPartition, ToStream}
import is.hail.expr.ir.functions.UtilFunctions
import is.hail.expr.ir.lowering.{TableStage, TableStageDependency}
import is.hail.expr.ir.streams.StreamProducer
Expand Down
Loading

0 comments on commit 520608e

Please sign in to comment.