Implement getSizeofMutableByteArrayOp primop
authorBen Gamari <bgamari.foss@gmail.com>
Fri, 21 Aug 2015 08:37:39 +0000 (10:37 +0200)
committerBen Gamari <ben@smart-cactus.org>
Fri, 21 Aug 2015 10:10:06 +0000 (12:10 +0200)
commit9e8562ae02701270e2c1dfcee3279d862dc5b7b6
treebff25f744173f13cfc94615c51152d0ddd6cfa4c
parent0d0e651d789a9a1b62139a210f4b013fa5453cfa
Implement getSizeofMutableByteArrayOp primop

Now since ByteArrays are mutable we need to be more explicit about when
the size is queried.

Test Plan: Add testcase and validate

Reviewers: goldfire, hvr, austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1139

GHC Trac Issues: #9447
compiler/codeGen/StgCmmPrim.hs
compiler/main/BreakArray.hs
compiler/prelude/primops.txt.pp
libraries/integer-gmp/src/GHC/Integer/Type.hs