add char->integer, number->string etc to interesting primitives
authorAndy Wingo <wingo@pobox.com>
Fri, 22 Jun 2012 10:30:39 +0000 (12:30 +0200)
committerAndy Wingo <wingo@pobox.com>
Fri, 22 Jun 2012 10:33:20 +0000 (12:33 +0200)
* module/language/tree-il/primitives.scm (*interesting-primitive-names*):
  (*effect-free-primitives*): Add string->number, number->string,
  integer->char, and char->integer to allow for constant folding and
  better effects analysis.

module/language/tree-il/primitives.scm

index dba31bd..a1c5adc 100644 (file)
@@ -54,6 +54,8 @@
 
     char<? char<=? char>=? char>?
 
+    integer->char char->integer number->string string->number
+
     acons cons cons*
 
     list vector
     pair? null? list? symbol? vector? struct? string? number? char?
     complex? real? rational? inf? nan? integer? exact? inexact? even? odd?
     char<? char<=? char>=? char>?
+    integer->char char->integer number->string string->number
     struct-vtable
     string-length
     ;; These all should get expanded out by expand-primitives!.