Dump calling conventions for entities
[libfirm] / ir / ir / iropt_t.h
index 996c336..eb3bdff 100644 (file)
@@ -38,5 +38,23 @@ ir_node *optimize_node (ir_node *n);
 
 ir_node *optimize_in_place_2 (ir_node *n);
 
+/* Calculate a hash value of a node. */
+unsigned ir_node_hash (ir_node *node);
+
+/**
+ * Returns the tarval of a Const node or tarval_bad for all other nodes.
+ */
+static INLINE tarval *
+value_of(ir_node *n) {
+  if ((n != NULL) && (get_irn_op(n) == op_Const))
+    return get_Const_tarval(n); /* might return tarval_bad */
+  else
+    return tarval_bad;
+}
+
+/**
+ * set the default ir op operations
+ */
+ir_op *firm_set_default_operations(ir_op *op);
 
 # endif /* _IROPT_T_H_ */