[project @ 2000-08-07 14:11:48 by sewardj]
Reorganise the way primops are done. Most of the information about primops, their types and relevant attributes is in prelude/primops.txt. A supporting program in fptools/ghc/utils/genprimopcode reads this file and generates various bits of code which are #include'd into prelude/PrimOp.lhs. Eventually this mechanism will be extended to generate PrelGHC.hi and C code for primops in the bytecode evaluator. Also, add a few primops for creating, reading and writing BCOs.
Showing
- ghc/compiler/Makefile 33 additions, 1 deletionghc/compiler/Makefile
- ghc/compiler/basicTypes/Unique.lhs 2 additions, 0 deletionsghc/compiler/basicTypes/Unique.lhs
- ghc/compiler/nativeGen/MachMisc.lhs 1 addition, 0 deletionsghc/compiler/nativeGen/MachMisc.lhs
- ghc/compiler/nativeGen/StixPrim.lhs 129 additions, 56 deletionsghc/compiler/nativeGen/StixPrim.lhs
- ghc/compiler/prelude/PrelInfo.lhs 2 additions, 0 deletionsghc/compiler/prelude/PrelInfo.lhs
- ghc/compiler/prelude/PrelNames.lhs 2 additions, 0 deletionsghc/compiler/prelude/PrelNames.lhs
- ghc/compiler/prelude/PrimOp.lhs 67 additions, 1877 deletionsghc/compiler/prelude/PrimOp.lhs
- ghc/compiler/prelude/PrimRep.lhs 1 addition, 0 deletionsghc/compiler/prelude/PrimRep.lhs
- ghc/compiler/prelude/TysPrim.lhs 16 additions, 2 deletionsghc/compiler/prelude/TysPrim.lhs
- ghc/compiler/prelude/primops.txt 1147 additions, 0 deletionsghc/compiler/prelude/primops.txt
Loading
Please register or sign in to comment