1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 13:02:52 +02:00
llvm-mirror/test/CodeGen/WinEH
Reid Kleckner b08b580e85 [WinEH] Make llvm.eh.actions use frameescape indices for catch params
This makes it possible to use the same representation of llvm.eh.actions
in outlined handlers as we use in the parent function because i32's are
just constants that can be copied freely between functions.

I had to add a sentinel alloca to the list of child allocas so that we
don't try to sink the catch object into the handler. Normally, one would
use nullptr for this kind of thing, but TinyPtrVector doesn't support
null elements. More than that, it's elements have to have a suitable
alignment. Therefore, I settled on this for my sentinel:

  AllocaInst *getCatchObjectSentinel() {
    return static_cast<AllocaInst *>(nullptr) + 1;
  }

llvm-svn: 233947
2015-04-02 21:13:31 +00:00
..
cppeh-catch-all.ll [WinEH] Make llvm.eh.actions use frameescape indices for catch params 2015-04-02 21:13:31 +00:00
cppeh-catch-scalar.ll [WinEH] Make llvm.eh.actions use frameescape indices for catch params 2015-04-02 21:13:31 +00:00
cppeh-catch-unwind.ll [WinEH] Make llvm.eh.actions use frameescape indices for catch params 2015-04-02 21:13:31 +00:00
cppeh-frame-vars.ll [WinEH] Make llvm.eh.actions use frameescape indices for catch params 2015-04-02 21:13:31 +00:00
cppeh-inalloca.ll [WinEH] Make llvm.eh.actions use frameescape indices for catch params 2015-04-02 21:13:31 +00:00
cppeh-min-unwind.ll [WinEH] Run cleanup handlers when an exception is thrown 2015-03-30 22:58:10 +00:00
cppeh-multi-catch.ll [WinEH] Make llvm.eh.actions use frameescape indices for catch params 2015-04-02 21:13:31 +00:00
cppeh-nested-1.ll [WinEH] Run cleanup handlers when an exception is thrown 2015-03-30 22:58:10 +00:00
cppeh-nested-2.ll [WinEH] Make llvm.eh.actions use frameescape indices for catch params 2015-04-02 21:13:31 +00:00
cppeh-nested-3.ll [WinEH] Run cleanup handlers when an exception is thrown 2015-03-30 22:58:10 +00:00
cppeh-nonalloca-frame-values.ll [WinEH] Make llvm.eh.actions use frameescape indices for catch params 2015-04-02 21:13:31 +00:00
cppeh-prepared-catch.ll [WinEH] Generate .xdata for catch handlers 2015-03-31 22:35:44 +00:00
cppeh-prepared-cleanups.ll [WinEH] Generate .xdata for catch handlers 2015-03-31 22:35:44 +00:00
lit.local.cfg
seh-simple.ll [WinEH] Make llvm.eh.actions use frameescape indices for catch params 2015-04-02 21:13:31 +00:00