diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2019-01-04 17:20:00 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2019-01-04 17:20:00 +0000 |
| commit | 9bdf515c744fcc29df8f941a2bed4b82e1d4aa56 (patch) | |
| tree | 3765dc8a260bdb14a3a1761a79e79b26047d663d /clang/test/Parser/pragma-loop.cpp | |
| parent | 022e29b959e3943527472db96fa7650f3c202b63 (diff) | |
| download | bcm5719-llvm-9bdf515c744fcc29df8f941a2bed4b82e1d4aa56.tar.gz bcm5719-llvm-9bdf515c744fcc29df8f941a2bed4b82e1d4aa56.zip | |
Add two new pragmas for controlling software pipelining optimizations.
This patch adds #pragma clang loop pipeline and #pragma clang loop pipeline_initiation_interval for debugging or reducing compile time purposes. It is possible to disable SWP for concrete loops to save compilation time or to find bugs by not doing SWP to certain loops. It is possible to set value of initiation interval to concrete number to save compilation time by not doing extra pipeliner passes or to check created schedule for specific initiation interval.
Patch by Alexey Lapshin.
llvm-svn: 350414
Diffstat (limited to 'clang/test/Parser/pragma-loop.cpp')
| -rw-r--r-- | clang/test/Parser/pragma-loop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/pragma-loop.cpp b/clang/test/Parser/pragma-loop.cpp index 3db0fc45968..be765170f85 100644 --- a/clang/test/Parser/pragma-loop.cpp +++ b/clang/test/Parser/pragma-loop.cpp @@ -147,7 +147,7 @@ void test(int *List, int Length) { /* expected-error {{missing argument; expected 'enable', 'full' or 'disable'}} */ #pragma clang loop unroll() /* expected-error {{missing argument; expected 'enable' or 'disable'}} */ #pragma clang loop distribute() -/* expected-error {{missing option; expected vectorize, vectorize_width, interleave, interleave_count, unroll, unroll_count, or distribute}} */ #pragma clang loop +/* expected-error {{missing option; expected vectorize, vectorize_width, interleave, interleave_count, unroll, unroll_count, pipeline, pipeline_initiation_interval, or distribute}} */ #pragma clang loop /* expected-error {{invalid option 'badkeyword'}} */ #pragma clang loop badkeyword /* expected-error {{invalid option 'badkeyword'}} */ #pragma clang loop badkeyword(enable) /* expected-error {{invalid option 'badkeyword'}} */ #pragma clang loop vectorize(enable) badkeyword(4) |

