[haskell-llvm] Aligned malloc for vector operations
Henning Thielemann
lemming at henning-thielemann.de
Wed Jul 28 06:53:29 EDT 2010
On Tue, 27 Jul 2010, Bryan O'Sullivan wrote:
> On Tue, Jul 27, 2010 at 3:27 PM, Henning Thielemann <lemming at henning-thielemann.de>
> wrote:
>
> For vector access to the memory it is important to have properly aligned
> chunks of memory.
>
>
> malloc already guarantees safe alignment of memory, including for vector instructions.
When I used the 'malloc' intrinsic of LLVM I got crashes for certain
datatype sizes due to misalignment. I thought LLVM's 'malloc' intrinsic is
based on clib's malloc.
More information about the Haskell-llvm
mailing list