+typedef enum ir_segment_t {
+ IR_SEGMENT_FIRST,
+ /** "normal" global data */
+ IR_SEGMENT_GLOBAL = IR_SEGMENT_FIRST,
+ /** thread local storage segment */
+ IR_SEGMENT_THREAD_LOCAL,
+ /**
+ * the constructors segment. Contains pointers to functions which are
+ * executed on module initialization (program start or when a library is
+ * dynamically loaded)
+ */
+ IR_SEGMENT_CONSTRUCTORS,
+ /** like constructors, but functions are executed on module exit */
+ IR_SEGMENT_DESTRUCTORS,
+
+ IR_SEGMENT_COUNT
+} ir_segment_t;
+