diff options
author | Stephen McGroarty <stephen@codeplay.com> | 2018-02-27 11:50:08 +0000 |
---|---|---|
committer | Stephen McGroarty <stephen@codeplay.com> | 2018-02-27 11:50:08 +0000 |
commit | e354984b09624c7fa2200e40555c98ca1a8fa5c6 (patch) | |
tree | 03afb5fe651b5f753bac79d45e3fc5edc8e2e5d4 /include | |
parent | 94af58a350b46f85422699e27ccbf22bf453149f (diff) | |
download | spirv-tools-e354984b09624c7fa2200e40555c98ca1a8fa5c6.tar.gz |
Unroller support for multiple induction variables
Support for multiple induction variables within a loop and support for
loop condition operands <= and >=.
Diffstat (limited to 'include')
-rw-r--r-- | include/spirv-tools/optimizer.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/spirv-tools/optimizer.hpp b/include/spirv-tools/optimizer.hpp index 9f3b3601..adb014af 100644 --- a/include/spirv-tools/optimizer.hpp +++ b/include/spirv-tools/optimizer.hpp @@ -513,12 +513,12 @@ Optimizer::PassToken CreateReplaceInvalidOpcodePass(); Optimizer::PassToken CreateSimplificationPass(); // Create loop unroller pass. -// Creates a pass to fully unroll loops which have the "Unroll" loop control +// Creates a pass to unroll loops which have the "Unroll" loop control // mask set. The loops must meet a specific criteria in order to be unrolled // safely this criteria is checked before doing the unroll by the // LoopUtils::CanPerformUnroll method. Any loop that does not meet the criteria // won't be unrolled. See CanPerformUnroll LoopUtils.h for more information. -Optimizer::PassToken CreateLoopFullyUnrollPass(); +Optimizer::PassToken CreateLoopUnrollPass(bool fully_unroll, int factor = 0); } // namespace spvtools |