Displaying 3 results from an estimated 3 matches for "itanium_style_except".
2007 Apr 06
0
[LLVMdev] Integrating LLVM in an existing project
...ver, I'd be interested to look at how exception handling can be
> implemented in the JIT. What's the current situation?
The static code generator works for many simple cases, but it is currently
disabled. To enable it, uncomment this line in
llvm-gcc/gcc/llvm-convert.cpp:
//#define ITANIUM_STYLE_EXCEPTIONS
Based on that, you should be able to compile simple C++ codes that throw
and catch exceptions. The next step would be to make a .bc file, run it
through the JIT, see how it explodes :)
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
2007 Apr 06
2
[LLVMdev] Integrating LLVM in an existing project
Hi Chris,
Chris Lattner wrote:
>> We can not use current exception handling in llvm, see
>> http://www.nondot.org/sabre/LLVMNotes/ExceptionHandlingChanges.txt.
>>
>
> Why not?
>
>
Like you say, it's not functional for non-calls instructions. Besides,
having to change
all CalInst to InvokeInst is just too much pain in our current vm.
> There are two
2007 Apr 06
1
[LLVMdev] Integrating LLVM in an existing project
Hi Chris,
> The static code generator works for many simple cases, but it is currently
> disabled. To enable it, uncomment this line in
> llvm-gcc/gcc/llvm-convert.cpp:
>
> //#define ITANIUM_STYLE_EXCEPTIONS
>
>
> Based on that, you should be able to compile simple C++ codes that throw
> and catch exceptions. The next step would be to make a .bc file, run it
> through the JIT, see how it explodes :)
the compiler fails to build if you do that :-/
The attached patch helps a bit b...