[llvm-dev] Passing Array base address/pointer to runtime function in LLVM IR

Bernard Nongpoh via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 9 02:06:36 PST 2018


Thanks Tim,
I figure it out and successfully retrieved the base pointer and pass it to
the function.

Thanks a lot

Bernard Nongpoh

On Tue, Jan 9, 2018 at 3:24 PM, Tim Northover <t.p.northover at gmail.com>
wrote:

> Hi Bernard,
>
> On 9 January 2018 at 07:08, Bernard Nongpoh via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > Tried the above code but no luck ..
>
> I'm afraid there's not enough context here to answer the question. The
> code you posted looks like it could work, but a lot would depend on
> the definitions you omitted: getElementPtrInst especially, though a
> dump of the whole Module as it exists when this code is executed would
> be even better.
>
> Knowing exactly what went wrong (error, assertion (which?), segfault,
> ...) would also be very helpful.
>
> Cheers.
>
> Tim.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180109/7f43a31a/attachment.html>


More information about the llvm-dev mailing list