[llvm-commits] [PATCH 01/13] Add For Loop Structures

David A. Greene dag at cray.com
Mon Feb 6 08:54:26 PST 2012


Jakob Stoklund Olesen <stoklund at 2pi.dk> writes:

>> Again, take this as an example of how it would be used, not necessarily
>> a suggestion to define x86 vector registers this way.  The point is that
>> one can't use nested foreach to so something like this.
>
> New TableGen language features must be driven by the needs of in-tree .td files.
>
> If you can't think of a real use of a feature, it's not necessary.

Come on.  Nadav asked for a (hypothetical) example.  I gave one.  If you
accept that foreach is useful, than zip is useful as well, for exactly
the reasons it is in many, many, many other languages with looping
constructs.

                               -Dave



More information about the llvm-commits mailing list