llvm-6502/lib/CodeGen/SelectionDAG
Duncan Sands 6590b0457c There is an impedance matching problem between LLVM and
gcc exception handling: if an exception unwinds through
an invoke, then execution must branch to the invoke's
unwind target.  We previously tried to enforce this by
appending a cleanup action to every selector, however
this does not always work correctly due to an optimization
in the C++ unwinding runtime: if only cleanups would be
run while unwinding an exception, then the program just
terminates without actually executing the cleanups, as
invoke semantics would require.  I was hoping this
wouldn't be a problem, but in fact it turns out to be the
cause of all the remaining failures in the LLVM testsuite
(these also fail with -enable-correct-eh-support, so turning
on -enable-eh didn't make things worse!).  Instead we need
to append a full-blown catch-all to the end of each
selector.  The correct way of doing this depends on the
personality function, i.e. it is language dependent, so
can only be done by gcc.  Thus this patch which generalizes
the eh.selector intrinsic so that it can handle all possible
kinds of action table entries (before it didn't accomodate
cleanups): now 0 indicates a cleanup, and filters have to be
specified using the number of type infos plus one rather than
the number of type infos.  Related gcc patches will cause
Ada to pass a cleanup (0) to force the selector to always
fire, while C++ will use a C++ catch-all (null).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41484 91177308-0d34-0410-b5e6-96231b3b80d8
2007-08-27 15:47:50 +00:00
..
CallingConvLower.cpp propagate struct size and alignment of byval arguments to the DAG 2007-08-10 14:44:42 +00:00
DAGCombiner.cpp Revise per review comments. 2007-08-26 01:18:27 +00:00
LegalizeDAG.cpp Allow target constants to be illegal types. The target should 2007-08-25 01:00:22 +00:00
Makefile For PR780: 2006-07-26 16:18:00 +00:00
ScheduleDAG.cpp Teach the dag scheduler to handle inline asm nodes with multi-value immediate operands. 2007-08-25 00:53:07 +00:00
ScheduleDAGList.cpp Skeleton of post-RA scheduler; doesn't do anything yet. 2007-07-13 17:13:54 +00:00
ScheduleDAGRRList.cpp Minor cleanups to reduce some spurious differences between different 2007-08-20 19:28:38 +00:00
ScheduleDAGSimple.cpp Fix GLIBCXX_DEBUG error of comparing two singular iterators 2007-08-17 15:13:55 +00:00
SelectionDAG.cpp Revise per review comments. 2007-08-26 01:18:27 +00:00
SelectionDAGISel.cpp There is an impedance matching problem between LLVM and 2007-08-27 15:47:50 +00:00
SelectionDAGPrinter.cpp Make chain dependencies blue, in addition to being dashed. 2007-06-18 15:30:16 +00:00
TargetLowering.cpp rename isOperandValidForConstraint to LowerAsmOperandForConstraint, 2007-08-25 00:47:38 +00:00