Bug fix in Tblgen

Malul, Elior elior.malul at intel.com
Tue Apr 16 23:15:17 PDT 2013


Attached it a bugfix for tblgen 'foreach' statement.
The bug occurs when the name of the induction variables is the same as one of the fields in the in-scoped records.
For example:

class Node<string S, int I>{
  string s = S;
  int i = I;
}

foreach i = [1,2,3] in {
  def n#i : Node<"n", i>;
}

Tests done: 
	* build passes, make check (both in debug and release configuration)
	* added two LIT tests (see attached patch file).

Reviews will be appreciated.
Thx, Elior
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iter_tblgen.patch
Type: application/octet-stream
Size: 8095 bytes
Desc: iter_tblgen.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130417/2274cf93/attachment.obj>


More information about the llvm-commits mailing list