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

package info (click to toggle)
llvm-toolchain-3.7 1%3A3.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 345,556 kB
  • ctags: 362,199
  • sloc: cpp: 2,156,381; ansic: 458,339; objc: 91,547; python: 89,988; asm: 86,305; sh: 21,479; makefile: 6,853; perl: 5,601; ml: 5,458; pascal: 3,933; lisp: 2,429; xml: 686; cs: 239; php: 202; csh: 117
file content (55 lines) | stat: -rw-r--r-- 1,888 bytes parent folder | download | duplicates (20)
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
55
; 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 { i32*, i32, i8*, i32 }

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

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

bb14:                                             ; preds = %bb11
  unreachable

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

bb56:
  unreachable
}

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