libFirm
Loading...
Searching...
No Matches
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
16#include "begin.h"
17
34FIRM_API void ir_init(void);
35
43FIRM_API void ir_init_library(void);
44
48FIRM_API void ir_finish(void);
49
51FIRM_API unsigned ir_get_version_major(void);
53FIRM_API unsigned ir_get_version_minor(void);
55FIRM_API unsigned ir_get_version_micro(void);
57FIRM_API const char *ir_get_version_revision(void);
59FIRM_API const char *ir_get_version_build(void);
60
79
85FIRM_API firm_kind get_kind(const void *firm_thing);
86
89#include "end.h"
90
91#endif
firm_kind
A list of firm kinds.
Definition firm_common.h:68
unsigned ir_get_version_minor(void)
returns libFirm minor version number
const char * ir_get_version_build(void)
returns string describing libFirm build
unsigned ir_get_version_major(void)
returns the libFirm major version number
unsigned ir_get_version_micro(void)
returns libFirm micro version number
firm_kind get_kind(const void *firm_thing)
Returns the kind of a thing.
void ir_init(void)
Initializes the firm library and prepares code generation for the host.
void ir_init_library(void)
Initializes the firm library but does not prepare for any code generation.
void ir_finish(void)
Frees all memory occupied by the firm library.
const char * ir_get_version_revision(void)
returns string describing libFirm revision
@ k_type
A type.
Definition firm_common.h:71
@ k_entity
An entity.
Definition firm_common.h:70
@ k_ir_mode
An IR mode.
Definition firm_common.h:74
@ k_BAD
An invalid firm node.
Definition firm_common.h:69
@ k_ir_graph
An IR graph.
Definition firm_common.h:72
@ k_ir_node
An IR node.
Definition firm_common.h:73
@ k_ir_max
maximum value – illegal for firm nodes.
Definition firm_common.h:77
@ k_ir_loop
A loop.
Definition firm_common.h:76
@ k_tarval
A tarval.
Definition firm_common.h:75