libFirm
irio.h
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5 
11 #ifndef FIRM_IR_IRIO_H
12 #define FIRM_IR_IRIO_H
13 
14 #include <stdio.h>
15 
16 #include "firm_types.h"
17 #include "begin.h"
18 
33 FIRM_API int ir_export(const char *filename);
34 
39 FIRM_API void ir_export_file(FILE *output);
40 
48 FIRM_API int ir_import(const char *filename);
49 
53 FIRM_API int ir_import_file(FILE *input, const char *inputname);
54 
57 #include "end.h"
58 
59 #endif
int ir_export(const char *filename)
Exports the whole irp to the given file in a textual form.
void ir_export_file(FILE *output)
same as ir_export but writes to a FILE*
int ir_import(const char *filename)
Imports the data stored in the given file.
int ir_import_file(FILE *input, const char *inputname)
same as ir_import but imports from a FILE*