This patch is part of a patch series to add support for FileCheck
numeric expressions. This specific patch extend numeric expression to
support an arbitrary number of operands, either variable or literals.
Copyright:
Paths
| Differential D60387
FileCheck [7/12]: Arbitrary long numeric expressions ClosedPublic Authored by thopre on Apr 7 2019, 4:21 PM.
Details Summary This patch is part of a patch series to add support for FileCheck Copyright:
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes Comment Actions Get rid of the useless FileCheckNumExpr class which is only needed when matching format are introduced Comment Actions I've reviewed up to the tests, and got lots of comments for you.
thopre marked 19 inline comments as done. Comment Actions
thopre edited parent revisions, added: D63125: FileCheck: Return parse error w/ Error & Expected; removed: D60386: FileCheck [6/12]: Introduce numeric variable definition.Jun 13 2019, 5:16 AM Comment Actions Regarding what to call the @LINE+offset form, I think it's fine to call it "legacy" in the user-facing documentation, but it gets to be a bit much in the internals. I haven't commented every use but you will get the idea in the inline comments.
thopre edited parent revisions, added: D63500: [FileCheck] Stop qualifying expressions as numeric; removed: D63125: FileCheck: Return parse error w/ Error & Expected.Jun 18 2019, 4:32 PM Comment Actions Apologies for the delay in coming back to this. It's been a busy few days.
Comment Actions I think I am happy with this, leaving the rest up to James.
thopre marked 17 inline comments as done. Comment Actions
thopre edited parent revisions, added: D64231: [FileCheck] Simplify numeric variable interface; removed: D63500: [FileCheck] Stop qualifying expressions as numeric.Jul 4 2019, 4:58 PM Comment Actions Mostly looks good. A few nits still and one or two more significant comments. I think this structure looks much cleaner than the previous version, personally.
thopre added inline comments.
thopre marked 7 inline comments as done. Comment ActionsAddress review comments
thopre marked an inline comment as done. Comment ActionsReturn a VariableProperties structure in parseVariable Comment Actions LGTM. Thanks for the hard work on this!
This revision is now accepted and ready to land.Jul 12 2019, 7:47 AM thopre removed a child revision: D60388: FileCheck [8/12]: Define numeric var from expr.Jul 12 2019, 8:00 AM thopre added inline comments.
thopre added inline comments.
Comment Actions Thanks for your work on this! Looking forward to be able to use these new features the next time I update our fork.
Closed by commit rL366001: FileCheck [7/12]: Arbitrary long numeric expressions (authored by thopre). · Explain WhyJul 13 2019, 6:27 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 204497 llvm/docs/CommandGuide/FileCheck.rst
llvm/include/llvm/Support/FileCheck.h
llvm/lib/Support/FileCheck.cpp
llvm/test/FileCheck/line-count.txt
llvm/test/FileCheck/var-scope.txt
llvm/unittests/Support/FileCheckTest.cpp
|
<expr>> should be <expr>