/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/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.
|
D | full-unroll-heuristics-phi-prop.ll | 1 …t < %s -S -loop-unroll -unroll-max-iteration-count-to-analyze=100 -unroll-dynamic-cost-savings-dis…
|
D | unroll-count.ll | 1 ; RUN: opt < %s -S -loop-unroll -unroll-count=2 | FileCheck %s 2 ; Checks that "llvm.loop.unroll.disable" is set when 3 ; unroll with count set by user has been applied. 6 ; CHECK: llvm.loop.unroll.disable
|
D | tripcount-overflow.ll | 1 ; RUN: opt < %s -S -unroll-runtime -unroll-count=2 -loop-unroll | FileCheck %s -check-prefix=EPILOG 2 ; RUN: opt < %s -S -unroll-runtime -unroll-count=2 -loop-unroll -unroll-runtime-epilog=false | File…
|
D | runtime-loop1.ll | 1 ; RUN: opt < %s -S -loop-unroll -unroll-runtime -unroll-count=2 | FileCheck %s -check-prefix=EPILOG 2 ; RUN: opt < %s -S -loop-unroll -unroll-runtime -unroll-count=2 -unroll-runtime-epilog=false | File… 4 ; This tests that setting the unroll count works
|
D | full-unroll-heuristics-2.ll | 1 …%s -S -loop-unroll -unroll-max-iteration-count-to-analyze=1000 -unroll-threshold=10 -unroll-perce… 8 ; it as a constant, so we shouldn't unroll the loop. 34 ; shouldn't unroll the loop. 61 ; clean up almost entire loop. Make sure that we do not unroll such loop.
|
D | full-unroll-heuristics-dce.ll | 1 …t < %s -S -loop-unroll -unroll-max-iteration-count-to-analyze=100 -unroll-dynamic-cost-savings-dis…
|
D | unroll-pragmas.ll | 1 ; RUN: opt < %s -loop-unroll -pragma-unroll-threshold=1024 -S | FileCheck %s 2 ; RUN: opt < %s -loop-unroll -loop-unroll -pragma-unroll-threshold=1024 -S | FileCheck %s 12 ; unroll(disable) pragma test loop4_with_disable. 34 ; #pragma clang loop unroll(disable) 58 !2 = !{!"llvm.loop.unroll.disable"} 62 ; unroll(full) pragma test loop64_with_.* tests below. 86 ; #pragma clang loop unroll(full) 109 !4 = !{!"llvm.loop.unroll.full"} 111 ; #pragma clang loop unroll(full) 162 !6 = !{!"llvm.loop.unroll.count", i32 4} [all …]
|
D | runtime-loop.ll | 1 ; RUN: opt < %s -S -loop-unroll -unroll-runtime=true | FileCheck %s -check-prefix=EPILOG 2 ; RUN: opt < %s -S -loop-unroll -unroll-runtime=true -unroll-runtime-epilog=false | FileCheck %s -c… 51 ; Still try to completely unroll loops with compile-time trip counts 52 ; even if the -unroll-runtime is specified 80 ; if the -unroll-runtime option is turned on 171 !1 = !{!"llvm.loop.unroll.runtime.disable"} 174 ; EPILOG: !1 = !{!"llvm.loop.unroll.disable"} 177 ; PROLOG: !1 = !{!"llvm.loop.unroll.disable"}
|
D | runtime-loop4.ll | 1 ; RUN: opt < %s -S -O2 -unroll-runtime=true | FileCheck %s -check-prefix=EPILOG 2 ; RUN: opt < %s -S -O2 -unroll-runtime=true -unroll-runtime-epilog=false | FileCheck %s -check-pref… 20 define void @unroll(i32 %iter, i32* %addr1, i32* %addr2) nounwind {
|
D | unroll-opt-attribute.ll | 1 ; RUN: opt < %s -S -loop-unroll -unroll-count=4 | FileCheck -check-prefix=CHECK_COUNT4 %s 2 ; RUN: opt < %s -S -loop-unroll | FileCheck -check-prefix=CHECK_NOCOUNT %s 8 ; unroll factor. 36 ; even if an unroll factor was specified.
|
/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()
|
/external/eigen/Eigen/src/Core/ |
D | BooleanRedux.h | 85 unroll = SizeAtCompileTime != Dynamic 89 if(unroll) 90 …return internal::all_unroller<Evaluator, unroll ? int(SizeAtCompileTime) : Dynamic>::run(evaluator… 109 unroll = SizeAtCompileTime != Dynamic 113 if(unroll) 114 …return internal::any_unroller<Evaluator, unroll ? int(SizeAtCompileTime) : Dynamic>::run(evaluator…
|
/external/clang/test/PCH/ |
D | pragma-loop.cpp | 44 #pragma clang loop unroll(disable) in run2() 56 #pragma clang loop unroll(full) in run3() 66 #pragma unroll in run4() 75 #pragma unroll 32 in run5()
|
/external/llvm/test/Transforms/LoopVectorize/X86/ |
D | metadata-enable.ll | 1 ; RUN: opt < %s -mcpu=corei7 -O1 -S -unroll-allow-partial=0 | FileCheck %s --check-prefix=O1 2 ; RUN: opt < %s -mcpu=corei7 -O2 -S -unroll-allow-partial=0 | FileCheck %s --check-prefix=O2 3 ; RUN: opt < %s -mcpu=corei7 -O3 -S -unroll-allow-partial=0 | FileCheck %s --check-prefix=O3 4 ; RUN: opt < %s -mcpu=corei7 -Os -S -unroll-allow-partial=0 | FileCheck %s --check-prefix=Os 5 ; RUN: opt < %s -mcpu=corei7 -Oz -S -unroll-allow-partial=0 | FileCheck %s --check-prefix=Oz 6 ; RUN: opt < %s -mcpu=corei7 -O1 -vectorize-loops -S -unroll-allow-partial=0 | FileCheck %s --check… 7 ; RUN: opt < %s -mcpu=corei7 -Oz -vectorize-loops -S -unroll-allow-partial=0 | FileCheck %s --check… 8 ; RUN: opt < %s -mcpu=corei7 -O1 -loop-vectorize -S -unroll-allow-partial=0 | FileCheck %s --check-… 9 ; RUN: opt < %s -mcpu=corei7 -Oz -loop-vectorize -S -unroll-allow-partial=0 | FileCheck %s --check-… 10 ; RUN: opt < %s -mcpu=corei7 -O3 -disable-loop-vectorization -S -unroll-allow-partial=0 | FileCheck…
|
D | already-vectorized.ll | 42 ; CHECK: [[vect]] = distinct !{[[vect]], [[width:![0-9]+]], [[unroll:![0-9]+]]} 44 ; CHECK: [[unroll]] = !{!"llvm.loop.interleave.count", i32 1} 45 ; CHECK: [[scalar]] = distinct !{[[scalar]], [[runtime_unroll:![0-9]+]], [[width]], [[unroll]]} 46 ; CHECK: [[runtime_unroll]] = !{!"llvm.loop.unroll.runtime.disable"}
|