[llvm-commits] [llvm] r78701 - in /llvm/trunk/lib/Target/ARM: ARMBaseInstrInfo.cpp ARMInstrThumb2.td

Jim Grosbach grosbach at apple.com
Wed Aug 12 08:22:55 PDT 2009


On Aug 11, 2009, at 10:20 PM, Evan Cheng wrote:

> Hi Jim,
>
> Can you use r12 instead of ip? llvm arm target uses r12 throughout.
> I'd prefer to be more consisten.
>

Good point. Done as r78806.

If you (or anyone else) has suggestions on a better way to do the  
codegen for that bit, I'd love to hear it. It's really, really ugly at  
the moment.

-jim

>>
>> +  def t2Int_eh_sjlj_setjmp : Thumb2XI<(outs), (ins GPR:$src),
>> +                               AddrModeNone, SizeSpecial,
>> NoItinerary,
>> +                               "str.w sp, [$src, #+8] @ eh_setjmp
>> begin\n"
>> +                               "\tadr ip, 0f\n"
>> +                               "\torr ip, #1\n"
>> +                               "\tstr.w ip, [$src, #+4]\n"
>> +                               "\tmovs r0, #0\n"
>> +                               "\tb 1f\n"
>> +                               "0:\tmovs r0, #1 @ eh_setjmp end\n"
>> +                               "1:\n", "",
>> +                               [(set R0, (ARMeh_sjlj_setjmp GPR:
>> $src))]>;
>> +}
>> +
>> +
>> +
>> +//
>> =



More information about the llvm-commits mailing list