[PATCH] D30725: [FileCheck] Added [[@CLEAR:regex]] as a way to clear variables.
Hal Finkel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 7 17:44:54 PST 2017
hfinkel added a comment.
In https://reviews.llvm.org/D30725#695171, @tra wrote:
> @arsenm OK. CHECK-REGION (= CHECK-LABEL + clear all vars) would work for me.
>
> Any other opinions?
What if we divided the regex names into two classes: local and global. CHECK-LABEL cleared the local ones and the global ones stayed around? We could do something like have:
[[@NAME:[pattern]]]
bind a global name (and the existing ones without the @ are local).
https://reviews.llvm.org/D30725
More information about the llvm-commits
mailing list