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>
Sun, 19 May 2019 13:23:31 +0000 (14:23 +0100)
commit795fc872e603cc359ec6e307969ac925c3b5dc4d
treeab091fa4056e0080df5df5473156e2e53b7dc7ce
parentcd0347585b7a03941baad82b4f2ed6deb8ff78f4
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