diff options
author | John Hodge <tpg@mutabah.net> | 2016-12-29 21:40:30 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-12-29 21:40:30 +0800 |
commit | 76072adda3183db0a56e846fb13f29fe7fc76d43 (patch) | |
tree | f0c6e5bf75aab87d350c78d9d213c44524598847 /src/mir/mir.hpp | |
parent | c58ba9d7d7dbb6657f0c5a110d5c55dbed5e5eeb (diff) | |
download | mrust-76072adda3183db0a56e846fb13f29fe7fc76d43.tar.gz |
MIR Opt - Partial dead temporary eliminaton
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 6bd371b5..93bd7244 100644 --- a/src/mir/mir.hpp +++ b/src/mir/mir.hpp @@ -58,6 +58,10 @@ TAGGED_UNION_EX(LValue, (), Variable, ( ) ); extern ::std::ostream& operator<<(::std::ostream& os, const LValue& x); +extern bool operator==(const LValue& a, const LValue& b); +static inline bool operator!=(const LValue& a, const LValue& b) { + return !(a == b); +} enum class eBinOp { |