summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/pragma-loop-predicate.cpp
diff options
context:
space:
mode:
authorSimon Tatham <simon.tatham@arm.com>2019-10-10 08:25:34 +0000
committerSimon Tatham <simon.tatham@arm.com>2019-10-10 08:25:34 +0000
commit109c773ab50c8f4d2ba51d309d5f5bfe82a1e5eb (patch)
tree720ecf87d95aea4690c365eca0bd078fab2f6ad3 /clang/test/CodeGenCXX/pragma-loop-predicate.cpp
parent59c6df9b2c52807d16123e6cef64d5d937b4e697 (diff)
downloadbcm5719-llvm-109c773ab50c8f4d2ba51d309d5f5bfe82a1e5eb.tar.gz
bcm5719-llvm-109c773ab50c8f4d2ba51d309d5f5bfe82a1e5eb.zip
[update_cc_test_checks] Support 'clang | opt | FileCheck'
Some clang lit tests use a pipeline of the form // RUN: %clang [args] -O0 %s | opt [specific optimizations] | FileCheck %s to make the expected test output depend on as few optimization phases as possible, for stability. But when you write a RUN line of this form, you lose the ability to use update_cc_test_checks.py to automatically generate the expected output, because it only supports two-stage pipelines consisting of '%clang | FileCheck' (or %clang_cc1). This change extends the set of supported RUN lines so that pipelines with an invocation of `opt` in the middle can still be automatically handled. To implement it, I've adjusted `get_function_body()` so that it can cope with an arbitrary sequence of intermediate pipeline commands. But the code that decides which RUN lines to consider is more conservative: it only adds clang | opt | FileCheck to the set of supported lines, because I didn't want to accidentally include some other kind of line that doesn't output IR at all. (Also in this commit is the minimal change to make this script work at all, after r373912 added an extra parameter to `add_ir_checks`.) Reviewers: MaskRay, xbolva00 Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68406 llvm-svn: 374287
Diffstat (limited to 'clang/test/CodeGenCXX/pragma-loop-predicate.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud