[llvm-commits] PATCH: FileCheck to allow referencing vars defined on the same line

Eli Bendersky eliben at google.com
Sat Dec 1 13:36:20 PST 2012


> This is for existing functionality, but is related to this feature.  I
> mean something like this:
>
> op1 r1, r2, r1
>
> ; CHECK: {{([a-z]+[0-9])+}} [[REG:r[0-9]+]], {{r[0-9]+}}, [[REG]]
>
> Where we have parentheses inside a regexp.  These should be counted in
> 'CurParen' correctly so that we get the backreference number right.
> It was already done before to correctly capture variables, but this
> feature depends on this, too.
>

OK, I'm attaching an updated patch that adds this test, as well as the
other issue you raised (AddBackrefToRegEx method accepting unsigned).

Eli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filecheck-backref3.patch
Type: application/octet-stream
Size: 5089 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121201/10142d7a/attachment.obj>


More information about the llvm-commits mailing list