virtualization-lms-core
virtualization-lms-core copied to clipboard
A Framework for Runtime Code Generation and Compiled DSLs
Given that it is the standard way of testing generated code, it makes sense that FileDiffSuite is available to everyone who uses LMS. As in general it is bad practice...
In Scala, `new Array[T](size)` has the semantics of filling the array with `0`/`null`. However, the generated C code generates only a call to `malloc`, which creates an uninitialized array. For...
see https://github.com/TiarkRompf/virtualization-lms-core/blob/delite-develop2/test-out/epfl/test7-codemotion6.check
Eclipse prefers `src/main/scala/...` and `src/test/scala` with directories corresponding to packages. We should also consider changing `scala.virtualization.lms` to just `scala.lms`.
Using just LMS numerics, the following code emits errors: N is of type `Rep[Int]` xs is of type `Vector[Double]` `val xbar = 1.0/N * sum(xs)` I am trying to compute...
Vera's branch: https://github.com/TiarkRompf/virtualization-lms-core/tree/vsalvis-fusionMC
Add a default case for mirrorDef using reflection. Evaluate whether mirror can be made a method on Def (or a subclass). This would allow writing: ``` scala case class MyNode(x:...
Imagine a scenario where you want to wrap a third-party higher-order polymorphic function like so: ``` scala trait LambdaMap extends ListOps with TupledFunctions { def map[T: Manifest](l: Rep[List[T]], callback: Rep[T...
See https://gist.github.com/manojo/2e378e7128b13c84f29e for runnable test case. Suppose we want to generate code for a certain struct `Box[T]`, with the constructor `def mkBox[T: Manifest](t: Rep[T]); Rep[Box[T]]`. Given the following code: ```...