Sunday, October 20, 2013

The LLVM demo page is currently disabled (that should not stop you)

So, there was a nice page in the LLVM website where you can try out LLVM online.  They called it the LLVM demo page (http://llvm.org/demo/).  It was really nice because not only you were able to see the generated bitcode or run your application, but also get the LLVM c++ API code necessary to generate the bitcode.  This was particularly necessary when writing a pass.  In fact I used this feature a lot while I was working on LLVM.
Apparently in ETHZ, my first project is on LLVM again and I again needed the page.  But to my surprise, the demo page was disabled.  According to Tanya Lattner, there were serious security threats with the demo and that's why they have disabled it for infinite time.  The only work around was an option of llc that you can use the C++ API code.  But for lazy persons like me, that option meant running two more command and probably creating some temporary files that need to be deleted later.  Thus I found this webpage that does the demo again, secretly! ;)  This is awesome and hope some people can benefit from it.

Click here to go the demo page

No comments:

Post a Comment