forked from M-Labs/artiq
1
0
Fork 0

compiler.types: make TValue hashable.

This commit is contained in:
whitequark 2015-12-18 17:31:20 +08:00
parent 3fbee2707b
commit f4b19fee5c
1 changed files with 3 additions and 0 deletions

View File

@ -491,6 +491,9 @@ class TValue(Type):
def __ne__(self, other):
return not (self == other)
def __hash__(self):
return hash(self.value)
class TDelay(Type):
"""
The type-level representation of IO delay.