search for: finally_handler

Displaying 5 results from an estimated 5 matches for "finally_handler".

2010 Jan 21
4
[LLVMdev] Exception handling question
...i64*> [#uses=1] %7 = invoke i8* (...)* bitcast (i32 (%struct._Unwind_Exception*)* @_Unwind_RaiseException to i8* (...)*)(i64* %6) to label %8 unwind label %.finally_pad ; <i8*> [#uses=0] ; <label>:8 ; preds = %.try_body br label %.finally_handler .finally_pad: ; preds = %.try_body %9 = call i8* @llvm.eh.exception() ; <i8*> [#uses=2] store i8* %9, i8** %.ex_value %10 = call i64 (i8*, i8*, ...)* @llvm.eh.selector.i64(i8* %9, i8* bitcast (i32 (i32, i32, i64, %struct._Unwind_Exceptio...
2010 Jan 22
2
[LLVMdev] Exception handling question
...label292: jmp .LBB153_4 .LBB153_3: # %.finally_pad .Llabel293: movq %rax, 16(%rsp) testq %rdx, %rdx setne %al movzbl %al, %eax movq %rax, (%rsp) .LBB153_4: # %.finally_handler movl $.L__string_27, %edi xorb %al, %al call printf xorl %eax, %eax addq $56, %rsp ret .size _ZN4N0014Main5test5EN2IO6WriterEiA_l, .-_ZN4N0014Main5test5EN2IO6WriterEiA_l .Lfunc_end153: .Leh_func_end153: .section .gcc_except_table,"a", a...
2010 Jan 21
0
[LLVMdev] Exception handling question
...%7 = invoke i8* (...)* bitcast (i32 (%struct._Unwind_Exception*)* @_Unwind_RaiseException to i8* (...)*)(i64* %6) > to label %8 unwind label %.finally_pad ; <i8*> [#uses=0] > > ; <label>:8 ; preds = %.try_body > br label %.finally_handler > > .finally_pad: ; preds = %.try_body > %9 = call i8* @llvm.eh.exception() ; <i8*> [#uses=2] > store i8* %9, i8** %.ex_value > %10 = call i64 (i8*, i8*, ...)* @llvm.eh.selector.i64(i8* %9, i8* bitcast (i32 (i32, i32, i64,...
2010 Jan 22
0
[LLVMdev] Exception handling question
...# %.finally_pad > .Llabel293: > > movq %rax, 16(%rsp) > testq %rdx, %rdx > setne %al > movzbl %al, %eax > movq %rax, (%rsp) > .LBB153_4: # > %.finally_handler > movl $.L__string_27, %edi > xorb %al, %al > call printf > xorl %eax, %eax > addq $56, %rsp > ret > .size _ZN4N0014Main5test5EN2IO6WriterEiA_l, > .-_ZN4N0014Main5test5EN2IO6WriterEiA_l > .Lfunc_end153: > .Leh_func_end153:...
2010 Jan 22
0
[LLVMdev] Exception handling question
Hi James, > I've been trying to get a minimal test function to work, which simply > invokes _Unwind_RaiseException with a single clean-up landing pad. > However. when I run it my personality function is not getting called - > _Unwind_RaiseException simply returns apparently doing nothing. Looking > at the x86-64 assembly output from llc, I can see this is happening >