[LLVMdev] dragonegg arm patch

Duncan Sands baldrick at free.fr
Sun Jan 29 09:43:40 PST 2012


Hi Jin-Gu,

> I made a patch for dragonegg. This patch is for dragonegg to generate arm
> assembly code.

thanks for working on this.

>
> Dragonegg is compiled with this patch after building gcc-4.6 as cross compiler
> for arm and
>
> then dragonegg can generate arm assembly code.
>
> It currently makes errors to build dragonegg and llvm from svn. so I made a
> patch using
>
> dragonegg-3.0 source code. (This patch doesn't support TargetInstrinsic lowering as
>
> compared with llvm-gcc.4.2 )
>
> If you allow this patch, I will commit this patch.

I applied a fix for decode_reg_name.  CallingConv::ID is just an integer, as
such returning it by reference makes no sense.  It was a silliness in the
llvm-gcc code and I don't want to reintroduce it, so those bits are no good.
I will try to build an ARM cross-compiler here to understand the rest better.
This might take a few days.

Ciao, Duncan.

>
> (May be, I will commit two directory "include/arm" and "src/arm". because I
> don't know
>
> why "CC" is commented. )
>
> Please review this patch.
>
> Thanks,
>
> Jin-Gu Kang
>




More information about the llvm-dev mailing list