9 /****h* libfirm/tpop_t.h
14 * (C) 2001 by Universitaet Karlsruhe
18 * This file contains the datatypes hidden in tpop.h.
33 * new_tpop - Returns a new type opcode.
35 * Allocates a new tp_op struct and initializes it's fields with
36 * the passed values. This function is only to be used during
37 * initialization of the library.
39 * tp_op * new_tpop (tp_opcode code, ident *name, size_t attr_size);
41 * code - the enum for this type opcode.
42 * name - an ident for the name of the type opcode.
43 * attr_size - the size of the attributes necessary for a type with
49 tp_op * new_tpop (tp_opcode code, ident *name, size_t attr_size);
54 * init_tpop - Initialize the tpop module.
56 * Must be called during the initizlization of the library. Allocates
57 * opcodes and sets the globals that are external visible as specified
60 * void init_tpop (void);
64 * Allocates opcodes for classes, struct, method, union, array,
65 * enumeration, pointer and primitive and sets the according values.
68 void init_tpop (void);
70 /****f* tpop/get_tpop_attr_size
73 * get_tpop_attr_size - Returns the size of the attribute to this kind
78 * int get_tpop_attr_size (tp_op *op)
80 * op - The type opcode to get the size for.
82 * The size of the attribute of types with this opcode.
86 int get_tpop_attr_size (tp_op *op);
88 #endif /* _IROP_T_H_ */