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

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 10 12:28:52 PDT 2022


MaskRay added inline comments.


================
Comment at: llvm/utils/lit/lit/TestRunner.py:1301
+        # RUN: foo %if feature {if_branch} %else {else_branch}
+        # Stack: [['foo', [token_if, 'feature', 'if_branch', 'else_branch']]]
+        #
----------------
It's conventional to use tuples instead of lists to represent immutable objects (stack elements here).


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

https://reviews.llvm.org/D122569



More information about the llvm-commits mailing list