sangeeta chowdhary via llvm-dev
2020-Feb-29 03:29 UTC
[llvm-dev] Preserving the type of structure
Hello, LLVM IR flattens out the structure with one integer element to i32. Is there any way to disable this? I want to preserve the type information of the structure. I tried compiling the program with O0, it maintains the type for most of the instructions but for all. Regards, Sangeeta -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200228/c6676093/attachment.html>
David Blaikie via llvm-dev
2020-Feb-29 22:29 UTC
[llvm-dev] Preserving the type of structure
No - if you really want this sort of information you'd likely find it in the debug info https://llvm.org/docs/SourceLevelDebugging.html or maybe TBAA data. On Fri, Feb 28, 2020 at 7:30 PM sangeeta chowdhary via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hello, > > LLVM IR flattens out the structure with one integer element to i32. Is > there any way to disable this? I want to preserve the type information of > the structure. I tried compiling the program with O0, it maintains the type > for most of the instructions but for all. > > Regards, > Sangeeta > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200229/11861646/attachment.html>
sangeeta chowdhary via llvm-dev
2020-Mar-02 17:55 UTC
[llvm-dev] Preserving the type of structure
Hi David, Thanks for the response. I was wondering if you have any concrete steps to get this information from TBAA data? If you can point me towards some source or example then it would be really helpful. Regards, Sangeeta On Sat, Feb 29, 2020 at 5:30 PM David Blaikie <dblaikie at gmail.com> wrote:> No - if you really want this sort of information you'd likely find it in > the debug info https://llvm.org/docs/SourceLevelDebugging.html or maybe > TBAA data. > > On Fri, Feb 28, 2020 at 7:30 PM sangeeta chowdhary via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hello, >> >> LLVM IR flattens out the structure with one integer element to i32. Is >> there any way to disable this? I want to preserve the type information of >> the structure. I tried compiling the program with O0, it maintains the type >> for most of the instructions but for all. >> >> Regards, >> Sangeeta >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200302/c9f3aff2/attachment.html>