Renamed the compile function to generate code
This commit is contained in:
parent
832efbcdd8
commit
2af00da482
2 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{-# LANGUAGE LambdaCase #-}
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
|
||||
module Codegen.Codegen (compile) where
|
||||
module Codegen.Codegen (generateCode) where
|
||||
|
||||
import Auxiliary (snoc)
|
||||
import Codegen.LlvmIr (CallingConvention (..), LLVMComp (..),
|
||||
|
|
@ -131,8 +131,8 @@ test v = Program [
|
|||
An easy way to actually "compile" this output is to
|
||||
Simply pipe it to LLI
|
||||
-}
|
||||
compile :: Program -> Err String
|
||||
compile (Program scs) = do
|
||||
generateCode :: Program -> Err String
|
||||
generateCode (Program scs) = do
|
||||
let codegen = initCodeGenerator scs
|
||||
llvmIrToString . instructions <$> execStateT (compileScs scs) codegen
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue