summaryrefslogtreecommitdiff
path: root/src/Language.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-11-10 10:04:27 +0100
committerTom Smeding <tom@tomsmeding.com>2024-11-10 10:04:27 +0100
commit42d59947356ab51e5a4070b930f02f4909208d35 (patch)
tree3c8afab888e61c4e3157a257f0a40ae2fd4eb9c1 /src/Language.hs
parent33e0ed21603cbd85d6aba6548811db27480647db (diff)
Complete GMM implementation
Diffstat (limited to 'src/Language.hs')
-rw-r--r--src/Language.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Language.hs b/src/Language.hs
index 7aceee7..a7737e0 100644
--- a/src/Language.hs
+++ b/src/Language.hs
@@ -8,12 +8,16 @@
module Language (
fromNamed,
NExpr,
+ Ex,
module Language,
+ module AST.Types,
+ module Data,
Lookup,
) where
import Array
import AST
+import AST.Types
import CHAD.Types
import Data
import Language.AST
@@ -191,3 +195,6 @@ round_ = oper ORound64
toFloat_ :: NExpr env (TScal TI64) -> NExpr env (TScal TF64)
toFloat_ = oper OToFl64
+
+idiv :: (KnownScalTy t, ScalIsIntegral t ~ True) => NExpr env (TScal t) -> NExpr env (TScal t) -> NExpr env (TScal t)
+idiv = oper2 (OIDiv knownScalTy)