[WinEH] Add llvm.eh.exceptionpointer intrinsic
authorJoseph Tremoulet <jotrem@microsoft.com>
Thu, 3 Sep 2015 09:15:32 +0000 (09:15 +0000)
committerJoseph Tremoulet <jotrem@microsoft.com>
Thu, 3 Sep 2015 09:15:32 +0000 (09:15 +0000)
commit8f3f5c300ec8f29c62d966e5865fd95965f94878
tree4fb4cbda87346ad4794fa29825f6e1742fe5086e
parent226889eb73e83dea20c050047bcff71e1552a90f
[WinEH] Add llvm.eh.exceptionpointer intrinsic

Summary:
This intrinsic can be used to extract a pointer to the exception caught by
a given catchpad.  Its argument has token type and must be a `catchpad`.

Also clarify ExtendingLLVM documentation regarding overloaded intrinsics.

Reviewers: majnemer, andrew.w.kaylor, sanjoy, rnk

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246752 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ExceptionHandling.rst
docs/ExtendingLLVM.rst
include/llvm/IR/Intrinsics.td
lib/IR/Verifier.cpp
test/CodeGen/WinEH/wineh-intrinsics-invalid.ll [new file with mode: 0644]
test/CodeGen/WinEH/wineh-intrinsics.ll [new file with mode: 0644]