[llvm-commits] [PATCH] fix a bug in TableGen
Liao, Michael
michael.liao at intel.com
Tue Mar 6 12:47:01 PST 2012
Hi, Folks
This is a bug-fix patch to TableGen on TD files previously working from 2.8 to 3.0 but failed in trunk. I figured out that #NAME# resolving has been changed to reuse record field value resolving by adding NAME as a standard field. With a two-level multiclasses and both with #NAME#, the trunk code runs into infinite recursion. This patch fixes this issue by skipping re-calculating NAME when we found NAME is changed and skip resolving the field if it's the same as the specified one to be against.
The patch also includes a test case for regression test.
This patch passed 'make check ' on trunk code (r152136).
Yours
- Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-a-bug-in-tablegen.patch
Type: application/octet-stream
Size: 1089 bytes
Desc: fix-a-bug-in-tablegen.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120306/ec767522/attachment.obj>
More information about the llvm-commits
mailing list