[PATCH] Add support to FileCheck for out-of-order matching

Reid Kleckner rnk at google.com
Fri May 3 09:25:04 PDT 2013


On Fri, May 3, 2013 at 8:25 AM, Nico Rieck <nico.rieck at gmail.com> wrote:
> On 03.05.2013 16:55, Nick Lewycky wrote:
>>
>> One of the problems I have is that emitting a .ll file will reorder
>> things. So I group my function declarations, definitions and named
>> metadata together in a single logical test, then when emitting they're
>> spread all over the file (named metadata is grouped at the end). That's
>> really unfortunate, it happens a lot with debug info tests. This would
>> give me a way to group together my check statements with the logical test.
>
>
> I ran into the same problem. And it's not only metadata, but also deferred
> emission of functions. This makes CHECK lines very hard to follow and
> brittle. And I don't think the order of functions is of relevance there.

Hm, so that's essentially two +1's for my original use case for CHECK-ANYWHERE.

I also hit this again the other day when globals I added at the end of
the test were emitted before intervening functions in the .ll.



More information about the llvm-commits mailing list