1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-30 15:13:03 +00:00

Add janet_sysir_scalarize

Makes it easier to add simpler backends without needing to completely
handle vectorization.
This commit is contained in:
Calvin Rose
2025-02-24 19:12:17 -06:00
parent 768c9b23e1
commit 9a1cd6fdd9
2 changed files with 239 additions and 33 deletions

View File

@@ -17,3 +17,7 @@
(def ctx (sysir/context))
(sysir/asm ctx ir-asm)
(print (sysir/to-c ctx))
(printf "%.99M" (sysir/to-ir ctx))
(print (sysir/scalarize ctx))
(printf "%.99M" (sysir/to-ir ctx))
(print (sysir/to-c ctx))