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)
commitde13c09fc0daba34cdc823aff1f2ca95b683f5e0
treeab091fa4056e0080df5df5473156e2e53b7dc7ce
parent42c91e48890ad2dbdf440a6c8dd96fa6c3333b48
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