Changes between Version 1 and Version 2 of MemcpyOptimizations


Ignore:
Timestamp:
Jun 14, 2011 9:05:44 PM (3 years ago)
Author:
tibbe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MemcpyOptimizations

    v1 v2  
    2020== User API == 
    2121 
    22 These primitives are exposed to the user as a set of primitive operations on boxed arrays: `copyArray#`, `copyMutableArray#`, `cloneArray#`, `cloneMutableArray#`, `freezeArray#`, and `thawArray#`. The latter four allow the user to efficiently clone an array without first setting all elements to some dummy element, which would be required to e.g. implement `cloneArray#` in terms of `newArray#` and `copyArray#`. The implementation of these primitive operations are in `compiler/cmm/CgPrimOps.hs` (old code generator) and `compiler/codeGen/StgCmmPrim.hs` (new code generator) 
     22These primitives are exposed to the user as a set of primitive operations on boxed arrays: 
     23 
     24 * `copyArray#` 
     25 * `copyMutableArray#` 
     26 * `cloneArray#` 
     27 * `cloneMutableArray#` 
     28 * `freezeArray#` 
     29 * `thawArray#` 
     30 
     31The latter four allow the user to efficiently clone an array without first setting all elements to some dummy element, which would be required to e.g. implement `cloneArray#` in terms of `newArray#` and `copyArray#`. The implementation of these primitive operations are in `compiler/cmm/CgPrimOps.hs` (old code generator) and `compiler/codeGen/StgCmmPrim.hs` (new code generator)