7 /****h* libfirm/tpop_t.h
12 * (C) 2001 by Universitaet Karlsruhe
16 * This file contains the datatypes hidden in tpop.h.
31 * new_tpop - Returns a new type opcode.
33 * Allocates a new tp_op struct and initializes it's fields with
34 * the passed values. This function is only to be used during
35 * initialization of the library.
37 * tp_op * new_tpop (tp_opcode code, ident *name, size_t attr_size);
39 * code - the enum for this type opcode.
40 * name - an ident for the name of the type opcode.
41 * attr_size - the size of the attributes necessary for a type with
47 tp_op * new_tpop (tp_opcode code, ident *name, size_t attr_size);
52 * init_tpop - Initialize the tpop module.
54 * Must be called during the initizlization of the library. Allocates
55 * opcodes and sets the globals that are external visible as specified
58 * void init_tpop (void);
62 * Allocates opcodes for classes, struct, method, union, array,
63 * enumeration, pointer and primitive and sets the according values.
66 void init_tpop (void);
68 /****f* tpop/get_tpop_attr_size
71 * get_tpop_attr_size - Returns the size of the attribute to this kind
76 * int get_tpop_attr_size (tp_op *op)
78 * op - The type opcode to get the size for.
80 * The size of the attribute of types with this opcode.
84 int get_tpop_attr_size (tp_op *op);
86 #endif /* _IROP_T_H_ */