1 //===-- Definition of type jmp_buf ----------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_TYPES_JMP_BUF_H
10 #define LLVM_LIBC_TYPES_JMP_BUF_H
22 #elif defined(__i386__)
29 #elif defined(__riscv)
30 /* Program counter. */
32 /* Callee-saved registers. */
36 /* Callee-saved floating point registers. */
37 #if __riscv_float_abi_double
39 #elif defined(__riscv_float_abi_single)
40 #error "__jmp_buf not available for your target architecture."
42 #elif defined(__arm__)
43 // r4, r5, r6, r7, r8, r9, r10, r11, r12, lr
45 #elif defined(__aarch64__)
46 long opaque
[14]; // x19-x29, lr, sp, optional x18
48 long fopaque
[8]; // d8-d15
51 #error "__jmp_buf not available for your target architecture."
55 typedef __jmp_buf
jmp_buf[1];
57 #endif // LLVM_LIBC_TYPES_JMP_BUF_H