HomeSort by: relevance | last modified time | path
    Searched refs:bld (Results 1 - 25 of 177) sorted by relevancy

1 2 3 4 5 6 7 8

  /xsrc/external/mit/MesaLib/dist/src/amd/compiler/tests/
test_builder.cpp 37 writeout(0, bld.v_mul_imm(bld.def(v1), inputs[0], 0));
40 writeout(1, bld.v_mul_imm(bld.def(v1), inputs[0], 1));
44 writeout(2, bld.v_mul_imm(bld.def(v1), inputs[0], 4));
48 writeout(3, bld.v_mul_imm(bld.def(v1), inputs[0], 2147483648u));
56 writeout(4, bld.v_mul_imm(bld.def(v1), inputs[0], 9))
    [all...]
test_optimizer_postRA.cpp 39 auto &startpgm = bld.instructions->at(0);
51 auto vcmp = bld.vopc(aco_opcode::v_cmp_eq_u32, bld.def(bld.lm, vcc), Operand::zero(),
53 auto sand = bld.sop2(Builder::s_and, bld.def(bld.lm, reg_s0), bld.def(s1, scc), bld.vcc(vcmp), Operand(exec, bld.lm))
    [all...]
test_optimizer.cpp 37 writeout(0, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], neg_b));
44 writeout(1, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), Operand::c32(0x123456u), neg_a));
49 writeout(2, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), neg_neg_a, inputs[1]));
54 writeout(3, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), abs_neg_a, inputs[1]));
60 writeout(4, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), neg_abs_a, inputs[1]))
    [all...]
test_sdwa.cpp 37 SDWA_instruction *sdwa = &bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], inputs[1]).instr->sdwa();
40 sdwa = &bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1b), inputs[0], inputs[1]).instr->sdwa();
42 sdwa = &bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], inputs[1]).instr->sdwa();
60 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], inputs[1]);
75 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[2], inputs[1])
    [all...]
