switch case ranges

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

switch case ranges

Cory Nelson
Hello,

I have an problem where a switch with case ranges (like gcc's "case
123 ... 456:" would be fantastic for performance.  Does LLVM asm plan
to support a construct like this?

Thanks.

--
Cory Nelson
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: switch case ranges

Nick Lewycky
Cory Nelson wrote:
> I have an problem where a switch with case ranges (like gcc's "case
> 123 ... 456:" would be fantastic for performance.  Does LLVM asm plan
> to support a construct like this?

Hi Cory. This is not currently supported, but it is a requested
enhancement. It's being tracked under http://llvm.org/PR1255

Nick Lewycky
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: switch case ranges

Gordon Henriksen-3
In reply to this post by Cory Nelson
On Sep 7, 2007, at 22:56, Cory Nelson wrote:

I have an problem where a switch with case ranges (like gcc's "case 123 ... 456:" would be fantastic for performance.  Does LLVM asm plan to support a construct like this?

Hi Cory,

This feature in the bug database here: http://llvm.org/PR1255

— Gordon


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev