[haskell-llvm] [Haskell-cafe] LLVM, type-level?
Henning Thielemann
thunderbird at henning-thielemann.de
Wed Dec 8 08:38:34 EST 2010
Nathan Howell wrote:
> On Tue, Dec 7, 2010 at 4:39 PM, Lally Singh <lally.singh at gmail.com> wrote:
>> Cool, so how do I:
>> - declare main's signature? I'm using createNamedFunction "main"
>> - access those arguments inside main's body?
>
> Good question... it looks like getElementPtr does allow indexing into
> pointers [1].
Sure, that's the difference between getElementPtr and getElementPtr0. In
getElementPtr the first index is the index into an array the pointer
points to.
More information about the Haskell-llvm
mailing list