[llvm-commits] [Patch] Exception Handling Documentation

Bill Wendling wendling at apple.com
Tue Aug 2 14:54:23 PDT 2011


On Aug 2, 2011, at 2:49 PM, David Blaikie wrote:

>> How about these for the restrictions?
>> 
>>        • A landing pad block is a basic block which is the unwind destination of an 'invoke' instruction.
>>        • A landing pad block must have a 'landingpad' instruction as its first non-PHI instruction.
>>        • There can be only one 'landingpad' instruction within the landing pad block.
>>        • A basic block that is not a landing pad block may not include a 'landingpad' instruction.
>>        • All 'landingpad' instructions in a function must have the same personality function.
> 
> 
> How about: "A landing pad instruction must (and may only) be the first
> non-PHI instruction in a landing pad block"
> 
> This covers 2, 3, and 4 in one sentence, if I'm not mistaken. (& seems
> clearer to me)
> 
Hi David,

That's not bad, but would like to err on the side of caution and make everything verbose when it comes to the restrictions we're placing on this instruction. :-)

-bw





More information about the llvm-commits mailing list