LLVM for OpenRISC: Euro-LLVM 2012 workshop by Anton Korobeynikov
by jeremybennett on Apr 14, 2012 |
jeremybennett
Posts: 815 Joined: May 29, 2008 Last seen: Jun 13, 2019 |
||
As some of you know, I spent the last two days at the Euro-LLVM conference in London. The final event was a workshop "Building a backend in 24 hours" given by Anton Korobeynikov. Anton used the OpenRISC as his example processor, based on work he carried out on 5/6 April. His work can be cloned from GitHub at The changes can be seen by a git diff against git commit 9751b81fc97dcb6ecc4be4304ef8e6e8cf79f6e4, the point at which he branched from the main tree.As promised, this is my short summary of the presentation. The slides and I believe video will be available shortly through the LLVM website: OVERVIEWAnton started by outlining the levels at which target specific code can be introduced
LLVM IR passes
SDAG passes
MI passes
MC streamers
Customization
BACKEND DETAILS
Q: what is needed to do nothing.
EXAMPLE: OPENRISCGoal to process a trivial LLVM IR fragment Steps:
Adding Clang
Next steps
Q&AI asked how long it would take to complete the implementation, so that reasonable swathes of complex C/C++ could be compiled. Apparently the MSP 430 took him 3 weeks working evenings and weekends. Longer for a non-expert of course. Hope this is useful. Full detail from the website above when the slides and video become available. Jeremy
-- |
1/1
1/1
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.