2016-09-30 14:21:21 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Andrew Kelley
|
|
|
|
*
|
|
|
|
* This file is part of zig, which is MIT licensed.
|
|
|
|
* See http://opensource.org/licenses/MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ZIG_IR_HPP
|
|
|
|
#define ZIG_IR_HPP
|
|
|
|
|
|
|
|
#include "all_types.hpp"
|
|
|
|
|
2016-10-01 08:12:00 +08:00
|
|
|
IrInstruction *ir_gen(CodeGen *g, AstNode *node, BlockContext *scope, IrExecutable *ir_executable);
|
|
|
|
IrInstruction *ir_gen_fn(CodeGen *g, FnTableEntry *fn_entry);
|
2016-09-30 14:21:21 +08:00
|
|
|
|
2016-10-06 13:09:01 +08:00
|
|
|
TypeTableEntry *ir_analyze(CodeGen *g, IrExecutable *old_executable, IrExecutable *new_executable,
|
|
|
|
TypeTableEntry *expected_type);
|
2016-09-30 14:21:21 +08:00
|
|
|
|
|
|
|
#endif
|