File: 2011-12-19-sjlj-clobber.ll

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (54 lines) | stat: -rw-r--r-- 1,758 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
; RUN: llc < %s -O0 -mtriple=thumbv7-apple-ios | FileCheck %s

; Radar 10567930: Make sure that all the caller-saved registers are saved and
; restored in a function with setjmp/longjmp EH.  In particular, r6 was not
; being saved here.
; CHECK: push {r4, r5, r6, r7, lr}

%0 = type opaque
%struct.NSConstantString = type { ptr, i32, ptr, i32 }

define i32 @asdf(i32 %a, i32 %b, ptr %c, ptr %d) personality ptr @__objc_personality_v0 {
bb:
  %tmp = alloca i32, align 4
  %tmp1 = alloca i32, align 4
  %tmp2 = alloca ptr, align 4
  %tmp3 = alloca i1
  %myException = alloca ptr, align 4
  %tmp4 = alloca ptr
  %tmp5 = alloca i32
  %exception = alloca ptr, align 4
  store i32 %a, ptr %tmp, align 4
  store i32 %b, ptr %tmp1, align 4
  store ptr %d, ptr %tmp2, align 4
  store i1 false, ptr %tmp3
  %tmp7 = load ptr, ptr %c
  %tmp10 = invoke ptr @objc_msgSend(ptr %tmp7, ptr %d, ptr null)
          to label %bb11 unwind label %bb15

bb11:                                             ; preds = %bb
  store ptr %tmp10, ptr %myException, align 4
  %tmp12 = load ptr, ptr %myException, align 4
  invoke void @objc_exception_throw(ptr %tmp12) noreturn
          to label %bb14 unwind label %bb15

bb14:                                             ; preds = %bb11
  unreachable

bb15:                                             ; preds = %bb11, %bb
  %tmp16 = landingpad { ptr, i32 }
          catch ptr null
  %tmp17 = extractvalue { ptr, i32 } %tmp16, 0
  store ptr %tmp17, ptr %tmp4
  %tmp18 = extractvalue { ptr, i32 } %tmp16, 1
  store i32 %tmp18, ptr %tmp5
  store i1 true, ptr %tmp3
  br label %bb56

bb56:
  unreachable
}

declare ptr @objc_msgSend(ptr, ptr, ...) nonlazybind
declare i32 @__objc_personality_v0(...)
declare void @objc_exception_throw(ptr)