[llvm] [FileCheck]: Fix diagnostic for trailing CHECK-NOT (PR #78412)

Vinayak Dev via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 08:05:07 PST 2024


vinayakdsci wrote:

> I feel what we need is to change DagNotStrings to be a vector of FileCheckString instead of a vector of Pattern since it's FileCheckString that associate a Prefix, Loc and Pattern. All we need then is to create FileCheckString for CHECK-NOTs and CHECK-DAGs with an empty DagNotStrings for them.
> 
> Does that make sense?

It would still require the code in checkInput () to be changed to include custom NOT prefixes, which seems a little tedious, and would require a lot of change!

https://github.com/llvm/llvm-project/pull/78412


More information about the llvm-commits mailing list