Generate code for call expressions
authorLuke Lau <luke_lau@icloud.com>
Sun, 19 May 2019 13:23:31 +0000 (14:23 +0100)
committerLuke Lau <luke_lau@icloud.com>
Mon, 3 Jun 2019 23:11:03 +0000 (00:11 +0100)
commitc426d6ca5a444eec434eec6a58c86e2d24a7c992
treeab091fa4056e0080df5df5473156e2e53b7dc7ce
parent26a150e2e5b1b1c5bf933c129135f883c832a930
Generate code for call expressions

In order to call a function in LLVM IR, we need to grab a
GlobalReference to it. Currently we just make it ourselves, inferring
the type of it based on what arguments the caller provided and the fact
that all functions return a double.
Main.hs