[RISCV] Specify registers used for exception handling
authorAlex Bradbury <asb@lowrisc.org>
Mon, 8 Jul 2019 09:38:06 +0000 (09:38 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Mon, 8 Jul 2019 09:38:06 +0000 (09:38 +0000)
commit77d4a8f9f7c99172105f184cbb71f052081ccf02
tree302e31ed8cd8f555a0bec7bd67ef876d24ac7d56
parentd0e1d0039717191a507ee71486b3238c458b27b7
[RISCV] Specify registers used for exception handling

Implements the handling of __builtin_eh_return_regno().

Differential Revision: https://reviews.llvm.org/D63417
Patch by Edward Jones.

llvm-svn: 365305
clang/lib/Basic/Targets/RISCV.h
clang/test/CodeGen/builtins-riscv.c [new file with mode: 0644]