aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2021-06-18 13:33:14 -0400
committerLouis Dionne <ldionne.2@gmail.com>2021-06-30 10:52:16 -0400
commitfec521a7b206815ad995f7247e671a8f25d144fc (patch)
tree88a693b0d0c05a27fdbc2e823658cc9da30c2384 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parent90f244c8432357337a12b2582b20e2aedeb3e742 (diff)
downloadllvm-fec521a7b206815ad995f7247e671a8f25d144fc.zip
llvm-fec521a7b206815ad995f7247e671a8f25d144fc.tar.gz
llvm-fec521a7b206815ad995f7247e671a8f25d144fc.tar.bz2
[lit] Add the ability to parse regexes in Lit boolean expressions
This patch augments Lit with the ability to parse regular expressions in boolean expressions. This includes REQUIRES:, XFAIL:, UNSUPPORTED:, and all other special Lit markup that evaluates to a boolean expression. Regular expressions can be specified by enclosing them in {{...}}, similarly to how FileCheck handles such regular expressions. The regular expression can either be on its own, or it can be part of an identifier. For example, a match expression like {{.+}}-apple-darwin{{.+}} would match the following variables: x86_64-apple-darwin20.0 arm64-apple-darwin20.0 arm64-apple-darwin22.0 etc... In the long term, this could be used to remove the need to handle the target triple specially when parsing boolean expressions. Differential Revision: https://reviews.llvm.org/D104572
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
0 files changed, 0 insertions, 0 deletions