[PATCH] D122569: [lit] Support %if ... %else syntax for RUN lines

Andrew Savonichev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 07:10:27 PDT 2022


asavonic updated this revision to Diff 423379.
asavonic marked an inline comment as done.
asavonic edited the summary of this revision.
asavonic added a comment.

- Reimplemented the parser as a recursive function
- Changed syntax: `%if cond { branch_if } %else { branch_else }` to `%if cond %{ branch_if %} %else %{ branch_else %}`


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

https://reviews.llvm.org/D122569

Files:
  llvm/docs/TestingGuide.rst
  llvm/utils/lit/lit/TestRunner.py
  llvm/utils/lit/tests/Inputs/shtest-if-else/lit.cfg
  llvm/utils/lit/tests/Inputs/shtest-if-else/test.txt
  llvm/utils/lit/tests/shtest-if-else.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122569.423379.patch
Type: text/x-patch
Size: 12365 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220418/315ca933/attachment.bin>


More information about the llvm-commits mailing list