2 * This file is part of cparser.
3 * Copyright (C) 2012 Matthias Braun <matze@braunis.de>
8 #include <libfirm/firm.h>
12 void translation_unit_to_firm(translation_unit_t *unit);
14 void init_ast2firm(void);
15 void exit_ast2firm(void);
17 ir_mode *get_atomic_mode(atomic_type_kind_t kind);
18 ir_type *get_ir_type(type_t *type);
20 typedef ident* (*create_ld_ident_func)(entity_t *entity);
22 void set_create_ld_ident(create_ld_ident_func func);
24 ir_tarval *fold_constant_to_tarval(const expression_t *expression);
25 void determine_enum_values(enum_type_t *type);
27 extern fp_model_t firm_fp_model;
28 extern ir_mode *atomic_modes[ATOMIC_TYPE_LAST+1];