When checking PhiM's, ignore Bad predecessors
[libfirm] / ir / ir / irop_t.h
index 61b20e7..0e6cbb0 100644 (file)
@@ -56,7 +56,7 @@ void default_copy_attr(const ir_node *old_node, ir_node *new_node);
  * Returns the attribute size of nodes of this opcode.
  * @note Use not encouraged, internal feature.
  */
-static INLINE int get_op_attr_size (const ir_op *op) {
+static INLINE size_t get_op_attr_size (const ir_op *op) {
   return op->attr_size;
 }
 
@@ -111,6 +111,11 @@ static INLINE int is_op_machine(const ir_op *op) {
   return op->flags & irop_flag_machine;
 }
 
+/** Returns non-zero if operation is a machine operand */
+static INLINE int is_op_machine_operand(const ir_op *op) {
+  return op->flags & irop_flag_machine_op;
+}
+
 /** Returns non-zero if operation is a machine user op number n */
 static INLINE int is_op_machine_user(const ir_op *op, unsigned n) {
   return op->flags & (irop_flag_user << n);