On Fri, 11 May 2007, me22 wrote:> I'm not exactly sure how llvm-g++ works. I think it goes through the > standard gcc sequence (gimple, rtl, and such) but then outputs LLVM > (http://llvm.org/docs/LangRef.html), which is the intermediate > representation used by the rest of the chain. To make an LLVM backend > you would not need to deal with RTL and such at all.llvm-g++ converts from trees to high-gimple to LLVM. RTL is not involved. LLVM also does have an MSIL backend, if you are interested in a JVM backend, it may be a starting point. -Chris -- http://nondot.org/sabre/ http://llvm.org/
Need to know if anyone has compiled the libstdc++ to LLVM bitcode. If it's available please where could I download it from? Thanks. Napi
On Fri, Sep 28, 2007 at 10:08:31AM +0800, Mohd-Hanafiah Abdullah wrote:> Need to know if anyone has compiled the libstdc++ to LLVM bitcode. If > it's available please where could I download it from?I did this last year. Check out: http://goanna.cs.rmit.edu.au/~emil/dietstdcxx.1.tar.bz2 --Emil
Mohd-Hanafiah Abdullah
2007-Oct-02 18:43 UTC
[LLVMdev] Problem building LLVM-GCC 4.0 Front End
I've read and followed the README.LLVM file that comes with LLVM-GCC 4.0 Front End source, but got the following error when compiling: configure: error: You must specify valid path to your LLVM tree with --enable-llvm=DIR make: *** [configure-gcc] Error 1 I've done the following in csh before hand: $ setenv LLVMOBJDIR /home/napi/proj/c2jvm/llvm/llvm-gcc/obj Where did I go wrong? Thanks. Napi On Fri, 2007-05-11 at 23:38 -0700, Chris Lattner wrote:> On Fri, 11 May 2007, me22 wrote: > > I'm not exactly sure how llvm-g++ works. I think it goes through the > > standard gcc sequence (gimple, rtl, and such) but then outputs LLVM > > (http://llvm.org/docs/LangRef.html), which is the intermediate > > representation used by the rest of the chain. To make an LLVM backend > > you would not need to deal with RTL and such at all. > > llvm-g++ converts from trees to high-gimple to LLVM. RTL is not involved. > > LLVM also does have an MSIL backend, if you are interested in a JVM > backend, it may be a starting point. > > -Chris >-- Mohd-Hanafiah Abdullah Axiomatic Solutions Sdn Bhd napi at axiomsol.com http://www.axiomsol.com
On 10/2/07, Mohd-Hanafiah Abdullah <napi at axiomsol.com> wrote:> I've read and followed the README.LLVM file that comes with LLVM-GCC 4.0 > Front End source, but got the following error when compiling: > > configure: error: You must specify valid path to your LLVM tree with > --enable-llvm=DIR > make: *** [configure-gcc] Error 1 > > I've done the following in csh before hand: > $ setenv LLVMOBJDIR /home/napi/proj/c2jvm/llvm/llvm-gcc/obj > > Where did I go wrong? >Hi Napi, I always just specify it with the "--enable-llvm" command instead of an environment variable. The doc might be wrong in this instance... -bw
> I've read and followed the README.LLVM file that comes with LLVM-GCC 4.0 > Front End source, but got the following error when compiling: > > configure: error: You must specify valid path to your LLVM tree with > --enable-llvm=DIR > make: *** [configure-gcc] Error 1 > > I've done the following in csh before hand: > $ setenv LLVMOBJDIR /home/napi/proj/c2jvm/llvm/llvm-gcc/obj > > Where did I go wrong?LLVMOBJDIR needs to be the LLVM tree, not llvm-gcc. -Tanya> > Thanks. > > Napi > > On Fri, 2007-05-11 at 23:38 -0700, Chris Lattner wrote: >> On Fri, 11 May 2007, me22 wrote: >>> I'm not exactly sure how llvm-g++ works. I think it goes through the >>> standard gcc sequence (gimple, rtl, and such) but then outputs LLVM >>> (http://llvm.org/docs/LangRef.html), which is the intermediate >>> representation used by the rest of the chain. To make an LLVM backend >>> you would not need to deal with RTL and such at all. >> >> llvm-g++ converts from trees to high-gimple to LLVM. RTL is not involved. >> >> LLVM also does have an MSIL backend, if you are interested in a JVM >> backend, it may be a starting point. >> >> -Chris >> >