FileCheck [11/12]: Add matching constraint specification
authorThomas Preud'homme <thomasp@graphcore.ai>
Wed, 17 Jul 2019 15:15:52 +0000 (16:15 +0100)
committerThomas Preud'homme <thomasp@graphcore.ai>
Wed, 10 Jun 2020 14:56:10 +0000 (15:56 +0100)
commit47934c7cf9f6c18e21a34f9324680652214f771e
treeaecb16d3a40e759e1fcca79347f82d28f03731f2
parent9daccb7a477b8cf2448dab35ae2779a4b36c2b63
FileCheck [11/12]: Add matching constraint specification

This patch is part of a patch series to add support for FileCheck
numeric expressions. This specific patch adds support for specifying the
matching constraint for a numeric expression, ie. how the value being
matched should relate to the numeric expression.

This commit only adds the equality constraint where the numeric value
matched must be equal to the numeric expression. It is the default
matching constraint used when not specified. It is added to provision
other matching constraint (e.g. inequality relations).

Copyright:
    - Linaro (changes up to diff 183612 of revision D55940)
    - GraphCore (changes in later versions of revision D55940 and
                 in new revision created off D55940)

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D60391
llvm/docs/CommandGuide/FileCheck.rst
llvm/lib/Support/FileCheck.cpp
llvm/lib/Support/FileCheckImpl.h
llvm/test/FileCheck/line-count.txt
llvm/test/FileCheck/numeric-expression.txt
llvm/unittests/Support/FileCheckTest.cpp