Implement the == and != operators

This commit is contained in:
gdkchan 2018-12-10 21:52:02 -03:00
parent ae6c79e176
commit 85762eaabd

View file

@ -86,6 +86,16 @@ namespace ChocolArm64.Translation
{
return HashCode.Combine(Block, Entry, IntInputs, VecInputs, IntOutputs, VecOutputs);
}
public static bool operator ==(BlockIo lhs, BlockIo rhs)
{
return lhs.Equals(rhs);
}
public static bool operator !=(BlockIo lhs, BlockIo rhs)
{
return !(lhs == rhs);
}
}
private const int MaxOptGraphLength = 40;