Home
last modified time | relevance | path

Searched refs:const_value (Results 1 – 25 of 32) sorted by relevance

12

/external/libtextclassifier/native/utils/grammar/testing/
Dutils.h137 ConstValueExpressionT const_value; in CreateConstExpression() local
138 const_value.base_type = reflection::BaseType::Obj; in CreateConstExpression()
139 const_value.type = TypeIdForName(semantic_values_schema_.get(), in CreateConstExpression()
143 const_value.value.assign(value_buffer.begin(), value_buffer.end()); in CreateConstExpression()
145 semantic_expression->expression.Set(const_value); in CreateConstExpression()
151 ConstValueExpressionT const_value; in CreateAndPackConstExpression() local
152 const_value.base_type = reflection::BaseType::Obj; in CreateAndPackConstExpression()
153 const_value.type = TypeIdForName(semantic_values_schema_.get(), in CreateAndPackConstExpression()
157 const_value.value.assign(value_buffer.begin(), value_buffer.end()); in CreateAndPackConstExpression()
158 return CreateExpression(const_value); in CreateAndPackConstExpression()
[all …]
/external/libtextclassifier/native/utils/grammar/semantics/
Dcomposer_test.cc55 ConstValueExpressionT const_value; in TEST_F() local
56 const_value.base_type = reflection::BaseType::Obj; in TEST_F()
57 const_value.type = test_value_type; in TEST_F()
58 const_value.value.assign(serialized_value.begin(), serialized_value.end()); in TEST_F()
60 model.semantic_expression.back()->expression.Set(const_value); in TEST_F()
69 ConstValueExpressionT const_value; in TEST_F() local
70 const_value.base_type = reflection::BaseType::Obj; in TEST_F()
71 const_value.type = test_value_type; in TEST_F()
72 const_value.value.assign(serialized_value.begin(), serialized_value.end()); in TEST_F()
74 model.semantic_expression.back()->expression.Set(const_value); in TEST_F()
[all …]
/external/llvm-project/clang/test/SemaCXX/
Dbuiltin-align-cxx.cpp137 constexpr long const_value(long l) { return l; } in const_value() function
139 static_assert(wrap_align_down(1, const_value(-1)), ""); // expected-error{{not an integral constant…
141 static_assert(wrap_align_up(1, const_value(-2)), ""); // expected-error{{not an integral constant e…
143 static_assert(wrap_is_aligned(1, const_value(-3)), ""); // expected-error{{not an integral constant…
145 static_assert(wrap_align_down(1, const_value(17)), ""); // expected-error{{not an integral constant…
147 static_assert(wrap_align_up(1, const_value(18)), ""); // expected-error{{not an integral constant e…
149 static_assert(wrap_is_aligned(1, const_value(19)), ""); // expected-error{{not an integral constant…
153 static_assert(wrap_align_down(static_cast<short>(1), const_value(1 << 20)), ""); // expected-error{…
156 static_assert(wrap_align_up(static_cast<int>(1), const_value(1ull << 33)), ""); // expected-error{{…
158 static_assert(wrap_is_aligned(static_cast<char>(1), const_value(1 << 22)), ""); // expected-error{{…
[all …]
/external/elfutils/tests/
Drun-readelf-const-values.sh92 const_value (implicit_const) -1
98 const_value (implicit_const) -1
130 const_value (sdata) -2
136 const_value (sdata) 254 (-2)
142 const_value (sdata) -16
148 const_value (sdata) 65520 (-16)
154 const_value (sdata) -3
160 const_value (sdata) 4200000000 (-94967296)
166 const_value (sdata) -1
172 const_value (sdata) 18446744073709551615 (-1)
Drun-readelf-zdebug-rel.sh93 const_value (sdata) 18446744073709551607 (-9)
198 const_value (sdata) 18446744073709551607 (-9)
/external/tensorflow/tensorflow/python/data/experimental/ops/
Ddistribute.py442 const_value = tensor_util.constant_value(global_batch_size)
443 if const_value is not None:
445 global_batch_size = const_value
457 if const_value is not None:
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_optimize.c723 float const_value; in peephole_mul_omod() local
778 const_value = rc_get_constant_value(c, in peephole_mul_omod()
784 if (const_value == 2.0f) { in peephole_mul_omod()
786 } else if (const_value == 4.0f) { in peephole_mul_omod()
788 } else if (const_value == 8.0f) { in peephole_mul_omod()
790 } else if (const_value == (1.0f / 2.0f)) { in peephole_mul_omod()
792 } else if (const_value == (1.0f / 4.0f)) { in peephole_mul_omod()
794 } else if (const_value == (1.0f / 8.0f)) { in peephole_mul_omod()
Dradeon_emulate_loops.c43 struct const_value { struct
92 struct const_value * value = data; in update_const_value()
195 struct const_value counter_value; in try_unroll_loop()
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_getitem.py463 const_value = tensor_util.constant_value(value)
464 if const_value is None:
467 value = const_value
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dwhile_loop_outline.cc128 auto const_value = const_builder.clone(*extern_value.getDefiningOp()); in OutlineWhile() local
129 replaceAllUsesInRegionWith(extern_value, const_value->getResult(0), in OutlineWhile()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dfold_spec_constant_op_and_composite_pass.cpp83 if (auto const_value = in Process() local
91 context()->get_constant_mgr()->MapConstantToInst(const_value, inst); in Process()
Dconstants.h624 void MapConstantToInst(const Constant* const_value, Instruction* inst) { in MapConstantToInst() argument
625 if (id_to_const_val_.insert({inst->result_id(), const_value}).second) { in MapConstantToInst()
626 const_val_to_id_.insert({const_value, inst->result_id()}); in MapConstantToInst()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dfold_spec_constant_op_and_composite_pass.cpp83 if (auto const_value = in Process() local
91 context()->get_constant_mgr()->MapConstantToInst(const_value, inst); in Process()
Dconstants.h624 void MapConstantToInst(const Constant* const_value, Instruction* inst) { in MapConstantToInst() argument
625 if (id_to_const_val_.insert({inst->result_id(), const_value}).second) { in MapConstantToInst()
626 const_val_to_id_.insert({const_value, inst->result_id()}); in MapConstantToInst()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/
Dfold_spec_constant_op_and_composite_pass.cpp83 if (auto const_value = in Process() local
91 context()->get_constant_mgr()->MapConstantToInst(const_value, inst); in Process()
Dconstants.h633 void MapConstantToInst(const Constant* const_value, Instruction* inst) { in MapConstantToInst() argument
634 if (id_to_const_val_.insert({inst->result_id(), const_value}).second) { in MapConstantToInst()
635 const_val_to_id_.insert({const_value, inst->result_id()}); in MapConstantToInst()
/external/llvm-project/lldb/include/lldb/Expression/
DDWARFExpression.h118 void UpdateValue(uint64_t const_value, lldb::offset_t const_value_byte_size,
/external/llvm-project/lldb/source/Expression/
DDWARFExpression.cpp76 void DWARFExpression::UpdateValue(uint64_t const_value, in UpdateValue() argument
83 DataBufferSP(new DataBufferHeap(&const_value, const_value_byte_size))); in UpdateValue()
539 lldb::addr_t const_value = 0; in LinkThreadLocalStorage() local
550 const_value = m_data.GetU32(&offset); in LinkThreadLocalStorage()
559 const_value = m_data.GetU64(&offset); in LinkThreadLocalStorage()
577 lldb::addr_t linked_file_addr = link_address_callback(const_value); in LinkThreadLocalStorage()
589 const_value = 0; in LinkThreadLocalStorage()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dregion_control_flow_to_functional.cc91 auto const_value = const_builder.clone(*extern_value.getDefiningOp()); in CollectExternValues() local
92 replaceAllUsesInRegionWith(extern_value, const_value->getResult(0), in CollectExternValues()
/external/tensorflow/tensorflow/python/keras/layers/legacy_rnn/
Drnn_cell_wrapper_impl.py120 const_value = tensor_util.constant_value(tensor_value)
121 return (tensor_value, const_value)
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dir2_nir.c227 nir_const_value *const_value = nir_src_as_const_value(src); in make_src() local
229 if (const_value) { in make_src()
232 nir_const_value_to_array(c, const_value, src.ssa->num_components, f32); in make_src()
/external/mesa3d/src/broadcom/compiler/
Dvir.c1040 nir_const_value *const_value = in v3d_intrinsic_dependency_cb() local
1043 if (const_value == NULL) in v3d_intrinsic_dependency_cb()
1047 nir_const_value_as_uint(*const_value, in v3d_intrinsic_dependency_cb()
/external/tensorflow/tensorflow/python/kernel_tests/
Dconstant_op_test.py159 const_value = const.op.get_attr("value")
162 self.assertProtoEquals(variant_tensor, const_value)
/external/python/pycparser/tests/
Dtest_c_parser.py1791 def assert_case_node(node, const_value): argument
1794 self.assertEqual(node.expr.value, const_value)
/external/libabigail/src/
Dabg-dwarf-reader.cc1600 const_value(int64_t& value) in const_value() function in abigail::dwarf_reader::expr_result
1617 const_value() const in const_value() function in abigail::dwarf_reader::expr_result
1624 {return const_value();} in operator int64_t()
1752 r.const_value_ = std::abs(static_cast<long double>(r.const_value())); in abs()
1770 return r.const_value() / o.const_value(); in operator /()
8324 index += val1.const_value() - 1; in op_is_control_flow()

12