libFirm
firm_common.h
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5 
11 #ifndef FIRM_COMMON_FIRM_COMMON_H
12 #define FIRM_COMMON_FIRM_COMMON_H
13 
14 #include "firm_types.h"
15 #include "begin.h"
16 
27 FIRM_API void ir_init(void);
28 
32 FIRM_API void ir_finish(void);
33 
35 FIRM_API unsigned ir_get_version_major(void);
37 FIRM_API unsigned ir_get_version_minor(void);
39 FIRM_API unsigned ir_get_version_micro(void);
41 FIRM_API const char *ir_get_version_revision(void);
43 FIRM_API const char *ir_get_version_build(void);
44 
52 typedef enum firm_kind {
53  k_BAD = 0,
62 } firm_kind;
63 
69 FIRM_API firm_kind get_kind(const void *firm_thing);
70 
73 #include "end.h"
74 
75 #endif
void ir_init(void)
Initializes the firm library.
A tarval.
Definition: firm_common.h:59
An IR node.
Definition: firm_common.h:57
firm_kind
A list of firm kinds.
Definition: firm_common.h:52
An IR mode.
Definition: firm_common.h:58
An invalid firm node.
Definition: firm_common.h:53
void ir_finish(void)
Frees all memory occupied by the firm library.
const char * ir_get_version_build(void)
returns string describing libFirm build
const char * ir_get_version_revision(void)
returns string describing libFirm revision
unsigned ir_get_version_minor(void)
returns libFirm minor version number
unsigned ir_get_version_major(void)
returns the libFirm major version number
unsigned ir_get_version_micro(void)
returns libFirm micro version number
maximum value – illegal for firm nodes.
Definition: firm_common.h:61
firm_kind get_kind(const void *firm_thing)
Returns the kind of a thing.
An IR graph.
Definition: firm_common.h:56
An entity.
Definition: firm_common.h:54
A type.
Definition: firm_common.h:55
A loop.
Definition: firm_common.h:60