[M3devel] LLVM version and patches thereto
Peter McKinna
peter.mckinna at gmail.com
Fri May 22 00:09:28 CEST 2015
Hi Rodney,
Good to see this stuff moving forward. I had no idea how to integrate it
with the front end. I'm using llvm 3.5 . I downloaded 3.6 and built it but
then could not get some dibuilder bindings I had added to compile, some
sort of problem with the wrap function which I have yet to sort out. I
think they made a change to the way metadata is treated. Anyway I have
attached the 2 sets of bindings I have been using. I have to commit a few
bug fixes and my initial attempt at debug support.
Speaking of debugging, I was following what I think clang uses which is
the dibuilder class . So far its very primitive and could probably be split
into its own module. I managed to get simple scalars, enumerations, arrays
and records to be debugged with stock gdb and none of the name mangling I
usually get. But globals, objects and sets dont work. I think this needs an
expert and mybe a chat with the llvm people, they seem pretty helpful.
Anyway it runs the maze program, I compiled the collector the other day,
15,000 lines of llvm ir. The code quality looks pretty good from a brief
inspection of the assembly thats compiled at O3 although O2 doesnt make
much difference. I read in tips for programmers somewhere that pascal like
languages with lots of runtime checks should be running some extra passes
for better optimisation. We could look at that in the future.
Regards Peter
On Fri, May 22, 2015 at 2:57 AM, Rodney M. Bates <rodney_bates at lcwb.coop>
wrote:
> Peter, what version of llvm are you using? Also, can you tell us what the
> patches
> you have made to it are? Have you sent these to the llvm developers to
> incorporate?
> I can guess one is to tolerate DW_LANG_Modula3.
>
>
> --
> Rodney Bates
> rodney.m.bates at acm.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150522/8fd4889e/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: M3Extras.h
Type: text/x-chdr
Size: 838 bytes
Desc: not available
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150522/8fd4889e/attachment-0004.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DIBuilderBindings.h
Type: text/x-chdr
Size: 6034 bytes
Desc: not available
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150522/8fd4889e/attachment-0005.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: M3Extras.cpp
Type: text/x-c++src
Size: 2354 bytes
Desc: not available
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150522/8fd4889e/attachment-0004.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DIBuilderBindings.cpp
Type: text/x-c++src
Size: 11648 bytes
Desc: not available
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150522/8fd4889e/attachment-0005.cpp>
More information about the M3devel
mailing list