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

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Mar 7 08:44:49 PST 2012


Committed r152232, thanks!

/jakob

On Mar 6, 2012, at 1:31 PM, Liao, Michael wrote:

> 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
> 
> <fix-a-bug-in-tablegen.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list