[LLVMdev] tblgen bug in handling case , switch_on
the.dead.shall.rise at gmail.com
Sun Sep 6 14:49:50 PDT 2009
On Sun, Sep 6, 2009 at 8:13 PM, Mikhail
Glushenkov<the.dead.shall.rise at gmail.com> wrote:
> Hi Sanjiv,
> On Sun, Sep 6, 2009 at 8:07 PM, Mikhail
> Glushenkov<the.dead.shall.rise at gmail.com> wrote:
> [Sorry, the formatting was a bit off]
>> The following snippet gives the expected behaviour (not tested, but
>> you should get the idea):
BTW, your mail has got me thinking about the semantics of 'case',
which is currently somewhat ambiguous (since it depends on context).
Probably 'case' should be modified to always mean 'if ... else if ...
else if ... [...] else ...' and the 'if (...) ... if (...) ... if
(...) ... [...]' form should be called something like 'match'. That
would be backwards-incompatible, though.
What do you think?
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
More information about the llvm-dev