Changes between Version 7 and Version 8 of Commentary/PrimOps


Ignore:
Timestamp:
Oct 16, 2006 5:41:47 PM (8 years ago)
Author:
guest
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/PrimOps

    v7 v8  
    8080 
    8181See also AddingNewPrimitiveOperations, a blow-by-blow description of the process for adding a new out-of-line primop from someone who went through the process. 
     82 
     83 
     84== Explanation of attributes == 
     85 
     86 
     87`TBV` (To be verified) 
     88 
     89=== has_side_effects === 
     90 
     91default = False 
     92 
     93=== out_of_line === 
     94 
     95default = False 
     96 
     97Set to True if there is a function in PrimOps.cmm. This also changes to code generator to push the continuation 
     98of any followon code onto the stack. 
     99 
     100=== commutable === 
     101 
     102default = False 
     103 
     104 
     105=== needs_wrapper === 
     106 
     107default = False 
     108 
     109=== strictness === 
     110 
     111default = [lazyDmd, ... ] TopRes 
     112 
     113This is the strictness of the PrimOp. Unboxed things should be marked as lazyDmd. (Someone explain why?). 
     114 
     115=== usage === 
     116 
     117default = nomangle other 
     118 
     119 
     120 
     121 
     122 
     123 
     124