/external/clang/test/Parser/ |
D | pragma-unroll.cpp | 9 #pragma unroll in test() 19 #pragma unroll 4 in test() 24 #pragma unroll(8) in test() 29 /* expected-error {{expected ')'}} */ #pragma unroll(4 in test() 30 /* expected-error {{missing argument; expected an integer value}} */ #pragma unroll() in test() 31 /* expected-warning {{extra tokens at end of '#pragma unroll'}} */ #pragma unroll 1 2 in test() 41 /* expected-error {{expected ')'}} */ #pragma unroll(() in test() 42 /* expected-error {{expected expression}} */ #pragma unroll - in test() 43 /* expected-error {{invalid value '0'; must be positive}} */ #pragma unroll(0) in test() 44 /* expected-error {{invalid value '0'; must be positive}} */ #pragma unroll 0 in test() [all …]
|
D | pragma-loop.cpp | 84 #pragma clang loop unroll(full) in test() 98 #pragma clang loop unroll(disable) in test() 114 #pragma clang loop vectorize(disable) interleave(disable) unroll(disable) in test() 133 /* expected-error {{expected '('}} */ #pragma clang loop unroll in test() 138 /* expected-error {{expected ')'}} */ #pragma clang loop unroll(full in test() 147 …d-error {{missing argument; expected 'enable', 'full' or 'disable'}} */ #pragma clang loop unroll() in test() 202 …alid argument; expected 'enable', 'full' or 'disable'}} */ #pragma clang loop unroll(badidentifier) in test() 212 …-error {{invalid argument; expected 'enable', 'full' or 'disable'}} */ #pragma clang loop unroll(=) in test() 239 #pragma clang loop unroll(disable) in test() 248 …or {{duplicate directives 'unroll(disable)' and 'unroll(full)'}} */ #pragma clang loop unroll(full) in test() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LoopUnroll/ |
D | full-unroll-heuristics.ll | 3 ; 1) -unroll-threshold 4 ; 3) -unroll-percent-dynamic-cost-saved-threshold and 5 ; 2) -unroll-dynamic-cost-savings-discount 8 ; * If size of unrolled loop exceeds the absoulte threshold, we don't unroll 10 ; * If size of unrolled loop is below the '-unroll-threshold', then we'll 11 ; consider this loop as a very small one, and completely unroll it. 12 ; * If a loop size is between these two tresholds, we only do complete unroll 20 ; RUN: opt < %s -S -loop-unroll -unroll-max-iteration-count-to-analyze=1000 -unroll-threshold=10 -u… 21 ; RUN: opt < %s -S -loop-unroll -unroll-max-iteration-count-to-analyze=1000 -unroll-threshold=20 -u… 22 ; RUN: opt < %s -S -loop-unroll -unroll-max-iteration-count-to-analyze=1000 -unroll-threshold=20 -u… [all …]
|
D | partial-unroll-const-bounds.ll | 1 …t < %s -S -unroll-partial-threshold=20 -unroll-threshold=20 -loop-unroll -unroll-allow-partial -un… 2 …remark-emit>,unroll' -unroll-partial-threshold=20 -unroll-threshold=20 -unroll-allow-partial -unro… 5 …mit>,loop(unroll-full)' -unroll-partial-threshold=20 -unroll-threshold=20 -unroll-allow-partial -u… 7 ; The Loop TripCount is 9. However unroll factors 3 or 9 exceed given threshold. 8 ; The test checks that we choose a smaller, power-of-two, unroll count and do not give up on unroll…
|
D | runtime-loop2.ll | 1 …UN: opt < %s -S -loop-unroll -unroll-threshold=25 -unroll-partial-threshold=25 -unroll-runtime -un… 2 ; RUN: opt < %s -S -loop-unroll -unroll-threshold=25 -unroll-partial-threshold=25 -unroll-runtime -… 4 …ire<opt-remark-emit>,unroll' -unroll-threshold=25 -unroll-partial-threshold=25 -unroll-runtime -un… 5 …S -passes='require<opt-remark-emit>,unroll' -unroll-threshold=25 -unroll-partial-threshold=25 -unr… 7 ; Choose a smaller, power-of-two, unroll count if the loop is too large.
|
D | runtime-loop5.ll | 1 ; RUN: opt < %s -S -loop-unroll -unroll-runtime=true -unroll-count=16 | FileCheck --check-prefix=UN… 2 ; RUN: opt < %s -S -loop-unroll -unroll-runtime=true -unroll-count=4 | FileCheck --check-prefix=UNR… 4 ; RUN: opt < %s -S -passes='require<opt-remark-emit>,unroll' -unroll-runtime=true -unroll-count=16 … 5 ; RUN: opt < %s -S -passes='require<opt-remark-emit>,unroll' -unroll-runtime=true -unroll-count=4 |… 8 ; safely unroll it with a count of anything more than 8.
|
D | runtime-loop1.ll | 1 ; RUN: opt < %s -S -loop-unroll -unroll-runtime -unroll-count=2 -unroll-runtime-epilog=true | FileC… 2 ; RUN: opt < %s -S -loop-unroll -unroll-runtime -unroll-count=2 -unroll-runtime-epilog=false | File… 4 ; RUN: opt < %s -S -passes='require<opt-remark-emit>,unroll' -unroll-runtime -unroll-count=2 -unrol… 5 ; RUN: opt < %s -S -passes='require<opt-remark-emit>,unroll' -unroll-runtime -unroll-count=2 -unrol… 7 ; This tests that setting the unroll count works
|
D | loop-remarks.ll | 1 ; RUN: opt < %s -S -loop-unroll -pass-remarks=loop-unroll -unroll-count=16 2>&1 | FileCheck -check-… 2 ; RUN: opt < %s -S -loop-unroll -pass-remarks=loop-unroll -unroll-count=4 2>&1 | FileCheck -check-p… 3 ; RUN: opt < %s -S -loop-unroll -pass-remarks=loop-unroll -unroll-count=4 -unroll-runtime=true -unr…
|
D | full-unroll-heuristics-phi-prop.ll | 1 ; RUN: opt < %s -S -loop-unroll -unroll-max-iteration-count-to-analyze=100 -unroll-threshold=10 -un… 2 …es='require<opt-remark-emit>,loop(unroll-full)' -unroll-max-iteration-count-to-analyze=100 -unroll…
|
D | full-unroll-heuristics-geps.ll | 1 ; RUN: opt < %s -S -loop-unroll -unroll-max-iteration-count-to-analyze=100 -unroll-threshold=10 -un… 2 …es='require<opt-remark-emit>,loop(unroll-full)' -unroll-max-iteration-count-to-analyze=100 -unroll… 7 ; our estimate, so that we might decide to unroll even a simple memcpy loop.
|
D | convergent.ll | 1 ; RUN: opt < %s -loop-unroll -unroll-runtime -unroll-allow-partial -S | FileCheck %s 29 ; unrolled. The unroll count is the largest power of 2 that divides the 54 ; This loop contains a convergent instruction, so its partial unroll 55 ; count must divide its trip multiple. This overrides its unroll 56 ; pragma -- we unroll exactly 8 times, even though 16 is requested. 83 ; This loop contains a convergent instruction. Since the pragma loop unroll 84 ; count 2 divides trip count 4. The loop unroll should respect the pragma. 104 ; This loop contains a convergent instruction. Since the pragma loop unroll 105 ; count 2 divides trip multiple 2. The loop unroll should respect the pragma. 126 ; This loop contains a convergent instruction. Since the pragma loop unroll [all …]
|
D | unroll-pragmas-disabled.ll | 1 ; RUN: opt < %s -loop-unroll -S | FileCheck %s 3 ; Verify that the unrolling pass removes existing unroll count metadata 11 ; Unroll count metadata should be replaced with unroll(disable). Vectorize 35 !3 = !{!"llvm.loop.unroll.count", i32 4} 38 ; #pragma clang loop unroll(full) 40 ; An unroll disable metadata node is only added for the unroll count case. 41 ; In this case, the loop has a full unroll metadata but can't be fully unrolled 42 ; because the trip count is dynamic. The full unroll metadata should remain 67 !6 = !{!"llvm.loop.unroll.full"} 69 ; #pragma clang loop unroll(disable) [all …]
|
D | full-unroll-heuristics-dce.ll | 1 ; RUN: opt < %s -S -loop-unroll -unroll-max-iteration-count-to-analyze=100 -unroll-threshold=12 -un… 2 …es='require<opt-remark-emit>,loop(unroll-full)' -unroll-max-iteration-count-to-analyze=100 -unroll…
|
D | runtime-loop3.ll | 2 ; RUN: opt < %s -disable-output -stats -loop-unroll -unroll-runtime -unroll-partial-threshold=200 -… 3 …tput -stats -passes='require<opt-remark-emit>,unroll' -unroll-runtime -unroll-partial-threshold=20… 7 ; STATS: 2 loop-unroll - Number of loops unrolled (completely or otherwise)
|
D | tripcount-overflow.ll | 1 ; RUN: opt < %s -S -unroll-runtime -unroll-count=2 -loop-unroll -unroll-runtime-epilog=true | File… 2 ; RUN: opt < %s -S -unroll-runtime -unroll-count=2 -loop-unroll -unroll-runtime-epilog=false | File…
|
D | loop-remarks-with-hotness.ll | 1 ; RUN: opt < %s -S -loop-unroll -pass-remarks=loop-unroll -pass-remarks-with-hotness -unroll-count=… 2 ; RUN: opt < %s -S -loop-unroll -pass-remarks=loop-unroll -pass-remarks-with-hotness -unroll-count=…
|
/external/llvm/test/Transforms/LoopUnroll/ |
D | full-unroll-heuristics.ll | 3 ; 1) -unroll-threshold 4 ; 3) -unroll-percent-dynamic-cost-saved-threshold and 5 ; 2) -unroll-dynamic-cost-savings-discount 8 ; * If size of unrolled loop exceeds the absoulte threshold, we don't unroll 10 ; * If size of unrolled loop is below the '-unroll-threshold', then we'll 11 ; consider this loop as a very small one, and completely unroll it. 12 ; * If a loop size is between these two tresholds, we only do complete unroll 20 …%s -S -loop-unroll -unroll-max-iteration-count-to-analyze=1000 -unroll-threshold=10 -unroll-perce… 21 …%s -S -loop-unroll -unroll-max-iteration-count-to-analyze=1000 -unroll-threshold=10 -unroll-perce… 22 …%s -S -loop-unroll -unroll-max-iteration-count-to-analyze=1000 -unroll-threshold=10 -unroll-perce… [all …]
|
D | partial-unroll-const-bounds.ll | 1 ; RUN: opt < %s -S -unroll-threshold=20 -loop-unroll -unroll-allow-partial -unroll-runtime -unroll-… 3 ; The Loop TripCount is 9. However unroll factors 3 or 9 exceed given threshold. 4 ; The test checks that we choose a smaller, power-of-two, unroll count and do not give up on unroll…
|
D | runtime-loop2.ll | 1 ; RUN: opt < %s -S -loop-unroll -unroll-threshold=25 -unroll-runtime -unroll-count=8 | FileCheck %s… 2 ; RUN: opt < %s -S -loop-unroll -unroll-threshold=25 -unroll-runtime -unroll-runtime-epilog=false |… 4 ; Choose a smaller, power-of-two, unroll count if the loop is too large.
|
D | unroll-pragmas-disabled.ll | 1 ; RUN: opt < %s -loop-unroll -S | FileCheck %s 3 ; Verify that the unrolling pass removes existing unroll count metadata 11 ; Unroll count metadata should be replaced with unroll(disable). Vectorize 35 !3 = !{!"llvm.loop.unroll.count", i32 4} 38 ; #pragma clang loop unroll(full) 40 ; An unroll disable metadata node is only added for the unroll count case. 41 ; In this case, the loop has a full unroll metadata but can't be fully unrolled 42 ; because the trip count is dynamic. The full unroll metadata should remain 67 !6 = !{!"llvm.loop.unroll.full"} 69 ; #pragma clang loop unroll(disable) [all …]
|
D | loop-remarks.ll | 1 ; RUN: opt < %s -S -loop-unroll -pass-remarks=loop-unroll -unroll-count=16 2>&1 | FileCheck -check-… 2 ; RUN: opt < %s -S -loop-unroll -pass-remarks=loop-unroll -unroll-count=4 2>&1 | FileCheck -check-p…
|
D | convergent.ll | 1 ; RUN: opt < %s -loop-unroll -unroll-runtime -unroll-allow-partial -S | FileCheck %s 29 ; unrolled. The unroll count is the largest power of 2 that divides the 54 ; This loop contains a convergent instruction, so its partial unroll 55 ; count must divide its trip multiple. This overrides its unroll 56 ; pragma -- we unroll exactly 8 times, even though 16 is requested. 83 !0 = !{!0, !{!"llvm.loop.unroll.count", i32 16}}
|
D | runtime-loop5.ll | 1 ; RUN: opt < %s -S -loop-unroll -unroll-runtime=true -unroll-count=16 | FileCheck --check-prefix=UN… 2 ; RUN: opt < %s -S -loop-unroll -unroll-runtime=true -unroll-count=4 | FileCheck --check-prefix=UNR… 5 ; safely unroll it with a count of anything more than 8.
|
D | full-unroll-heuristics-geps.ll | 1 …t < %s -S -loop-unroll -unroll-max-iteration-count-to-analyze=100 -unroll-dynamic-cost-savings-dis… 6 ; our estimate, so that we might decide to unroll even a simple memcpy loop.
|
/external/clang/test/CodeGenCXX/ |
D | pragma-unroll.cpp | 8 #pragma unroll in while_test() 32 #pragma unroll 8 in for_test() 44 #pragma unroll(4) in for_range_test() 56 #pragma unroll(UNROLLCOUNT) in for_define_test() 67 #pragma unroll 8 in for_template_test() 79 #pragma unroll(UNROLLCOUNT) in for_template_define_test()
|