Add primops for copying/cloning byte arrays
Add primops for copying/cloning byte arrays so that we can unroll such copies in the backends. Even if we don't unroll in the backend, this will allow us to use memcpy
for copying parts of the byte array, which is difficult today as while ByteArray#
can be passed in an FFI call, the pointer that gets passed refers to the based of the array when we might want it to refer to somewhere in the middle of the array.
Trac metadata
Trac field | Value |
---|---|
Version | 7.0.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | johan.tibell@gmail.com |
Operating system | |
Architecture |