* block_visited flags. If NDEBUG is not defined, then the compiler will abort
* if 2 parties try to use the flags.
*/
-#ifndef NDEBUG
enum ir_resources_enum_t {
IR_RESOURCE_BLOCK_VISITED = 1 << 0,
IR_RESOURCE_BLOCK_MARK = 1 << 1,
};
typedef unsigned ir_resources_t;
+#ifndef NDEBUG
void ir_reserve_resources(ir_graph *irg, ir_resources_t resources);
void ir_free_resources(ir_graph *irg, ir_resources_t resources);
ir_resources_t ir_resources_reserved(const ir_graph *irg);
*/
void set_type_size_bytes(ir_type *tp, unsigned size);
-/** Returns the alignment of a type in bytes.
- *
- * Returns -1 if the alignment is NOT
- * a byte size, i.e. not dividable by 8. Calls get_type_alignment_bits(). */
+/** Returns the alignment of a type in bytes. */
unsigned get_type_alignment_bytes(ir_type *tp);
/** Returns the alignment of a type in bits.