[Git][ghc/ghc][wip/js-staging] JS.Primops: Doc explaining lack of vector support
doyougnu (@doyougnu)
gitlab at gitlab.haskell.org
Tue Sep 13 13:18:55 UTC 2022
doyougnu pushed to branch wip/js-staging at Glasgow Haskell Compiler / GHC
Commits:
f5c4cbab by doyougnu at 2022-09-13T09:18:30-04:00
JS.Primops: Doc explaining lack of vector support
- - - - -
1 changed file:
- compiler/GHC/StgToJS/Prim.hs
Changes:
=====================================
compiler/GHC/StgToJS/Prim.hs
=====================================
@@ -1182,6 +1182,12 @@ genPrim prof ty op = case op of
ListThreadsOp -> unhandledPrimop op
LabelThreadOp -> unhandledPrimop op -- \[] [t,la,lo] -> PrimInline $ t .^ "label" |= ValExpr (JList [la, lo])
+------------------------------- Vector -----------------------------------------
+-- For now, vectors are unsupported on the JS backend. Simply put, they do not
+-- make much sense to support given support for arrays and lack of SIMD support
+-- in JS. We could try to roll something special but we would not be able to
+-- give any performance guarentees to the user and so we leave these has
+-- unhandled for now.
VecBroadcastOp _ _ _ -> unhandledPrimop op
VecPackOp _ _ _ -> unhandledPrimop op
VecUnpackOp _ _ _ -> unhandledPrimop op
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f5c4cbabc3f398f4b4be7e1740e4909913da44c9
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f5c4cbabc3f398f4b4be7e1740e4909913da44c9
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20220913/11b4819e/attachment.html>
More information about the ghc-commits
mailing list