From: Luke Lau Date: Sun, 2 Jun 2019 16:28:31 +0000 (+0100) Subject: Generate the module inside the repl X-Git-Url: https://git.lukelau.me/?p=kaleidoscope-hs.git;a=commitdiff_plain;h=e23b23071fc89fc8b73eee61cc06728c93375161;hp=e23b23071fc89fc8b73eee61cc06728c93375161 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 ---