[PATCH] D63417: [WIP][RISCV] Specify registers used for exception handling
Edward Jones via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 17 04:54:55 PDT 2019
edward-jones created this revision.
edward-jones added reviewers: asb, lewis-revill.
Herald added subscribers: cfe-commits, Jim, benna, psnobl, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, apazos, simoncook, johnrusso, rbar.
Herald added a project: clang.
Implements the handling of __builtin_eh_return_regno()
Work in progress as this is missing tests
Repository:
rC Clang
https://reviews.llvm.org/D63417
Files:
lib/Basic/Targets/RISCV.h
Index: lib/Basic/Targets/RISCV.h
===================================================================
--- lib/Basic/Targets/RISCV.h
+++ lib/Basic/Targets/RISCV.h
@@ -58,6 +58,15 @@
ArrayRef<const char *> getGCCRegNames() const override;
+ int getEHDataRegisterNumber(unsigned RegNo) const override {
+ if (RegNo == 0)
+ return 10;
+ else if (RegNo == 1)
+ return 11;
+ else
+ return -1;
+ }
+
ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const override;
bool validateAsmConstraint(const char *&Name,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63417.205036.patch
Type: text/x-patch
Size: 548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190617/d3980fc7/attachment.bin>
More information about the cfe-commits
mailing list