[PATCH] D139869: [lit] Document the 'target=<triple>' feature

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 12 11:54:13 PST 2022


probinson created this revision.
probinson added a reviewer: ldionne.
Herald added a project: All.
probinson requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Apparently I forgot to do this when making the lit change in
https://github.com/llvm/llvm-project/commit/56470b72f1fc1727d5ee87e2fed96e7dad286230


https://reviews.llvm.org/D139869

Files:
  llvm/docs/TestingGuide.rst


Index: llvm/docs/TestingGuide.rst
===================================================================
--- llvm/docs/TestingGuide.rst
+++ llvm/docs/TestingGuide.rst
@@ -513,7 +513,10 @@
   expression is satisfied if any feature matches the regular expression. Regular
   expressions can appear inside an identifier, so for example ``he{{l+}}o`` would match
   ``helo``, ``hello``, ``helllo``, and so on.
-- Substrings of the target triple (``UNSUPPORTED`` and ``XFAIL`` only).
+- The default target triple, preceded by the string ``target=`` (for example,
+  ``target=x86_64-pc-windows-msvc``). Typically regular expressions are used
+  to match parts of the triple (for example, ``target={{.*}}-windows{{.*}}``
+  to match any Windows target triple).
 
 | ``REQUIRES`` enables the test if all expressions are true.
 | ``UNSUPPORTED`` disables the test if any expression is true.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139869.482215.patch
Type: text/x-patch
Size: 879 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221212/c6ee816f/attachment.bin>


More information about the llvm-commits mailing list