libFirm
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
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 const char *ir_get_version_revision(void);
41 FIRM_API const char *ir_get_version_build(void);
42 
50 typedef enum firm_kind {
51  k_BAD = 0,
60 } firm_kind;
61 
67 FIRM_API firm_kind get_kind(const void *firm_thing);
68 
71 #include "end.h"
72 
73 #endif
An IR node.
Definition: firm_common.h:55
maximum value – illegal for firm nodes.
Definition: firm_common.h:59
firm_kind get_kind(const void *firm_thing)
Returns the kind of a thing.
A type.
Definition: firm_common.h:53
unsigned ir_get_version_major(void)
returns the libFirm major version number
A tarval.
Definition: firm_common.h:57
const char * ir_get_version_revision(void)
returns string describing libFirm revision
void ir_finish(void)
Frees all memory occupied by the firm library.
firm_kind
A list of firm kinds.
Definition: firm_common.h:50
An IR graph.
Definition: firm_common.h:54
unsigned ir_get_version_minor(void)
returns libFirm minor version number
An entity.
Definition: firm_common.h:52
An IR mode.
Definition: firm_common.h:56
An invalid firm node.
Definition: firm_common.h:51
void ir_init(void)
Initializes the firm library.
const char * ir_get_version_build(void)
returns string describing libFirm build
A loop.
Definition: firm_common.h:58