From 76bc29146ab25026bfbcc25ce16cdf570614f9fd Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 27 Mar 2002 12:35:44 +0000 Subject: [PATCH] [project @ 2002-03-27 12:35:44 by simonmar] Update the comment about how to add a new primop. --- ghc/compiler/prelude/primops.txt.pp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ghc/compiler/prelude/primops.txt.pp b/ghc/compiler/prelude/primops.txt.pp index ee40508..e73a6e2 100644 --- a/ghc/compiler/prelude/primops.txt.pp +++ b/ghc/compiler/prelude/primops.txt.pp @@ -1,5 +1,5 @@ ----------------------------------------------------------------------- --- $Id: primops.txt.pp,v 1.16 2002/02/17 13:02:44 panne Exp $ +-- $Id: primops.txt.pp,v 1.17 2002/03/27 12:35:44 simonmar Exp $ -- -- Primitive Operations -- @@ -18,16 +18,15 @@ -- strictness attributes, whether it is defined as a macro -- or as out-of-line code, etc.) -- --- - ghc/lib/std/PrelGHC.hi-boot, to declare the primop --- -- - if the primop is inline (i.e. a macro), then: --- ghc/includes/PrimOps.h --- ghc/compiler/nativeGen/StixPrim.lhs --- ghc/compiler/nativeGen/MachCode.lhs (if implementation is machine-dependent) +-- ghc/compiler/AbsCUtils.lhs (dscCOpStmt) +-- defines the translation of the primop into simpler +-- abstract C operations. -- -- - or, for an out-of-line primop: -- ghc/includes/PrimOps.h (just add the declaration) -- ghc/rts/PrimOps.hc (define it here) +-- ghc/rts/Linker.c (declare the symbol for GHCi) -- -- - the User's Guide -- -- 1.7.10.4