Add predicates for examining a combination's compilation type.
authorChris Hanson <org/chris-hanson/cph>
Sat, 9 May 1987 01:07:56 +0000 (01:07 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sat, 9 May 1987 01:07:56 +0000 (01:07 +0000)
v7/src/compiler/base/ctypes.scm

index f7ab4989030b1c983c71a88700c2e7f9514d6867..58e6a8c94295ee850ca423c7cf01ab7039b9ca56 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/base/ctypes.scm,v 1.45 1987/05/07 00:05:52 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/base/ctypes.scm,v 1.46 1987/05/09 01:07:56 cph Exp $
 
 Copyright (c) 1987 Massachusetts Institute of Technology
 
@@ -82,6 +82,15 @@ MIT in each case. |#
                             (cons combination (vnode-combinations value)))
     (snode->scfg combination)))
 
+(define-integrable (combination-compiled-for-predicate? combination)
+  (eq? 'PREDICATE (combination-compilation-type combination)))
+
+(define-integrable (combination-compiled-for-effect? combination)
+  (eq? 'EFFECT (combination-compilation-type combination)))
+
+(define-integrable (combination-compiled-for-value? combination)
+  (eq? 'VALUE (combination-compilation-type combination)))
+
 (define-snode continuation rtl-edge label frame-pointer-offset)
 (define *continuations*)