From 772fe17a6d07304ae2e6b3052bbb24ebb751f0f3 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 27 Jul 2011 20:18:04 +0000 Subject: Merge the contents from exception-handling-rewrite to the mainline. This adds the new instructions 'landingpad' and 'resume'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136253 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/LangRef.html b/docs/LangRef.html index ab98d3d835..40affb7e91 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -123,6 +123,7 @@
  • 'indirectbr' Instruction
  • 'invoke' Instruction
  • 'unwind' Instruction
  • +
  • 'resume' Instruction
  • 'unreachable' Instruction
  • @@ -2942,13 +2943,14 @@ should not be exposed to source languages.

    control flow, not values (the one exception being the 'invoke' instruction).

    -

    There are seven different terminator instructions: the +

    There are eight different terminator instructions: the 'ret' instruction, the 'br' instruction, the 'switch' instruction, the ''indirectbr' Instruction, the 'invoke' instruction, the - 'unwind' instruction, and the + 'unwind' instruction, the + 'resume' instruction, and the 'unreachable' instruction.

    @@ -3271,6 +3273,35 @@ that the invoke/unwind semantics are likely to change in future versions.

    +

    + 'resume' Instruction +

    + +
    + +
    Syntax:
    +
    +  resume <type> <value>
    +
    + +
    Overview:
    +

    The 'resume' instruction is a terminator instruction that has no + successors. Its operand must have the same type as the result of any + 'landingpad' instruction in the same function.

    + +
    Semantics:
    +

    The 'resume' instruction resumes propagation of an existing + (in-flight) exception.

    + +
    Example:
    +
    + resume { i8*, i32 } %exn
    +
    + +
    + + +

    'unreachable' Instruction

    -- cgit v1.2.3-18-g5258