[PATCH] D133172: [lit] Extend DEFINE/REDEFINE with function substitutions
Joel E. Denny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 1 17:33:21 PDT 2022
jdenny created this revision.
jdenny added reviewers: probinson, jhenderson, rnk, thopre, yln, asavonic, mehdi_amini, MaskRay.
Herald added subscribers: StephenFan, delcypher.
Herald added a project: All.
jdenny requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.
Herald added a project: LLVM.
For example, in a test file, the following directives define a
`%{check}` substitution with two formal parameters and then use it
with varying actual arguments:
// DEFINE: %{check}( CFLAGS %, FC_PREFIX %) = \
// DEFINE: %clang_cc1 %{CFLAGS} -emit-llvm -o - %s | \
// DEFINE: FileCheck -check-prefix=%{FC_PREFIX} %s
// RUN: %{check}( -foo %, FOO %)
// RUN: %{check}( -bar %, BAR %)
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133172
Files:
llvm/docs/TestingGuide.rst
llvm/utils/lit/lit/TestRunner.py
llvm/utils/lit/tests/Inputs/shtest-define/actual-arg-catastrophic-backtracking.txt
llvm/utils/lit/tests/Inputs/shtest-define/actual-arg-count.txt
llvm/utils/lit/tests/Inputs/shtest-define/actual-arg-special-chars.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/bare-comma.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/bare-rparen.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/between-name-equals.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/between-name-lparen.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/no-comma.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/no-rparen.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/param-list-is-empty-string.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/param-list-is-ws.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/param-name-leading-digit.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/param-name-with-braces.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/param-name-with-dash.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-func-already-diff-param-count.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-func-already-diff-param-name.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-func-already-non-func.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-func-already.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-non-func-already-func.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-func-already-diff-param-count.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-func-already-diff-param-name.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-func-already-non-func.txt
llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-non-func-already-func.txt
llvm/utils/lit/tests/Inputs/shtest-define/examples/function-subst-with-locs.txt
llvm/utils/lit/tests/Inputs/shtest-define/examples/function-subst.txt
llvm/utils/lit/tests/Inputs/shtest-define/examples/param-and-function-subst.txt
llvm/utils/lit/tests/Inputs/shtest-define/examples/param-subst.txt
llvm/utils/lit/tests/Inputs/shtest-define/ws-and-continuations.txt
llvm/utils/lit/tests/shtest-define.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133172.457448.patch
Type: text/x-patch
Size: 59412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220902/0ff308ed/attachment-0001.bin>
More information about the llvm-commits
mailing list