Generate the module inside the repl
authorLuke Lau <luke_lau@icloud.com>
Sun, 2 Jun 2019 16:28:31 +0000 (17:28 +0100)
committerLuke Lau <luke_lau@icloud.com>
Mon, 3 Jun 2019 23:15:37 +0000 (00:15 +0100)
commit3b94bc147412cd0fc3d14b68ac0720f3d2ea7a1b
treec83dd6c560fc6bf244f104beda786c6d4b1a9385
parent465f82229f9f90b5bad3c10ecfd821c5212597fe
Generate the module inside the repl

The Kaleidoscope tutorial acts as a repl where each top-level expression
is evaluated when you enter it. Currently we were building up the
llvm-hs-pure AST inside our REPL, and then converting it to an actual
LLVM IR module in main when we called buildModuleT.

In order to do this line-by-line JITing, we'll need the actual LLVM
module when we enter the line. This will prepare us for the craziness
that will come in the following commits
Main.hs
Utils.hs