1 /* 2 * Copyright (c) 2016 Andrew Kelley 3 * 4 * This file is part of zig, which is MIT licensed. 5 * See http://opensource.org/licenses/MIT 6 */ 7 8 #ifndef ZIG_IR_PRINT_HPP 9 #define ZIG_IR_PRINT_HPP 10 11 #include "all_types.hpp" 12 13 #include <stdio.h> 14 15 void ir_print_src(CodeGen *codegen, FILE *f, Stage1Zir *executable, int indent_size); 16 void ir_print_gen(CodeGen *codegen, FILE *f, Stage1Air *executable, int indent_size); 17 void ir_print_inst_src(CodeGen *codegen, FILE *f, Stage1ZirInst *inst, int indent_size); 18 void ir_print_inst_gen(CodeGen *codegen, FILE *f, Stage1AirInst *inst, int indent_size); 19 void ir_print_basic_block_src(CodeGen *codegen, FILE *f, Stage1ZirBasicBlock *bb, int indent_size); 20 void ir_print_basic_block_gen(CodeGen *codegen, FILE *f, Stage1AirBasicBlock *bb, int indent_size); 21 22 const char* ir_inst_src_type_str(Stage1ZirInstId id); 23 const char* ir_inst_gen_type_str(Stage1AirInstId id); 24 25 #endif 26