[llvm-commits] [PATCH] fix a bug in TableGen

Liao, Michael michael.liao at intel.com
Tue Mar 6 13:31:38 PST 2012


Forget attach the test case.  Sorry.

- Michael

-----Original Message-----
From: llvm-commits-bounces at cs.uiuc.edu [mailto:llvm-commits-bounces at cs.uiuc.edu] On Behalf Of Liao, Michael
Sent: Tuesday, March 06, 2012 12:47 PM
To: llvm-commits at cs.uiuc.edu
Subject: [llvm-commits] [PATCH] fix a bug in TableGen

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: 2338 bytes
Desc: fix-a-bug-in-tablegen.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120306/ff54852a/attachment.obj>


More information about the llvm-commits mailing list