diff options
author | Robert Lytton <robert@xmos.com> | 2013-11-13 10:19:31 +0000 |
---|---|---|
committer | Robert Lytton <robert@xmos.com> | 2013-11-13 10:19:31 +0000 |
commit | 8b99622b9b0902c709a33a07efb3461bc7830852 (patch) | |
tree | 738227a4eac70e161aabed2e0a7dbb786bd6173b /lib/Target/XCore/XCoreISelLowering.cpp | |
parent | cb92f8ecc9d94f6647fdbb7ffbe783b009344009 (diff) | |
download | llvm-8b99622b9b0902c709a33a07efb3461bc7830852.tar.gz llvm-8b99622b9b0902c709a33a07efb3461bc7830852.tar.bz2 llvm-8b99622b9b0902c709a33a07efb3461bc7830852.tar.xz |
XCore target: implement exception handling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreISelLowering.cpp')
-rw-r--r-- | lib/Target/XCore/XCoreISelLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/XCore/XCoreISelLowering.cpp b/lib/Target/XCore/XCoreISelLowering.cpp index a382a189cf..89ad27daec 100644 --- a/lib/Target/XCore/XCoreISelLowering.cpp +++ b/lib/Target/XCore/XCoreISelLowering.cpp @@ -149,6 +149,10 @@ XCoreTargetLowering::XCoreTargetLowering(XCoreTargetMachine &XTM) setOperationAction(ISD::STACKRESTORE, MVT::Other, Expand); setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32, Expand); + // Exception handling + setExceptionPointerRegister(XCore::R0); + setExceptionSelectorRegister(XCore::R1); + // Atomic operations setOperationAction(ISD::ATOMIC_FENCE, MVT::Other, Custom); |