[LLVMdev] ARM and lowerinvoke

Anton Korobeynikov anton at korobeynikov.info
Tue Apr 21 14:37:13 PDT 2009


Hello, Jim

> -enable-correct-eh-support, llc asserts on me. It appears there's been some
> bitrot somewhere.
Well, correct. Because many places expects exceptions to be dwarf-style.

> Is it reasonable to expect that lowerinvoke is a good place to start for
> doing what I'm after?
I really don't think so. Since you're trying to map dwarf-based
structures into sjlj couch. I think you need to start looking how gcc
/ llvm-gcc implements them, do proper lowering inside llvm-gcc and
then "fix" DAG machinery & backends to emit correct sjlj info.

> on what's going on with this assertion and how to correct it. Where is a
> good place to look to get that?
It's funny, but: gcc/ada/raise-gcc.c
It describes both exception schemes. After that you might look how
different stuff (dwarf vs sjlj) is lowered in gcc and try to extend
llvm-convert to do something similar.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list