diff options
author | John Hodge <tpg@mutabah.net> | 2018-01-14 16:57:10 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-01-14 16:57:10 +0800 |
commit | f6931f226016259bbbf9c521d3cd44e38cca202b (patch) | |
tree | 90db3d8998bcc2050e41b571c1856a5515ade5f6 /src/mir/mir.hpp | |
parent | 8e9651b583b2300c54a57ecfde619fd7b8a9bfec (diff) | |
download | mrust-f6931f226016259bbbf9c521d3cd44e38cca202b.tar.gz |
MIR Optimise - Move common statements across gotos
Diffstat (limited to 'src/mir/mir.hpp')
-rw-r--r-- | src/mir/mir.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mir/mir.hpp b/src/mir/mir.hpp index 3ce115b8..2a623d3c 100644 --- a/src/mir/mir.hpp +++ b/src/mir/mir.hpp @@ -285,6 +285,10 @@ TAGGED_UNION(Statement, Assign, }) ); extern ::std::ostream& operator<<(::std::ostream& os, const Statement& x); +extern bool operator==(const Statement& a, const Statement& b); +static inline bool operator!=(const Statement& a, const Statement& b) { + return !(a == b); +} struct BasicBlock { |