[WinEH] Add llvm.eh.exceptionpointer intrinsic
[oota-llvm.git] / docs / ExceptionHandling.rst
index 2f09155dff2f3b8fbc0e716ac7f30f70eb505ea1..71efa4bbd531b5e8eb134edce462637f4638d5a8 100644 (file)
@@ -401,6 +401,20 @@ intrinsic serves as a placeholder to delimit code before a catch handler is
 outlined.  After the handler is outlined, this intrinsic is simply removed.
 
 
+.. _llvm.eh.exceptionpointer:
+
+``llvm.eh.exceptionpointer``
+----------------------
+
+.. code-block:: llvm
+
+  i8 addrspace(N)* @llvm.eh.padparam.pNi8(token %catchpad)
+
+
+This intrinsic retrieves a pointer to the exception caught by the given
+``catchpad``.
+
+
 SJLJ Intrinsics
 ---------------