Chris Lattner kirjoitti:> llvm-gcc defines __llvm__.Thanks. I thought I tried it, but apparently not. -- Pertti
Pertti Kellomäki wrote:> Chris Lattner kirjoitti: > >>llvm-gcc defines __llvm__. > > > Thanks. I thought I tried it, but apparently not.Try: <path-to-llvm-gcc-install>/llvm-cpp -dM /dev/null | grep -y llvm llvm-cpp should be installed if you built the gcc frontend. Mine reports __llvm__. BTW: Would be nice if the frontend defined a manifest constant if it is generating byte code vice generating native. But that's a refinement for another day... -scooter
On Thu, 9 Nov 2006, Scott Michel wrote:> BTW: Would be nice if the frontend defined a manifest constant if it is > generating byte code vice generating native. But that's a refinement for > another day...Why? As an end user, I'd be very unhappy if I got different code from -emit-llvm + llc then from normal llvm-gcc. -Chris -- http://nondot.org/sabre/ http://llvm.org/
Just to keep people informed, we had an internal discussion about the need for libc I/O functions. At least for now, we decided to skip them, the rationale being that in our intended applications I/O will be application specific anyway. -- Pertti