[LLVMdev] Inline Assembly (unique arch string for llvm)

Chris Lattner sabre at nondot.org
Thu Sep 16 21:45:24 PDT 2004


On Thu, 16 Sep 2004, Andrew Lenharth wrote:
> So I propose that llvm-gcc not consider itself any type of x86-linux (or
> what ever it platform it was compiled on), but rather create a new
> architecture, say llvm (or perhaps 2, one for each bit and little
> endian).  Thuse llvm-gcc -dumpmachine would return llvm-os.

Hrm, I would much rather just have LLVM be a drop in replacement for a C
compiler.  As such, it should expose identical #defines to GCC.

> This would make system library (and OS kernel!) ports easier to maintain
> since arch llvm would be supported by adding stuff rather than changing
> stuff, and all the inline asm for known archs would go away and the C
> version would be used.  In most cases the config scripts should consider
> compiling with llvm on a host as a cross compile from host arch to arch
> llvm.

We *will* eventually support inline assembly, it just has not yet been
implemented yet.  Patches accepted :)

-Chris

-- 
http://llvm.org/
http://nondot.org/sabre/




More information about the llvm-dev mailing list