[llvm-dev] MCJIT - missing DataLayout?
Josh Klontz via llvm-dev
llvm-dev at lists.llvm.org
Thu May 5 05:48:31 PDT 2016
Hopefully this provides a partial answer: when using MCJIT I set the data
layout for every module. My code looks roughly like:
On Thu, May 5, 2016 at 5:34 AM, Paweł Bylica <llvm-dev at lists.llvm.org>
> Hi everyone,
> I was happily using MCJIT for over a year until yesterday when I created a
> function call with an argument of a struct type. That caused a crash in
> SelectionDAG around DataLayout::getAlignment().
> I remember the noise about the DataLayout started being mandatory. But I
> cannot find precise information.
> Should I set the DataLayout in every Module created?
> Where can I get the DataLayout for the host process from?
> Can a DataLayout instance be shared between modules?
> - Paweł
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev