
scala.scalanative.optimizer.pass.ClosureLowering.scala Maven / Gradle / Ivy
The newest version!
package scala.scalanative
package optimizer
package pass
import scala.collection.mutable
import analysis.ClassHierarchy.Top
import util.unsupported
import nir._
/** Translates high-level closures to corresponding class allocation. */
class ClosureLowering extends Pass {
override def onInst(inst: Inst) = inst match {
case Inst.Let(_, _: Op.Closure) =>
unsupported(inst)
case _ =>
inst
}
}
object ClosureLowering extends PassCompanion {
override def apply(config: tools.Config, top: Top) =
new ClosureLowering
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy