[llvm-commits] Patch: JIT support for ARM

Chris Lattner clattner at apple.com
Wed Aug 1 11:54:06 PDT 2007


On Jul 30, 2007, at 12:15 PM, Evan Cheng wrote:
> +static const unsigned InstBits[] = {
> +  0,
> +  0,
> +  0,
> +  0,
> +  0,
> +  0XE2B00000,
> +  0XE0B00000,
> +  0XE0B00000,
> +  0XE2900000,
>
> This is impossible to maintain. Please move opcode bits into .td  
> files. That is, please add it to each instruction definition:
>    // FIXME: Set all opcodes to 0 for now.
>   : InstARM<0, am, sz, im, cstr> {

Hi Raul,

The PPC JIT is a great example of how to use this.  It also has 32- 
bit instructions which have registers and immediates filled in in  
various places.

-Chris



More information about the llvm-commits mailing list