Skip to content
Snippets Groups Projects
Commit 2d896b30 authored by wlott's avatar wlott
Browse files

Added defns for {TARGET-,NATIVE-,}FEATUREP.

parent 278bb872
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/backend.lisp,v 1.14 1991/11/15 15:27:56 ram Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/backend.lisp,v 1.15 1992/03/07 13:32:25 wlott Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -215,3 +215,27 @@
args)))
vm-support-routines))))
(frob))
;;;; Other utility functions for accessing the backend.
(export '(target-featurep backend-featurep native-featurep))
(defun target-featurep (feature)
"Same as EXT:FEATUREP, except use the features found in *TARGET-BACKEND*."
(let ((*features* (or (backend-features *target-backend*)
*features*)))
(featurep feature)))
(defun backend-featurep (feature)
"Same as EXT:FEATUREP, except use the features found in *BACKEND*."
(let ((*features* (or (backend-features *target-backend*)
*features*)))
(featurep feature)))
(defun native-featurep (feature)
"Same as EXT:FEATUREP, except use the features found in *NATIVE-BACKEND*."
(let ((*features* (or (backend-features *native-backend*)
*features*)))
(featurep feature)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment