summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-06-17 19:50:36 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-06-23 10:56:03 -0700
commit1e8b7a714e8acbb5028a250048452f2efc29d02e (patch)
treeca516071d701a40b691e7ca5035bdef6eb2ce6d3 /ir.h
parent53e48d3f6344964d99be89340343630dbf4175d1 (diff)
ir_constant: Add method to determine if two constants have the same value
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index d02f3caab9..a04b688894 100644
--- a/ir.h
+++ b/ir.h
@@ -1092,6 +1092,11 @@ public:
ir_constant *get_record_field(const char *name);
/**
+ * Determine whether a constant has the same value as another constant
+ */
+ bool has_value(const ir_constant *) const;
+
+ /**
* Value of the constant.
*
* The field used to back the values supplied by the constant is determined