1 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
8 * common firm declarations
10 * @author Martin Trapp, Christian Schaefer & Goetz Lindenmaier
15 # ifndef _FIRM_COMMON_H_
16 # define _FIRM_COMMON_H_
26 /** a list of firm kinds */
28 k_entity, /**< an entity */
29 k_type, /**< a type */
30 k_ir_node, /**< an ir node */
31 k_ir_loop, /**< a loop */
32 k_ir_mode, /**< a ir mode */
33 k_tarval /**< a tarval */
37 * Returns the kind of a thing.
39 * @param firm_thing pointer repraesenting a firm object
41 firm_kind get_kind(const void *firm_thing);
43 /** Returns the kind of a thing as a string. */
44 const char* print_firm_kind(void *firm_thing);
46 # endif /*_FIRM_COMMON_H_ */