File: 2007-09-03-X86-64-EhSelector.ll

package info (click to toggle)
llvm 2.6-9.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 57,604 kB
  • ctags: 44,336
  • sloc: cpp: 344,766; sh: 12,407; ansic: 10,617; ada: 3,070; ml: 2,505; perl: 2,496; makefile: 1,426; pascal: 1,163; exp: 389; asm: 307; python: 298; objc: 260; lisp: 182; csh: 117; xml: 38; f90: 36; tcl: 20
file content (38 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download | duplicates (2)
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
; RUN: llvm-as < %s | llc -march=x86-64 -enable-eh
; PR1632

define void @_Z1fv() {
entry:
	invoke void @_Z1gv( )
			to label %return unwind label %unwind

unwind:		; preds = %entry
	br i1 false, label %eh_then, label %cleanup20

eh_then:		; preds = %unwind
	invoke void @__cxa_end_catch( )
			to label %return unwind label %unwind10

unwind10:		; preds = %eh_then
	%eh_select13 = tail call i64 (i8*, i8*, ...)* @llvm.eh.selector.i64( i8* null, i8* bitcast (void ()* @__gxx_personality_v0 to i8*), i32 1 )		; <i32> [#uses=2]
	%tmp18 = icmp slt i64 %eh_select13, 0		; <i1> [#uses=1]
	br i1 %tmp18, label %filter, label %cleanup20

filter:		; preds = %unwind10
	unreachable

cleanup20:		; preds = %unwind10, %unwind
	%eh_selector.0 = phi i64 [ 0, %unwind ], [ %eh_select13, %unwind10 ]		; <i32> [#uses=0]
	ret void

return:		; preds = %eh_then, %entry
	ret void
}

declare void @_Z1gv()

declare i64 @llvm.eh.selector.i64(i8*, i8*, ...)

declare void @__gxx_personality_v0()

declare void @__cxa_end_catch()