[llvm-dev] [RFC] Compiled regression tests.
Robinson, Paul via llvm-dev
llvm-dev at lists.llvm.org
Tue Jul 7 13:38:44 PDT 2020
> -----Original Message-----
> From: David Greene <david.greene at hpe.com>
> Sent: Tuesday, July 7, 2020 4:06 PM
> To: Robinson, Paul <paul.robinson at sony.com>; Michael Kruse
> <llvmdev at meinersbur.de>; 'llvm-dev at lists.llvm.org' <llvm-
> dev at lists.llvm.org>
> Subject: Re: [llvm-dev] [RFC] Compiled regression tests.
>
> "Robinson, Paul via llvm-dev" <llvm-dev at lists.llvm.org> writes:
>
> > CHECK-SAME starts where the previous match ended. It is not implicitly
> > a DAG on the same line. Documentation patches welcome.
>
> It's unfortunate we don't have a version of CHECK-SAME that restarts the
> match from the beginning. Maybe I should add one.
>
> CHECK-SAME seems like a misnomer. Perhaps CHECK-CONTINUE would have
> been more clear.
>
> -David
SAME was picked to contrast with NEXT. They behave identically, except
that SAME wants zero newlines between its match and the previous match,
and NEXT wants one newline in that interval.
I believe you can get the effect you want with a pair of DAG directives
followed by `CHECK: {{$}}`. The latter will constrain the DAG search
to be between the previous match point and the next EOL.
--paulr
More information about the llvm-dev
mailing list