Searched refs:vec_type (Results 1 - 25 of 53) sorted by relevance

123

/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
H A Dlp_bld_type.c121 lp_check_vec_type(struct lp_type type, LLVMTypeRef vec_type) argument
125 assert(vec_type);
126 if(!vec_type)
130 return lp_check_elem_type(type, vec_type);
132 if(LLVMGetTypeKind(vec_type) != LLVMVectorTypeKind)
135 if(LLVMGetVectorSize(vec_type) != type.length)
138 elem_type = LLVMGetElementType(vec_type);
147 LLVMTypeRef vec_type; local
153 vec_type = LLVMTypeOf(val);
155 return lp_check_vec_type(type, vec_type);
[all...]
H A Dlp_bld_logic.c120 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); local
164 vec_type,
190 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); local
229 res = lp_build_intrinsic(builder, pcmpeq, vec_type, args, 2);
231 res = lp_build_intrinsic(builder, pcmpgt, vec_type, args, 2);
233 res = LLVMConstNull(vec_type);
426 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
427 res = LLVMBuildBitCast(builder, res, vec_type, "");
530 if (arg_type != bld->vec_type) {
542 if (arg_type != bld->vec_type) {
[all...]
H A Dlp_bld_arit.c1098 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1112 a = LLVMBuildBitCast(builder, a, vec_type, "");
1119 return lp_build_intrinsic_unary(builder, "llvm.x86.ssse3.pabs.b.128", vec_type, a);
1121 return lp_build_intrinsic_unary(builder, "llvm.x86.ssse3.pabs.w.128", vec_type, a);
1123 return lp_build_intrinsic_unary(builder, "llvm.x86.ssse3.pabs.d.128", vec_type, a);
1174 LLVMTypeRef vec_type; local
1182 vec_type = lp_build_vec_type(bld->gallivm, type);
1190 res = LLVMBuildBitCast(builder, res, vec_type, "");
1222 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1240 res = LLVMBuildBitCast(builder, res, vec_type, "");
1255 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1305 LLVMTypeRef vec_type; local
1395 LLVMTypeRef vec_type; local
1448 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1478 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1506 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1534 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1637 LLVMTypeRef vec_type = bld->vec_type; local
1685 LLVMTypeRef vec_type = bld->vec_type; local
1741 LLVMTypeRef vec_type = bld->vec_type; local
1840 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
2610 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
2788 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
[all...]
H A Dlp_bld_bitarit.c59 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
85 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
113 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
143 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
164 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
H A Dlp_bld_const.c227 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); local
228 return LLVMGetUndef(vec_type);
242 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); local
243 return LLVMConstNull(vec_type);
272 LLVMTypeRef vec_type = LLVMVectorType(elem_type, type.length); local
273 LLVMValueRef vec = LLVMConstAllOnes(vec_type);
H A Dlp_bld_gather.c156 LLVMTypeRef vec_type = LLVMVectorType(LLVMTypeOf(values[0]), value_count); local
158 LLVMValueRef vec = LLVMGetUndef(vec_type);
H A Dlp_bld_swizzle.h52 LLVMTypeRef vec_type,
H A Dlp_bld_swizzle.c48 LLVMTypeRef vec_type,
53 if (LLVMGetTypeKind(vec_type) != LLVMVectorTypeKind) {
55 assert(vec_type == LLVMTypeOf(scalar));
59 const unsigned length = LLVMGetVectorSize(vec_type);
60 LLVMValueRef undef = LLVMGetUndef(vec_type);
63 assert(LLVMGetElementType(vec_type) == LLVMTypeOf(scalar));
94 return lp_build_broadcast(bld->gallivm, bld->vec_type, scalar);
47 lp_build_broadcast(struct gallivm_state *gallivm, LLVMTypeRef vec_type, LLVMValueRef scalar) argument
H A Dlp_bld_tgsi_soa.c647 res = LLVMConstBitCast(res, bld_base->uint_bld.vec_type);
649 res = LLVMConstBitCast(res, bld_base->int_bld.vec_type);
712 res = LLVMBuildBitCast(builder, res, bld_base->uint_bld.vec_type, "");
714 res = LLVMBuildBitCast(builder, res, bld_base->int_bld.vec_type, "");
767 LLVMTypeRef itype = LLVMPointerType(bld->bld_base.int_bld.vec_type, 0);
817 res = LLVMBuildBitCast(builder, res, bld_base->base.vec_type, "");
819 res = LLVMBuildBitCast(builder, res, bld_base->uint_bld.vec_type, "");
821 res = LLVMBuildBitCast(builder, res, bld_base->int_bld.vec_type, "");
1072 LLVMTypeRef itype = bld_base->int_bld.vec_type;
1550 LLVMTypeRef vec_type local
2003 LLVMTypeRef vec_type = bld_base->base.vec_type; local
[all...]
H A Dlp_bld_type.h149 LLVMTypeRef vec_type; member in struct:lp_build_context
321 lp_check_vec_type(struct lp_type type, LLVMTypeRef vec_type);
/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_type.c121 lp_check_vec_type(struct lp_type type, LLVMTypeRef vec_type) argument
125 assert(vec_type);
126 if(!vec_type)
130 return lp_check_elem_type(type, vec_type);
132 if(LLVMGetTypeKind(vec_type) != LLVMVectorTypeKind)
135 if(LLVMGetVectorSize(vec_type) != type.length)
138 elem_type = LLVMGetElementType(vec_type);
147 LLVMTypeRef vec_type; local
153 vec_type = LLVMTypeOf(val);
155 return lp_check_vec_type(type, vec_type);
[all...]
H A Dlp_bld_logic.c120 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); local
164 vec_type,
190 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); local
229 res = lp_build_intrinsic(builder, pcmpeq, vec_type, args, 2);
231 res = lp_build_intrinsic(builder, pcmpgt, vec_type, args, 2);
233 res = LLVMConstNull(vec_type);
426 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
427 res = LLVMBuildBitCast(builder, res, vec_type, "");
530 if (arg_type != bld->vec_type) {
542 if (arg_type != bld->vec_type) {
[all...]
H A Dlp_bld_arit.c1098 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1112 a = LLVMBuildBitCast(builder, a, vec_type, "");
1119 return lp_build_intrinsic_unary(builder, "llvm.x86.ssse3.pabs.b.128", vec_type, a);
1121 return lp_build_intrinsic_unary(builder, "llvm.x86.ssse3.pabs.w.128", vec_type, a);
1123 return lp_build_intrinsic_unary(builder, "llvm.x86.ssse3.pabs.d.128", vec_type, a);
1174 LLVMTypeRef vec_type; local
1182 vec_type = lp_build_vec_type(bld->gallivm, type);
1190 res = LLVMBuildBitCast(builder, res, vec_type, "");
1222 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1240 res = LLVMBuildBitCast(builder, res, vec_type, "");
1255 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1305 LLVMTypeRef vec_type; local
1395 LLVMTypeRef vec_type; local
1448 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1478 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1506 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1534 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
1637 LLVMTypeRef vec_type = bld->vec_type; local
1685 LLVMTypeRef vec_type = bld->vec_type; local
1741 LLVMTypeRef vec_type = bld->vec_type; local
1840 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
2610 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
2788 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local
[all...]
H A Dlp_bld_bitarit.c59 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
85 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
113 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
143 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
164 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
H A Dlp_bld_const.c227 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); local
228 return LLVMGetUndef(vec_type);
242 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); local
243 return LLVMConstNull(vec_type);
272 LLVMTypeRef vec_type = LLVMVectorType(elem_type, type.length); local
273 LLVMValueRef vec = LLVMConstAllOnes(vec_type);
H A Dlp_bld_gather.c156 LLVMTypeRef vec_type = LLVMVectorType(LLVMTypeOf(values[0]), value_count); local
158 LLVMValueRef vec = LLVMGetUndef(vec_type);
H A Dlp_bld_swizzle.h52 LLVMTypeRef vec_type,
H A Dlp_bld_swizzle.c48 LLVMTypeRef vec_type,
53 if (LLVMGetTypeKind(vec_type) != LLVMVectorTypeKind) {
55 assert(vec_type == LLVMTypeOf(scalar));
59 const unsigned length = LLVMGetVectorSize(vec_type);
60 LLVMValueRef undef = LLVMGetUndef(vec_type);
63 assert(LLVMGetElementType(vec_type) == LLVMTypeOf(scalar));
94 return lp_build_broadcast(bld->gallivm, bld->vec_type, scalar);
47 lp_build_broadcast(struct gallivm_state *gallivm, LLVMTypeRef vec_type, LLVMValueRef scalar) argument
H A Dlp_bld_tgsi_soa.c647 res = LLVMConstBitCast(res, bld_base->uint_bld.vec_type);
649 res = LLVMConstBitCast(res, bld_base->int_bld.vec_type);
712 res = LLVMBuildBitCast(builder, res, bld_base->uint_bld.vec_type, "");
714 res = LLVMBuildBitCast(builder, res, bld_base->int_bld.vec_type, "");
767 LLVMTypeRef itype = LLVMPointerType(bld->bld_base.int_bld.vec_type, 0);
817 res = LLVMBuildBitCast(builder, res, bld_base->base.vec_type, "");
819 res = LLVMBuildBitCast(builder, res, bld_base->uint_bld.vec_type, "");
821 res = LLVMBuildBitCast(builder, res, bld_base->int_bld.vec_type, "");
1072 LLVMTypeRef itype = bld_base->int_bld.vec_type;
1550 LLVMTypeRef vec_type local
2003 LLVMTypeRef vec_type = bld_base->base.vec_type; local
[all...]
/external/chromium_org/third_party/mesa/src/src/glsl/
H A Dlower_instructions.cpp161 const struct glsl_type *vec_type; local
163 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT,
168 op1 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[1], NULL);
170 op1 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[1], NULL);
174 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT,
179 op0 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[0], NULL);
181 op0 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[0], NULL);
183 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT,
187 op0 = new(ir) ir_expression(ir_binop_mul, vec_type, op0, op1);
H A Dglsl_types.cpp697 const struct glsl_type *vec_type, *array_type; local
702 vec_type = get_instance(GLSL_TYPE_FLOAT, c, 1);
703 array_type = glsl_type::get_array_instance(vec_type, r);
705 vec_type = get_instance(GLSL_TYPE_FLOAT, r, 1);
706 array_type = glsl_type::get_array_instance(vec_type, c);
782 const struct glsl_type *vec_type; local
794 vec_type = get_instance(GLSL_TYPE_FLOAT,
798 vec_type = get_instance(GLSL_TYPE_FLOAT,
802 const glsl_type *array_type = glsl_type::get_array_instance(vec_type,
/external/mesa3d/src/glsl/
H A Dlower_instructions.cpp161 const struct glsl_type *vec_type; local
163 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT,
168 op1 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[1], NULL);
170 op1 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[1], NULL);
174 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT,
179 op0 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[0], NULL);
181 op0 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[0], NULL);
183 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT,
187 op0 = new(ir) ir_expression(ir_binop_mul, vec_type, op0, op1);
H A Dglsl_types.cpp697 const struct glsl_type *vec_type, *array_type; local
702 vec_type = get_instance(GLSL_TYPE_FLOAT, c, 1);
703 array_type = glsl_type::get_array_instance(vec_type, r);
705 vec_type = get_instance(GLSL_TYPE_FLOAT, r, 1);
706 array_type = glsl_type::get_array_instance(vec_type, c);
782 const struct glsl_type *vec_type; local
794 vec_type = get_instance(GLSL_TYPE_FLOAT,
798 vec_type = get_instance(GLSL_TYPE_FLOAT,
802 const glsl_type *array_type = glsl_type::get_array_instance(vec_type,
/external/chromium_org/third_party/mesa/src/src/glsl/builtins/tools/
H A Dtexture_builtins.py11 def vec_type(g, size): function
64 return_type = vec_type("i", get_txs_dim(sampler_type))
73 print "\n (declare (in) " + vec_type("i" if tex_inst == "txf" else "", coord_dim + extra_dim) + " P)",
79 grad_type = vec_type("", sampler_dim)
84 print "\n (declare (const_in) " + vec_type("i", sampler_dim) + " offset)",
/external/mesa3d/src/glsl/builtins/tools/
H A Dtexture_builtins.py11 def vec_type(g, size): function
64 return_type = vec_type("i", get_txs_dim(sampler_type))
73 print "\n (declare (in) " + vec_type("i" if tex_inst == "txf" else "", coord_dim + extra_dim) + " P)",
79 grad_type = vec_type("", sampler_dim)
84 print "\n (declare (const_in) " + vec_type("i", sampler_dim) + " offset)",

Completed in 3336 milliseconds

123