[WinEH] Add a funclet layout pass
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 17 Sep 2015 20:45:18 +0000 (20:45 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 17 Sep 2015 20:45:18 +0000 (20:45 +0000)
commit048d7e541d4bb2418f927d03dc2b6a683e27e985
treeadf1637456f5db19ad0f0589ec0a4687b37f7f33
parentf946dd04123e27edfcd15dcf0d9de68dcb79be42
[WinEH] Add a funclet layout pass

Windows EH funclets need to be contiguous.  The FuncletLayout pass will
ensure that the funclets are together and begin with a funclet entry MBB.

Differential Revision: http://reviews.llvm.org/D12943

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247937 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/Passes.h
include/llvm/InitializePasses.h
lib/CodeGen/CMakeLists.txt
lib/CodeGen/CodeGen.cpp
lib/CodeGen/FuncletLayout.cpp [new file with mode: 0644]
lib/CodeGen/Passes.cpp
test/CodeGen/X86/funclet-layout.ll [new file with mode: 0644]