Purple
0.1
Standard Language Specification
|
Function headers and definitions for translation of an AST into LLVM-IR. More...
Go to the source code of this file.
Functions | |
LLVMStackEntryNode * | determine_binary_expression_stack_allocation (ASTNode *root) |
Perform a DFS on an AST to determine the stack allocation needed for a binary expression. More... | |
LLVMValue | ast_to_llvm (ASTNode *n, LLVMValue llvm_value, TokenType parent_operation) |
Generates LLVM-IR from a given AST. More... | |
void | generate_llvm (void) |
Wrapper function for generating LLVM. More... | |
Function headers and definitions for translation of an AST into LLVM-IR.
LLVMStackEntryNode * determine_binary_expression_stack_allocation | ( | ASTNode * | root | ) |
Perform a DFS on an AST to determine the stack allocation needed for a binary expression.
root | Root of AST to find stack allocation for |
void generate_llvm | ( | void | ) |
Wrapper function for generating LLVM.