diff options
author | Ian Romanick <[email protected]> | 2010-06-17 19:50:36 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-06-23 10:56:03 -0700 |
commit | 1e8b7a714e8acbb5028a250048452f2efc29d02e (patch) | |
tree | ca516071d701a40b691e7ca5035bdef6eb2ce6d3 /ir.h | |
parent | 53e48d3f6344964d99be89340343630dbf4175d1 (diff) |
ir_constant: Add method to determine if two constants have the same value
Diffstat (limited to 'ir.h')
-rw-r--r-- | ir.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |