diff options
| author | Duraid Madina <duraid@octopus.com.au> | 2006-09-04 06:21:35 +0000 |
|---|---|---|
| committer | Duraid Madina <duraid@octopus.com.au> | 2006-09-04 06:21:35 +0000 |
| commit | 2a0013f59fb3b23010c0509fab8bf509eb30fb36 (patch) | |
| tree | 5eeee3804055cf753a41fd33334eae94b65d6e9b /lib/Target | |
| parent | 362b3680c1d8f92609ee37c4a6943c7a45f287cb (diff) | |
add setJumpBufSize() and setJumpBufAlignment() to target-lowering.
Call these from your backend to enjoy setjmp/longjmp goodness, see
lib/Target/IA64/IA64ISelLowering.cpp for an example
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
| -rw-r--r-- | lib/Target/IA64/IA64ISelLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/IA64/IA64ISelLowering.cpp b/lib/Target/IA64/IA64ISelLowering.cpp index 3693d85890..2a64570be8 100644 --- a/lib/Target/IA64/IA64ISelLowering.cpp +++ b/lib/Target/IA64/IA64ISelLowering.cpp @@ -109,6 +109,9 @@ IA64TargetLowering::IA64TargetLowering(TargetMachine &TM) setStackPointerRegisterToSaveRestore(IA64::r12); + setJumpBufSize(704); // on ia64-linux, jmp_bufs are 704 bytes.. + setJumpBufAlignment(16); // ...and must be 16-byte aligned + computeRegisterProperties(); setOperationAction(ISD::ConstantFP, MVT::f64, Expand); |
