[lit] Add `target=<triple>` as a feature keyword
authorPaul Robinson <paul.robinson@sony.com>
Fri, 4 Nov 2022 13:08:35 +0000 (06:08 -0700)
committerPaul Robinson <paul.robinson@sony.com>
Wed, 16 Nov 2022 13:50:45 +0000 (05:50 -0800)
commit56470b72f1fc1727d5ee87e2fed96e7dad286230
tree7bf39c8643ec967aa6d4ae9ed60d7c44001ec234
parente468b1b740e522c212be24d2ead25383fe46f8f5
[lit] Add `target=<triple>` as a feature keyword

As proposed first in D107162 and later in discourse at
https://discourse.llvm.org/t/rfc-lits-requires-and-triples/66041

Modified a couple of lit's own tests to use this; left others as-is,
because for now triple substrings still work in UNSUPPORTED/XFAIL.

Differential Revision: https://reviews.llvm.org/D137434
llvm/utils/lit/lit/llvm/config.py
llvm/utils/lit/tests/Inputs/shtest-format/lit.cfg
llvm/utils/lit/tests/Inputs/shtest-format/requires-triple.txt
llvm/utils/lit/tests/Inputs/shtest-format/xfail-target.txt
llvm/utils/lit/tests/shtest-format.py