[PATCH][MC/SPARC] Add support for EH to SPARC backend

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Sep 5 11:45:25 PDT 2013


Why the EmitCFIGNUWindowSave name? The other methods are named almost
1:1 with the instruction. Also, please start new methods with a
lowercase letter.

+  case MCCFIInstruction::OpRegister:
+    OutStreamer.EmitCFIRegister(Inst.getRegister(), Inst.getRegister2());
+    break;

Is this related?

+  ExceptionsType = ExceptionHandling::DwarfCFI;

Can you split this and lib/Target/Sparc/SparcFrameLowering.cpp  to a
followup patch? In fact, please make the first patch be just about
parsing and emitting .cfi_window_save. The testcase should check the
binary output too.


On 1 September 2013 13:37, Venkatraman Govindaraju <venkatra at cs.wisc.edu> wrote:
>
> Thank you for the comment. I updated the patch with support for the new CFI
> directive in MC/MCParser/AsmParser.cpp.
>
> Please let me know if it is okay to commit.
>
> Thanks,
> Venkatraman
>
>
> On Thu, Aug 29, 2013 at 6:11 PM, Bill Wendling <wendling at apple.com> wrote:
>>
>> Hi Venkatraman,
>>
>> One comment, you should also add parsing support for the new CFI directive
>> in lib/MC/MCParser/AsmParser.cpp.
>>
>> -bw
>>
>> On Aug 28, 2013, at 1:34 PM, Venkatraman Govindaraju
>> <venkatra at cs.wisc.edu> wrote:
>>
>> > Ping.
>> >
>> >
>> > On Fri, Aug 9, 2013 at 10:57 PM, Venkatraman Govindaraju
>> > <venkatra at cs.wisc.edu> wrote:
>> > Please review the attached patch.
>> >
>> > This patch enables exception handling (using DwarfCFI) for SPARC.
>> >
>> > This patch also modifies MC layer so that the SPARC backend can emit
>> > ".cfi_window_save" and ".cfi_register" directives, which are required for EH
>> > to work correctly in SPARC.
>> >
>> > Thanks,
>> > Venkatraman
>> >
>> > _______________________________________________
>> > llvm-commits mailing list
>> > llvm-commits at cs.uiuc.edu
>> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list