[LLVMdev] LLVM demo page

Tanya Lattner lattner at apple.com
Thu Feb 14 14:31:51 PST 2013


On Feb 7, 2013, at 6:26 PM, 陳韋任 (Wei-Ren Chen) <chenwj at iis.sinica.edu.tw> wrote:

> On Thu, Feb 07, 2013 at 11:09:10AM +0100, Óscar Fuentes wrote:
>> Blind Faith <person.of.book at gmail.com> writes:
>> 
>>> I used the LLVM demo page http://llvm.org/demo/ to generate C++ code for
>>> generating LLVM IR code. But that page is now disabled. Is there any tool
>>> or other site which does what I'm trying to do, that is I give "C/C++ code"
>>> as input and I get the "C++ code for generating the equivalent LLVM IR" as
>>> output.
>> 
>> You can use clang++ and llc for that:
>> 
>> $ clang++ -c -emit-llvm foo.cpp -o foo.ll
>> $ llc -march=cpp -o foo.ll.cpp foo.ll
>> 
>> (Note: the CppBackend is not enabled by default when you build with
>> CMake on Windows.)
> 
>  Just to be curious. Is there any plan to bring the demo page back?
> 

Not in the near future. It has serious security concerns.

-Tanya

> Regards,
> chenwj
> 
> -- 
> Wei-Ren Chen (陳韋任)
> Computer Systems Lab, Institute of Information Science,
> Academia Sinica, Taiwan (R.O.C.)
> Tel:886-2-2788-3799 #1667
> Homepage: http://people.cs.nctu.edu.tw/~chenwj
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list