test_regalloc.cpp 47 Builder::Result tmp = bld.pseudo(aco_opcode::p_split_vector, bld.def(v2b), bld.def(v2b), inputs[0]);
52 auto result1 = bld.vop1(aco_opcode::v_cvt_f32_f16, bld.def(v1), tmp.def(1).getTemp());
53 auto result2 = bld.vop1(aco_opcode::v_cvt_f32_f16, bld.def(v1), tmp.def(0).getTemp());
69 Temp hi = bld.pseudo(aco_opcode::p_split_vector, bld.def(v2b), bld.def(v2b), inputs[0]).def(1).getTemp()
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/tests/
comparison_pre_tests.cpp 32 nir_builder_init_simple_shader(&bld, NULL, MESA_SHADER_VERTEX, &options);
34 v1 = nir_imm_vec4(&bld, -2.0, -1.0, 1.0, 2.0);
35 v2 = nir_imm_vec4(&bld, 2.0, 1.0, -1.0, -2.0);
36 v3 = nir_imm_vec4(&bld, 3.0, 4.0, 5.0, 6.0);
41 ralloc_free(bld.shader);
44 struct nir_builder bld; member in class:comparison_pre_test
92 nir_ssa_def *one = nir_imm_float(&bld, 1.0f);
93 nir_ssa_def *a = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0);
95 nir_ssa_def *flt = nir_flt(&bld, a, one)
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/
lp_bld_blend_aos.c 94 lp_build_blend_factor_unswizzled(struct lp_build_blend_aos_context *bld,
98 LLVMValueRef src_alpha = bld->src_alpha ? bld->src_alpha : bld->src;
99 LLVMValueRef src1_alpha = bld->src1_alpha ? bld->src1_alpha : bld->src1;
100 LLVMValueRef const_alpha = bld->const_alpha ? bld->const_alpha : bld->const_
326 struct lp_build_blend_aos_context bld; local
    [all...]
lp_bld_alpha.c 58 struct lp_build_context bld; local
61 lp_build_context_init(&bld, gallivm, type);
77 alpha = lp_build_clamp(&bld, alpha, bld.zero, bld.one);
78 ref = lp_build_clamp(&bld, ref, bld.zero, bld.one);
84 lp_build_context_init(&bld, gallivm, type);
87 test = lp_build_cmp(&bld, func, alpha, ref)
    [all...]
lp_bld_blend.c 108 lp_build_mul_norm_expand(struct lp_build_context *bld,
113 const struct lp_type type = bld->type;
123 if (a == bld->zero || b == bld->zero) {
124 LLVMValueRef zero = LLVMConstNull(lp_build_vec_type(bld->gallivm, wide_type));
135 lp_build_unpack2_native(bld->gallivm, type, wide_type, a, &al, &ah);
136 lp_build_unpack2_native(bld->gallivm, type2, wide_type2, b, &bl, &bh);
138 *resl = lp_build_mul_norm(bld->gallivm, wide_type, al, bl);
139 *resh = lp_build_mul_norm(bld->gallivm, wide_type, ah, bh);
147 lp_build_blend_func(struct lp_build_context *bld,
325 struct lp_build_context bld; local
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/llvmpipe/
lp_bld_blend_aos.c 94 lp_build_blend_factor_unswizzled(struct lp_build_blend_aos_context *bld,
98 LLVMValueRef src_alpha = bld->src_alpha ? bld->src_alpha : bld->src;
99 LLVMValueRef src1_alpha = bld->src1_alpha ? bld->src1_alpha : bld->src1;
100 LLVMValueRef const_alpha = bld->const_alpha ? bld->const_alpha : bld->const_
326 struct lp_build_blend_aos_context bld; local
    [all...]
lp_bld_alpha.c 58 struct lp_build_context bld; local
61 lp_build_context_init(&bld, gallivm, type);
77 alpha = lp_build_clamp(&bld, alpha, bld.zero, bld.one);
78 ref = lp_build_clamp(&bld, ref, bld.zero, bld.one);
84 lp_build_context_init(&bld, gallivm, type);
87 test = lp_build_cmp(&bld, func, alpha, ref)
    [all...]
lp_bld_blend.c 108 lp_build_mul_norm_expand(struct lp_build_context *bld,
113 const struct lp_type type = bld->type;
123 if (a == bld->zero || b == bld->zero) {
124 LLVMValueRef zero = LLVMConstNull(lp_build_vec_type(bld->gallivm, wide_type));
135 lp_build_unpack2_native(bld->gallivm, type, wide_type, a, &al, &ah);
136 lp_build_unpack2_native(bld->gallivm, type2, wide_type2, b, &bl, &bh);
138 *resl = lp_build_mul_norm(bld->gallivm, wide_type, al, bl);
139 *resh = lp_build_mul_norm(bld->gallivm, wide_type, ah, bh);
147 lp_build_blend_func(struct lp_build_context *bld,
325 struct lp_build_context bld; local
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/compiler/nir/tests/
comparison_pre_tests.cpp 34 bld = nir_builder_init_simple_shader(MESA_SHADER_VERTEX, &options,
37 v1 = nir_imm_vec4(&bld, -2.0, -1.0, 1.0, 2.0);
38 v2 = nir_imm_vec4(&bld, 2.0, 1.0, -1.0, -2.0);
39 v3 = nir_imm_vec4(&bld, 3.0, 4.0, 5.0, 6.0);
44 ralloc_free(bld.shader);
48 struct nir_builder bld; member in class:comparison_pre_test
96 nir_ssa_def *one = nir_imm_float(&bld, 1.0f);
97 nir_ssa_def *a = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0);
99 nir_ssa_def *flt = nir_flt(&bld, a, one)
    [all...]
lower_returns_tests.cpp 32 nir_builder bld; member in class:nir_opt_lower_returns_test
42 bld = nir_builder_init_simple_shader(MESA_SHADER_VERTEX, &options, "lower returns test");
44 nir_variable *var = nir_variable_create(bld.shader, nir_var_shader_in, glsl_int_type(), "in");
45 in_def = nir_load_var(&bld, var);
50 ralloc_free(bld.shader);
95 nir_loop *loop = nir_push_loop(&bld);
97 nir_ssa_def *one = nir_imm_int(&bld, 1);
99 nir_ssa_def *cmp_result = nir_ieq(&bld, in_def, one);
100 nir_if *nif = nir_push_if(&bld, cmp_result);
102 nir_jump(&bld, nir_jump_return)
    [all...]
opt_if_tests.cpp 32 nir_builder bld; member in class:nir_opt_if_test
43 bld = nir_builder_init_simple_shader(MESA_SHADER_VERTEX, &options, "if test");
45 nir_variable *var = nir_variable_create(bld.shader, nir_var_shader_in, glsl_int_type(), "in");
46 in_def = nir_load_var(&bld, var);
48 out_var = nir_variable_create(bld.shader, nir_var_shader_out, glsl_int_type(), "out");
53 ralloc_free(bld.shader);
70 nir_ssa_def *one = nir_imm_int(&bld, 1);
72 nir_ssa_def *cmp_result = nir_ieq(&bld, in_def, one);
73 nir_if *nif = nir_push_if(&bld, cmp_result);
75 nir_push_else(&bld, NULL)
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/compiler/nir/
nir_lower_idiv.c 44 convert_instr(nir_builder *bld, nir_op op,
55 af = nir_i2f32(bld, numer);
56 bf = nir_i2f32(bld, denom);
57 af = nir_fabs(bld, af);
58 bf = nir_fabs(bld, bf);
59 a = nir_iabs(bld, numer);
60 b = nir_iabs(bld, denom);
62 af = nir_u2f32(bld, numer);
63 bf = nir_u2f32(bld, denom);
69 bf = nir_frcp(bld, bf)
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/
lp_bld_arit.h 53 lp_build_comp(struct lp_build_context *bld,
57 lp_build_add(struct lp_build_context *bld,
62 lp_build_horizontal_add(struct lp_build_context *bld,
66 lp_build_hadd_partial4(struct lp_build_context *bld,
71 lp_build_sub(struct lp_build_context *bld,
83 lp_build_mul(struct lp_build_context *bld,
88 lp_build_mul_32_lohi_cpu(struct lp_build_context *bld,
94 lp_build_mul_32_lohi(struct lp_build_context *bld,
100 lp_build_mul_imm(struct lp_build_context *bld,
105 lp_build_div(struct lp_build_context *bld,
    [all...]
lp_bld_tgsi_aos.c 75 struct lp_build_tgsi_aos_context *bld = lp_aos_context(bld_base); local
82 swizzles[bld->inv_swizzles[0]] = bld->swizzles[swizzle_x];
83 swizzles[bld->inv_swizzles[1]] = bld->swizzles[swizzle_y];
84 swizzles[bld->inv_swizzles[2]] = bld->swizzles[swizzle_z];
85 swizzles[bld->inv_swizzles[3]] = bld->swizzles[swizzle_w];
87 return lp_build_swizzle_aos(&bld->bld_base.base, a, swizzles)
108 struct lp_build_tgsi_aos_context * bld = lp_aos_context(bld_base); local
179 struct lp_build_tgsi_aos_context * bld = lp_aos_context(bld_base); local
192 struct lp_build_tgsi_aos_context * bld = lp_aos_context(bld_base); local
206 struct lp_build_tgsi_aos_context * bld = lp_aos_context(bld_base); local
868 struct lp_build_tgsi_aos_context bld; local
    [all...]
lp_bld_bitarit.h 48 lp_build_or(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b);
51 lp_build_xor(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b);
54 lp_build_and(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b);
57 lp_build_andnot(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b);
60 lp_build_shl(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b);
63 lp_build_shr(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b);
66 lp_build_shl_imm(struct lp_build_context *bld, LLVMValueRef a, unsigned imm);
69 lp_build_shr_imm(struct lp_build_context *bld, LLVMValueRef a, unsigned imm);
72 lp_build_not(struct lp_build_context *bld, LLVMValueRef a);
75 lp_build_popcount(struct lp_build_context *bld, LLVMValueRef a)
    [all...]
lp_bld_sample_aos.c 78 lp_build_sample_wrap_nearest_int(struct lp_build_sample_context *bld,
90 struct lp_build_context *int_coord_bld = &bld->int_coord_bld;
91 LLVMBuilderRef builder = bld->gallivm->builder;
101 struct lp_build_context *coord_bld = &bld->coord_bld;
139 lp_build_coord_repeat_npot_linear_int(struct lp_build_sample_context *bld,
146 struct lp_build_context *coord_bld = &bld->coord_bld;
147 struct lp_build_context *int_coord_bld = &bld->int_coord_bld;
159 coord_f = lp_build_mul_imm(&bld->coord_bld, coord_f, 256);
166 lp_build_context_init(&abs_coord_bld, bld->gallivm, abs_type);
170 i32_c128 = lp_build_const_int_vec(bld->gallivm, bld->int_coord_type, -128)
    [all...]
lp_bld_bitarit.c 41 lp_build_or(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
43 LLVMBuilderRef builder = bld->gallivm->builder;
44 const struct lp_type type = bld->type;
52 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, "");
53 b = LLVMBuildBitCast(builder, b, bld->int_vec_type, "");
59 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
67 lp_build_xor(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
69 LLVMBuilderRef builder = bld->gallivm->builder;
70 const struct lp_type type = bld->type;
78 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, "")
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/gallivm/
lp_bld_arit.h 52 lp_build_comp(struct lp_build_context *bld,
56 lp_build_add(struct lp_build_context *bld,
61 lp_build_horizontal_add(struct lp_build_context *bld,
65 lp_build_hadd_partial4(struct lp_build_context *bld,
70 lp_build_sub(struct lp_build_context *bld,
82 lp_build_mul(struct lp_build_context *bld,
87 lp_build_mul_32_lohi_cpu(struct lp_build_context *bld,
93 lp_build_mul_32_lohi(struct lp_build_context *bld,
99 lp_build_mul_imm(struct lp_build_context *bld,
104 lp_build_div(struct lp_build_context *bld,
    [all...]
lp_bld_bitarit.h 48 lp_build_or(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b);
51 lp_build_xor(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b);
54 lp_build_and(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b);
57 lp_build_andnot(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b);
60 lp_build_shl(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b);
63 lp_build_shr(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b);
66 lp_build_shl_imm(struct lp_build_context *bld, LLVMValueRef a, unsigned imm);
69 lp_build_shr_imm(struct lp_build_context *bld, LLVMValueRef a, unsigned imm);
72 lp_build_not(struct lp_build_context *bld, LLVMValueRef a);
lp_bld_tgsi_aos.c 75 struct lp_build_tgsi_aos_context *bld = lp_aos_context(bld_base); local
82 swizzles[bld->inv_swizzles[0]] = bld->swizzles[swizzle_x];
83 swizzles[bld->inv_swizzles[1]] = bld->swizzles[swizzle_y];
84 swizzles[bld->inv_swizzles[2]] = bld->swizzles[swizzle_z];
85 swizzles[bld->inv_swizzles[3]] = bld->swizzles[swizzle_w];
87 return lp_build_swizzle_aos(&bld->bld_base.base, a, swizzles)
108 struct lp_build_tgsi_aos_context * bld = lp_aos_context(bld_base); local
179 struct lp_build_tgsi_aos_context * bld = lp_aos_context(bld_base); local
192 struct lp_build_tgsi_aos_context * bld = lp_aos_context(bld_base); local
206 struct lp_build_tgsi_aos_context * bld = lp_aos_context(bld_base); local
868 struct lp_build_tgsi_aos_context bld; local
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
nir_lower_idiv.c 40 convert_instr(nir_builder *bld, nir_alu_instr *alu)
53 bld->cursor = nir_before_instr(&alu->instr);
55 numer = nir_ssa_for_alu_src(bld, alu, 0);
56 denom = nir_ssa_for_alu_src(bld, alu, 1);
59 af = nir_i2f32(bld, numer);
60 bf = nir_i2f32(bld, denom);
61 af = nir_fabs(bld, af);
62 bf = nir_fabs(bld, bf);
63 a = nir_iabs(bld, numer);
64 b = nir_iabs(bld, denom)
    [all...]

Completed in 19 milliseconds

1 2 3 4 5 6 7 8