[llvm-dev] Help to understand LoadValueFromMemory
Alberto Barbaro via llvm-dev
llvm-dev at lists.llvm.org
Thu Jul 18 06:03:27 PDT 2019
Thanks Tim,
I'll try tonight to do so and see if I can make it work.
Thanks
On Thu, Jul 18, 2019, 09:11 Tim Northover <t.p.northover at gmail.com> wrote:
> On Wed, 17 Jul 2019 at 20:44, Alberto Barbaro via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > I think this should not be the case considering that Type I think is a
> Vector.
>
> But from your own code:
>
> > source->getPointerOperand()->getType()->dump(); //[40 x i8]*
>
> [40 x i8]* is a pointer to an array. LoadValueFromMemory doesn't seem
> to support loading an array type directly, so you either have to load
> all bytes individually or use "(char *) Ptr->PointerVal". At least it
> looks like that second one ought to work from the implementation of
> LoadValueFromMemory.
>
> Cheers.
>
> Tim.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190718/512d1e62/attachment.html>
More information about the llvm-dev
mailing list