Home
last modified time | relevance | path

Searched refs:shuffles (Results 1 – 25 of 41) sorted by relevance

12

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_swizzle.c185 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_swizzle_scalar_aos() local
189 shuffles[j + i] = LLVMConstInt(elem_type, j + channel, 0); in lp_build_swizzle_scalar_aos()
191 return LLVMBuildShuffleVector(builder, a, bld->undef, LLVMConstVector(shuffles, n), ""); in lp_build_swizzle_scalar_aos()
294 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_swizzle_aos() local
311 shuffles[j + i] = LLVMConstInt(i32t, shuffle, 0); in lp_build_swizzle_aos()
315 shuffles[j + i] = LLVMConstInt(i32t, shuffle, 0); in lp_build_swizzle_aos()
322 shuffles[j + i] = LLVMConstInt(i32t, shuffle, 0); in lp_build_swizzle_aos()
328 shuffles[j + i] = LLVMGetUndef(i32t); in lp_build_swizzle_aos()
342 LLVMConstVector(shuffles, n), ""); in lp_build_swizzle_aos()
570 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_pack_aos_scalars() local
[all …]
Dlp_bld_sample.c1127 LLVMValueRef shuffles[4]; in lp_build_cube_lookup() local
1134 shuffles[0] = lp_build_const_int32(gallivm, 0); in lp_build_cube_lookup()
1135 shuffles[1] = lp_build_const_int32(gallivm, 1); in lp_build_cube_lookup()
1136 shuffles[2] = lp_build_const_int32(gallivm, 0); in lp_build_cube_lookup()
1137 shuffles[3] = lp_build_const_int32(gallivm, 1); in lp_build_cube_lookup()
1138 arxyxy = LLVMBuildShuffleVector(builder, arxyz, arxyz, LLVMConstVector(shuffles, 4), ""); in lp_build_cube_lookup()
1139 shuffles[0] = lp_build_const_int32(gallivm, 1); in lp_build_cube_lookup()
1140 shuffles[1] = lp_build_const_int32(gallivm, 0); in lp_build_cube_lookup()
1141 shuffles[2] = lp_build_const_int32(gallivm, 2); in lp_build_cube_lookup()
1142 shuffles[3] = lp_build_const_int32(gallivm, 2); in lp_build_cube_lookup()
[all …]
Dlp_bld_arit.c428 LLVMValueRef shuffles[4]; in lp_build_horizontal_add4x4f() local
433 shuffles[0] = lp_build_const_int32(gallivm, 0); in lp_build_horizontal_add4x4f()
434 shuffles[1] = lp_build_const_int32(gallivm, 1); in lp_build_horizontal_add4x4f()
435 shuffles[2] = lp_build_const_int32(gallivm, 4); in lp_build_horizontal_add4x4f()
436 shuffles[3] = lp_build_const_int32(gallivm, 5); in lp_build_horizontal_add4x4f()
438 LLVMConstVector(shuffles, 4), ""); in lp_build_horizontal_add4x4f()
440 LLVMConstVector(shuffles, 4), ""); in lp_build_horizontal_add4x4f()
443 shuffles[0] = lp_build_const_int32(gallivm, 2); in lp_build_horizontal_add4x4f()
444 shuffles[1] = lp_build_const_int32(gallivm, 3); in lp_build_horizontal_add4x4f()
445 shuffles[2] = lp_build_const_int32(gallivm, 6); in lp_build_horizontal_add4x4f()
[all …]
Dlp_bld_pack.c189 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_concat() local
191 assert(src_type.length * num_vectors <= Elements(shuffles)); in lp_build_concat()
203 shuffles[i] = lp_build_const_int32(gallivm, i); in lp_build_concat()
207 LLVMConstVector(shuffles, new_length), ""); in lp_build_concat()
Dlp_bld_logic.c595 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_select_aos() local
599 shuffles[j + i] = LLVMConstInt(elem_type, in lp_build_select_aos()
603 return LLVMBuildShuffleVector(builder, a, b, LLVMConstVector(shuffles, n), ""); in lp_build_select_aos()
Dlp_bld_tgsi_soa.c1234 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in emit_tex() local
1247 shuffles[4*quad + 0] = lp_build_const_int32(gallivm, s1); in emit_tex()
1248 shuffles[4*quad + 1] = lp_build_const_int32(gallivm, s2); in emit_tex()
1249 shuffles[4*quad + 2] = i32undef; in emit_tex()
1250 shuffles[4*quad + 3] = i32undef; in emit_tex()
1253 LLVMConstVector(shuffles, length), ""); in emit_tex()
1262 shuffles[4*quad + 0] = lp_build_const_int32(gallivm, s1); in emit_tex()
1263 shuffles[4*quad + 1] = lp_build_const_int32(gallivm, s1 + 1); in emit_tex()
1264 shuffles[4*quad + 2] = lp_build_const_int32(gallivm, s2); in emit_tex()
1265 shuffles[4*quad + 3] = lp_build_const_int32(gallivm, s2 + 1); in emit_tex()
[all …]
Dlp_bld_tgsi_aos.c153 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in emit_fetch_constant() local
157 shuffles[chan] = lp_build_const_int32(bld->bld_base.base.gallivm, chan); in emit_fetch_constant()
161 shuffles[i] = shuffles[i % 4]; in emit_fetch_constant()
166 LLVMConstVector(shuffles, type.length), in emit_fetch_constant()
Dlp_bld_sample_aos.c1474 LLVMValueRef shuffles[8], shuffle; in lp_build_sample_mipmap() local
1475 assert(h16_bld.type.length <= Elements(shuffles)); in lp_build_sample_mipmap()
1477 shuffles[i] = lp_build_const_int32(bld->gallivm, 2 * (i & 1)); in lp_build_sample_mipmap()
1478 shuffle = LLVMConstVector(shuffles, h16_bld.type.length); in lp_build_sample_mipmap()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_setup.c252 LLVMValueRef shuffles[4]; in lp_do_offset_tri() local
260 shuffles[0] = twoi; in lp_do_offset_tri()
261 shuffles[1] = zeroi; in lp_do_offset_tri()
262 shuffles[2] = onei; in lp_do_offset_tri()
263 shuffles[3] = twoi; in lp_do_offset_tri()
264 dzxyz20 = LLVMBuildShuffleVector(b, dxyz20, dxyz20, LLVMConstVector(shuffles, 4), ""); in lp_do_offset_tri()
266 shuffles[0] = onei; in lp_do_offset_tri()
267 shuffles[1] = twoi; in lp_do_offset_tri()
268 shuffles[2] = twoi; in lp_do_offset_tri()
269 shuffles[3] = zeroi; in lp_do_offset_tri()
[all …]
Dlp_bld_depth.c474 LLVMValueRef shuffles[16]; in lp_build_occlusion_count() local
480 shuffles[i] = lp_build_const_int32(gallivm, 4*i); in lp_build_occlusion_count()
483 shufflev = LLVMConstVector(shuffles, type.length); in lp_build_occlusion_count()
/external/llvm/utils/
Dshuffle_fuzz.py114 for i, shuffles in enumerate(shuffle_tree):
116 for j, s in enumerate(shuffles):
125 for shuffles in shuffle_tree:
129 for i, s in enumerate(shuffles)]
160 for i, shuffles in enumerate(shuffle_tree):
161 for j, s in enumerate(shuffles):
/external/llvm/test/CodeGen/X86/
Dshuffle-combine-crash.ll4 ; safe to fold the shuffles in function @sample_test according to rule
7 ; The DAGCombiner avoids folding shuffles if
Dsplat-const.ll5 ; doesn't use redundant shuffles. (fixes PR22276)
Dsse1.ll11 ; This should not emit shuffles to populate the top 2 elements of the 4-element
Davx-cast.ll59 ; vzeroupper before the return, so just check for the absence of shuffles.
/external/webp/src/dsp/
Denc_neon.c858 uint8x8x4_t shuffles; in QuantizeBlock() local
865 INIT_VECTOR4(shuffles, in QuantizeBlock()
877 INIT_VECTOR4(shuffles, in QuantizeBlock()
884 vst1_u8((uint8_t*)(out + 0), shuffles.val[0]); in QuantizeBlock()
885 vst1_u8((uint8_t*)(out + 4), shuffles.val[1]); in QuantizeBlock()
886 vst1_u8((uint8_t*)(out + 8), shuffles.val[2]); in QuantizeBlock()
887 vst1_u8((uint8_t*)(out + 12), shuffles.val[3]); in QuantizeBlock()
/external/llvm/test/Transforms/InstCombine/
Dvec_shuffle.ll77 ; Test fold of two shuffles where the first shuffle vectors inputs are a
89 ; mask values of 2*N, where N is the mask length. These shuffles should not
101 ; Test fold of two shuffles where the first shuffle vectors inputs are a
122 ; Test fold of two shuffles where the two shufflevector inputs's op1 are
134 ; Test fold of two shuffles where the first shufflevector's inputs are
145 ; Test fold of two shuffles where the first shufflevector's inputs are
249 ; If composition of two shuffles is identity, shuffles can be removed.
367 ; Do not reorder shuffle and binop if LHS of shuffles are of different size
Dx86-pshufb.ll3 ; Verify that instcombine is able to fold identity shuffles.
22 ; Verify that instcombine is able to fold byte shuffles with zero masks.
64 ; Each of the byte shuffles in the following tests is equivalent to a blend between
180 ; Vector permutations using byte shuffles.
/external/opencv3/modules/imgproc/src/
Dshapedescr.cpp97 int shuffles[4][4] = { {0, 1, 2, 3}, {0, 1, 3, 2}, {2, 3, 0, 1}, {2, 3, 1, 0} }; in findEnslosingCicle4pts_32f() local
151 if( findCircle( pts[shuffles[i][0]], pts[shuffles[i][1]], in findEnslosingCicle4pts_32f()
152 pts[shuffles[i][2]], &center, &radius ) ) in findEnslosingCicle4pts_32f()
158 if( pointInCircle( pts[shuffles[i][3]], center, radius ) >= 0 && in findEnslosingCicle4pts_32f()
174 idxs[i] = shuffles[mi][i]; in findEnslosingCicle4pts_32f()
/external/llvm/test/CodeGen/ARM/
Dvector-DAGCombine.ll145 ; Test that we are generating vrev and vext for reverse shuffles of v8i16
146 ; shuffles.
158 ; Test that we are generating vrev and vext for reverse shuffles of v16i8
159 ; shuffles.
/external/llvm/test/CodeGen/SystemZ/
Dvec-perm-13.ll1 ; Test vector shuffles on vectors with implicitly extended elements
/external/opencv/cv/src/
Dcvshapedescr.cpp177 int shuffles[4][4] = { {0, 1, 2, 3}, {0, 1, 3, 2}, {2, 3, 0, 1}, {2, 3, 1, 0} }; in icvFindEnslosingCicle4pts_32f() local
232 if( icvFindCircle( pts[shuffles[i][0]], pts[shuffles[i][1]], in icvFindEnslosingCicle4pts_32f()
233 pts[shuffles[i][2]], &center, &radius ) >= 0 ) in icvFindEnslosingCicle4pts_32f()
239 if( icvIsPtInCircle( pts[shuffles[i][3]], center, radius ) >= 0 && in icvFindEnslosingCicle4pts_32f()
255 idxs[i] = shuffles[mi][i]; in icvFindEnslosingCicle4pts_32f()
/external/llvm/test/Analysis/CostModel/X86/
Dalternate-shuffle-cost.ll8 ; Verify the cost model for alternate shuffles.
59 ; Test shuffles on packed vectors of two elements.
107 ; Test shuffles on packed vectors of four elements.
204 ; Test shuffles on packed vectors of eight elements.
277 ; Test shuffles on packed vectors of sixteen elements.
/external/llvm/test/Analysis/CostModel/ARM/
Dshuffle.ll9 ;; Reverse shuffles should be lowered to vrev and possibly a vext (for
/external/llvm/lib/Target/X86/
DX86Schedule.td73 defm WriteFShuffle : X86SchedWritePair; // Floating point vector shuffles.
84 defm WriteShuffle : X86SchedWritePair; // Vector shuffles.
120 defm WriteFShuffle256 : X86SchedWritePair; // Fp 256-bit width vector shuffles.
121 defm WriteShuffle256 : X86SchedWritePair; // 256-bit width vector shuffles.

12