[LLVMdev] Enhancing TableGen

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Oct 11 13:20:04 PDT 2011

On Oct 11, 2011, at 1:07 PM, Jim Grosbach wrote:

> Perhaps a minor note, but can I'd prefer we call them something other than a "for loop." That implies a more procedural nature than is natural for the language. TableGen is far more declarative that procedural. Even something simple like using a "for each" type syntax and refering to the construct as a "for each definition" would go a long way. What I want to avoid is any implication that there's a guarantee for order of evaluation.

Another thing that needs clarification is the multiple variable syntax:

  for x = [1, 2, 3], y = [4, 5, 6] in { … }

It is not clear if you get a cross product or a 'zip'.


More information about the llvm-dev mailing list