[PATCH] D79936: [FileCheck] Add function call support to numerical expressions.

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 26 09:12:21 PDT 2020


arichardson added inline comments.


================
Comment at: llvm/docs/CommandGuide/FileCheck.rst:708-709
+
+  ``!(<expr>)`` is a precedence operator, which can be used to force the order
+  of operations when symbolic operators are in use.
+
----------------
thopre wrote:
> paulwalker-arm wrote:
> > thopre wrote:
> > > I don't think the exclamation mark should be required here. A parenthesis pair should be enough to force precedence. Note that there was a patch to adds support for that and you might want to rebase your patch on top of it.
> > Sure, it's more that this implementation comes for free, whereas supporting arbitrary parenthesis pairs along side function calls requires more complex parsing.  Is it worth the extra effort?  If so I'll happy prevent this usage and error out for unnamed functions.
> > 
> > I'd rather not wait for the parenthesis work because I've got other work at review whose tests are much improved when I can make use of function calls.
> I think the exclamation mark should be reserved for function call. I find it a bit confusing otherwise but let's wait to see what other reviewers might think.
> 
> Do the tests you need this feature for require some way to force precedence or can this be dealt later?
Apologies for the delay, I've now rebased the parentheses revision (D77383).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79936/new/

https://reviews.llvm.org/D79936





More information about the llvm-commits mailing list