Home
last modified time | relevance | path

Searched refs:const_val (Results 1 – 25 of 31) sorted by relevance

12

/external/mesa3d/src/compiler/glsl/
Dopt_constant_folding.cpp126 ir_constant *const_val = ir->condition->as_constant(); in visit_enter() local
130 if (const_val) { in visit_enter()
131 if (const_val->value.b[0]) in visit_enter()
152 ir_constant *const_val = ir->condition->as_constant(); in visit_enter() local
156 if (const_val) { in visit_enter()
157 if (const_val->value.b[0]) in visit_enter()
193 ir_constant *const_val = ir->constant_expression_value(ralloc_parent(ir)); in visit_enter() local
195 if (const_val != NULL) { in visit_enter()
197 new(ralloc_parent(ir)) ir_assignment(ir->return_deref, const_val); in visit_enter()
Dlower_distance.cpp246 int const_val = old_index_constant->get_int_component(0) + offset; in create_indices() local
247 array_index = new(ctx) ir_constant(const_val / 4); in create_indices()
248 swizzle_index = new(ctx) ir_constant(const_val % 4); in create_indices()
/external/mesa3d/src/compiler/nir/
Dnir_opt_intrinsics.c135 nir_const_value *const_val = in opt_intrinsics_intrin() local
137 if (!const_val) in opt_intrinsics_intrin()
138 const_val = nir_src_as_const_value(alu->src[1].src); in opt_intrinsics_intrin()
139 if (!const_val || const_val->i32 != 0) in opt_intrinsics_intrin()
Dnir_search.c341 nir_search_constant *const_val = nir_search_value_as_constant(value); in match_value() local
346 switch (const_val->type) { in match_value()
361 if (val != const_val->data.d) in match_value()
375 if ((val & mask) != (const_val->data.u & mask)) in match_value()
Dnir_range_analysis.c1456 nir_ssa_scalar ssa, unsigned const_val, in nir_addition_might_overflow() argument
1475 if (!stride || const_val <= UINT32_MAX - (UINT32_MAX / stride * stride)) in nir_addition_might_overflow()
1488 if (mask == 0 || const_val < (1u << (ffs(mask) - 1))) in nir_addition_might_overflow()
1494 return const_val + ub < const_val; in nir_addition_might_overflow()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/segment/
Dsegment_test.cc378 auto const_val = ops::Const<float>(s, {1.0}, {}); in TEST_F() local
383 auto add_0 = ops::Add(s.WithOpName("add-0"), feed_0, const_val); in TEST_F()
385 auto add_2 = ops::Add(s.WithOpName("add-2"), const_val, feed_1); in TEST_F()
412 auto const_val = ops::Const<float>(s, {1.0}, {}); in TEST_F() local
415 auto add_0 = ops::Add(s.WithOpName("add-0"), feed_0, const_val); in TEST_F()
417 auto add_1 = ops::Add(s.WithOpName("add-1"), reshape, const_val); in TEST_F()
443 auto const_val = ops::Const(s.WithOpName("const-scalar"), 1.0f, {}); in TEST_F() local
444 auto output_0 = ops::Add(s.WithOpName("output-0"), input_0, const_val); in TEST_F()
445 auto output_1 = ops::Add(s.WithOpName("output-1"), input_1, const_val); in TEST_F()
472 auto const_val = ops::Const(s.WithOpName("const-scalar"), 1.0f, {}); in TEST_F() local
[all …]
/external/capstone/bindings/python/capstone/
Dm680x.py75 def const_val(self): member in M680xOp
76 return self.value.const_val
/external/libaom/libaom/av1/common/arm/
Dselfguided_neon.c37 uint32x4_t const_val, uint32x4_t one_by_n_minus_1_vec, in calc_ab_fast_internal_common() argument
79 p0 = vminq_u32(p0, const_val); in calc_ab_fast_internal_common()
80 p1 = vminq_u32(p1, const_val); in calc_ab_fast_internal_common()
81 p2 = vminq_u32(p2, const_val); in calc_ab_fast_internal_common()
82 p3 = vminq_u32(p3, const_val); in calc_ab_fast_internal_common()
123 uint32x4_t const_n_val, uint32x4_t s_vec, uint32x4_t const_val, in calc_ab_internal_common() argument
202 p0 = vminq_u32(p0, const_val); in calc_ab_internal_common()
203 p1 = vminq_u32(p1, const_val); in calc_ab_internal_common()
204 p2 = vminq_u32(p2, const_val); in calc_ab_internal_common()
205 p3 = vminq_u32(p3, const_val); in calc_ab_internal_common()
[all …]
/external/mesa3d/src/freedreno/ir3/
Dir3_nir_lower_io_offsets.c96 nir_const_value *const_val = nir_src_as_const_value(alu_instr->src[1].src); in check_and_propagate_bit_shift32() local
97 if (!const_val) in check_and_propagate_bit_shift32()
100 int32_t current_shift = const_val[0].i32 * direction; in check_and_propagate_bit_shift32()
Dir3_context.c466 create_addr1(struct ir3_block *block, unsigned const_val) in create_addr1() argument
469 struct ir3_instruction *immed = create_immed_typed(block, const_val, TYPE_S16); in create_addr1()
505 ir3_get_addr1(struct ir3_context *ctx, unsigned const_val) in ir3_get_addr1() argument
512 addr = _mesa_hash_table_u64_search(ctx->addr1_ht, const_val); in ir3_get_addr1()
517 addr = create_addr1(ctx->block, const_val); in ir3_get_addr1()
518 _mesa_hash_table_u64_insert(ctx->addr1_ht, const_val, addr); in ir3_get_addr1()
Dir3_parser.y489 %type <unum> const_val
512 const_val: T_FLOAT { $$ = fui($1); }
517 localsize_header: T_A_LOCALSIZE const_val ',' const_val ',' const_val {
523 const_header: T_A_CONST '(' T_CONSTANT ')' const_val ',' const_val ',' const_val ',' const_val
527 buf_header: T_A_BUF const_val {
Dir3_context.h198 unsigned const_val);
/external/deqp-deps/SPIRV-Tools/source/opt/
Dconstants.h455 size_t operator()(const Constant* const_val) const { in operator()
457 add_pointer(&h, const_val->type()); in operator()
458 if (const auto scalar = const_val->AsScalarConstant()) { in operator()
462 } else if (const auto composite = const_val->AsCompositeConstant()) { in operator()
466 } else if (const_val->AsNullConstant()) { in operator()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dconstants.h455 size_t operator()(const Constant* const_val) const { in operator()
457 add_pointer(&h, const_val->type()); in operator()
458 if (const auto scalar = const_val->AsScalarConstant()) { in operator()
462 } else if (const auto composite = const_val->AsCompositeConstant()) { in operator()
466 } else if (const_val->AsNullConstant()) { in operator()
/external/libpcap/
Doptimize.c226 bpf_u_int32 const_val; member
753 opt_state->vmap[val].const_val = v0; in F()
785 a = opt_state->vmap[v0].const_val; in fold_op()
786 b = opt_state->vmap[v1].const_val; in fold_op()
1056 b->s.k += opt_state->vmap[val].const_val; in opt_peep()
1134 bpf_u_int32 v = opt_state->vmap[val].const_val; in opt_peep()
1144 bpf_u_int32 v = opt_state->vmap[val].const_val; in opt_peep()
1207 s->k += opt_state->vmap[v].const_val; in opt_stmt()
1259 s->k = 0U - opt_state->vmap[val[A_ATOM]].const_val; in opt_stmt()
1335 s->k = opt_state->vmap[val[X_ATOM]].const_val; in opt_stmt()
[all …]
/external/capstone/bindings/java/capstone/
DM680x.java58 public byte const_val; field in M680x.OpValue
/external/capstone/cstool/
Dcstool_m680x.c83 op->const_val); in print_insn_detail_m680x()
/external/capstone/suite/cstest/src/
Dm680x_detail.c76 add_str(&result, " ; operands[%u].type: CONSTANT = %u", i, op->const_val); in get_detail_m680x()
/external/capstone/bindings/python/
Dtest_m680x.py74 print("\t\toperands[%u].type: CONSTANT = %u" % (c, i.const_val))
/external/tensorflow/tensorflow/python/training/
Dserver_lib_test.py125 const_val = np.empty([10000, 3000], dtype=np.float32)
126 const_val.fill(0.5)
127 c = constant_op.constant(const_val)
/external/capstone/arch/M680X/
DM680XInstPrinter.c162 SStream_concat(O, "%u", op->const_val); in printOperand()
/external/capstone/bindings/ocaml/
Dtest_m680x.ml104 | M680X_OP_CONSTANT const_val ->
105 printf "\t\toperands[%d].type: CONSTANT = %d\n" i const_val;
/external/capstone/tests/
Dtest_m680x.c109 op->const_val); in print_insn_detail()
/external/capstone/include/capstone/
Dm680x.h123 uint8_t const_val; ///< constant value (bit index, page nr.) member
/external/capstone/bindings/java/
DTestM680x.java82 System.out.printf("\t\toperands[%d].type: CONSTANT = %d\n", c, i.value.const_val); in print_ins_detail()

12