Skip to content

Commit

Permalink
Add i8 and i16 types
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Mar 20, 2022
1 parent e923387 commit 0e599c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/ltypes/ltypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import platform
from typing import TypeVar

__slots__ = ["i32", "i64", "f32", "f64", "c32", "c64",
__slots__ = ["i8", "i16", "i32", "i64", "f32", "f64", "c32", "c64",
"overload", "ccall", "TypeVar"]

# data-types
Expand All @@ -21,6 +21,8 @@ def __init__(self, type, dims):
self._type = type
self._dims = dims

i8 = Type("i8")
i16 = Type("i16")
i32 = Type("i32")
i64 = Type("i64")
f32 = Type("f32")
Expand Down

0 comments on commit 0e599c3

Please sign in to comment.