Home
last modified time | relevance | path

Searched refs:component_type (Results 1 – 25 of 106) sorted by relevance

12345

/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dtransformation_composite_construct.cpp166 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForArrayConstructionAreOK() local
167 assert(component_type); in ComponentsForArrayConstructionAreOK()
168 if (component_type != array_type.element_type()) { in ComponentsForArrayConstructionAreOK()
193 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForMatrixConstructionAreOK() local
194 assert(component_type); in ComponentsForMatrixConstructionAreOK()
195 if (component_type != matrix_type.element_type()) { in ComponentsForMatrixConstructionAreOK()
222 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForStructConstructionAreOK() local
223 assert(component_type); in ComponentsForStructConstructionAreOK()
224 if (component_type != struct_type.element_types()[field_index]) { in ComponentsForStructConstructionAreOK()
244 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForVectorConstructionAreOK() local
[all …]
Dtransformation_add_type_vector.cpp38 auto component_type = in IsApplicable() local
40 if (!component_type) { in IsApplicable()
43 return component_type->AsBool() || component_type->AsFloat() || in IsApplicable()
44 component_type->AsInteger(); in IsApplicable()
49 const auto* component_type = in Apply() local
51 (void)component_type; // Make compiler happy in release mode. in Apply()
52 assert(component_type && in Apply()
53 (component_type->AsInteger() || component_type->AsFloat() || in Apply()
54 component_type->AsBool()) && in Apply()
Dfuzzer_pass_interchange_signedness_of_integer_operands.cpp107 !constant->AsVectorConstant()->component_type()->AsInteger())) { in FindOrCreateToggledIntegerConstant()
122 auto component_type = in FindOrCreateToggledIntegerConstant() local
123 constant->AsVectorConstant()->component_type()->AsInteger(); in FindOrCreateToggledIntegerConstant()
127 component_type->width(), !component_type->IsSigned()); in FindOrCreateToggledIntegerConstant()
137 uint32_t width = component_type->width(); in FindOrCreateToggledIntegerConstant()
138 bool is_signed = !component_type->IsSigned(); in FindOrCreateToggledIntegerConstant()
Dfuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp60 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply()
171 constant->AsVectorConstant()->component_type()->AsInteger() && in Apply()
186 constant->AsVectorConstant()->component_type()->AsInteger()->width(); in Apply()
188 ->component_type() in Apply()
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_composite_construct.cpp166 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForArrayConstructionAreOK() local
167 assert(component_type); in ComponentsForArrayConstructionAreOK()
168 if (component_type != array_type.element_type()) { in ComponentsForArrayConstructionAreOK()
193 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForMatrixConstructionAreOK() local
194 assert(component_type); in ComponentsForMatrixConstructionAreOK()
195 if (component_type != matrix_type.element_type()) { in ComponentsForMatrixConstructionAreOK()
222 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForStructConstructionAreOK() local
223 assert(component_type); in ComponentsForStructConstructionAreOK()
224 if (component_type != struct_type.element_types()[field_index]) { in ComponentsForStructConstructionAreOK()
244 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForVectorConstructionAreOK() local
[all …]
Dtransformation_add_type_vector.cpp38 auto component_type = in IsApplicable() local
40 if (!component_type) { in IsApplicable()
43 return component_type->AsBool() || component_type->AsFloat() || in IsApplicable()
44 component_type->AsInteger(); in IsApplicable()
49 const auto* component_type = in Apply() local
51 (void)component_type; // Make compiler happy in release mode. in Apply()
52 assert(component_type && in Apply()
53 (component_type->AsInteger() || component_type->AsFloat() || in Apply()
54 component_type->AsBool()) && in Apply()
Dfuzzer_pass_interchange_signedness_of_integer_operands.cpp107 !constant->AsVectorConstant()->component_type()->AsInteger())) { in FindOrCreateToggledIntegerConstant()
122 auto component_type = in FindOrCreateToggledIntegerConstant() local
123 constant->AsVectorConstant()->component_type()->AsInteger(); in FindOrCreateToggledIntegerConstant()
127 component_type->width(), !component_type->IsSigned()); in FindOrCreateToggledIntegerConstant()
137 uint32_t width = component_type->width(); in FindOrCreateToggledIntegerConstant()
138 bool is_signed = !component_type->IsSigned(); in FindOrCreateToggledIntegerConstant()
Dfuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp60 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply()
171 constant->AsVectorConstant()->component_type()->AsInteger() && in Apply()
186 constant->AsVectorConstant()->component_type()->AsInteger()->width(); in Apply()
188 ->component_type() in Apply()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/
Dtransformation_composite_construct.cpp166 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForArrayConstructionAreOK() local
167 assert(component_type); in ComponentsForArrayConstructionAreOK()
168 if (component_type != array_type.element_type()) { in ComponentsForArrayConstructionAreOK()
193 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForMatrixConstructionAreOK() local
194 assert(component_type); in ComponentsForMatrixConstructionAreOK()
195 if (component_type != matrix_type.element_type()) { in ComponentsForMatrixConstructionAreOK()
222 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForStructConstructionAreOK() local
223 assert(component_type); in ComponentsForStructConstructionAreOK()
224 if (component_type != struct_type.element_types()[field_index]) { in ComponentsForStructConstructionAreOK()
244 auto component_type = ir_context->get_type_mgr()->GetType(inst->type_id()); in ComponentsForVectorConstructionAreOK() local
[all …]
Dtransformation_add_type_vector.cpp38 auto component_type = in IsApplicable() local
40 if (!component_type) { in IsApplicable()
43 return component_type->AsBool() || component_type->AsFloat() || in IsApplicable()
44 component_type->AsInteger(); in IsApplicable()
49 const auto* component_type = in Apply() local
51 (void)component_type; // Make compiler happy in release mode. in Apply()
52 assert(component_type && in Apply()
53 (component_type->AsInteger() || component_type->AsFloat() || in Apply()
54 component_type->AsBool()) && in Apply()
Dfuzzer_pass_interchange_signedness_of_integer_operands.cpp107 !constant->AsVectorConstant()->component_type()->AsInteger())) { in FindOrCreateToggledIntegerConstant()
122 auto component_type = in FindOrCreateToggledIntegerConstant() local
123 constant->AsVectorConstant()->component_type()->AsInteger(); in FindOrCreateToggledIntegerConstant()
127 component_type->width(), !component_type->IsSigned()); in FindOrCreateToggledIntegerConstant()
137 uint32_t width = component_type->width(); in FindOrCreateToggledIntegerConstant()
138 bool is_signed = !component_type->IsSigned(); in FindOrCreateToggledIntegerConstant()
Dfuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp60 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply()
171 constant->AsVectorConstant()->component_type()->AsInteger() && in Apply()
186 constant->AsVectorConstant()->component_type()->AsInteger()->width(); in Apply()
188 ->component_type() in Apply()
/external/angle/src/libANGLE/renderer/
Dangle_format.py179 component_type, bits, channels = get_format_info(format_id)
199 elif component_type == 'uint' and bits['R'] == 8:
201 elif component_type == 'unorm' and bits['R'] == 8:
203 elif component_type == 'unorm' and bits['R'] == 16:
205 elif component_type == 'int' and bits['R'] == 8:
207 elif component_type == 'snorm' and bits['R'] == 8:
209 elif component_type == 'snorm' and bits['R'] == 16:
211 elif component_type == 'float' and bits['R'] == 16:
213 elif component_type == 'uint' and bits['R'] == 16:
215 elif component_type == 'int' and bits['R'] == 16:
[all …]
Dgen_angle_format_table.py201 def get_named_component_type(component_type): argument
202 if component_type == "snorm":
204 elif component_type == "unorm":
206 elif component_type == "float":
208 elif component_type == "uint":
210 elif component_type == "int":
212 elif component_type == "none":
215 raise ValueError("Unknown component type for " + component_type)
/external/libtextclassifier/native/annotator/datetime/
Ddatetime-grounder_test.cc67 const ComponentType component_type, const Modifier modifier, in BuildRelativeDatetime() argument
76 ->component_type = component_type; in BuildRelativeDatetime()
120 EXPECT_EQ(data[0].datetime_components[0].component_type, in TEST_F()
124 EXPECT_EQ(data[0].datetime_components[1].component_type, in TEST_F()
126 EXPECT_EQ(data[0].datetime_components[1].component_type, in TEST_F()
129 EXPECT_EQ(data[0].datetime_components[2].component_type, in TEST_F()
133 EXPECT_EQ(data[0].datetime_components[3].component_type, in TEST_F()
137 EXPECT_EQ(data[0].datetime_components[4].component_type, in TEST_F()
141 EXPECT_EQ(data[0].datetime_components[5].component_type, in TEST_F()
145 EXPECT_EQ(data[0].datetime_components[6].component_type, in TEST_F()
[all …]
Ddatetime-grounder.cc115 const grammar::datetime::ComponentType component_type) { in ToComponentType() argument
116 switch (component_type) { in ToComponentType()
196 TC3_ASSIGN_OR_RETURN(const DatetimeComponent::ComponentType component_type, in FillRelativeDateTimeComponents()
197 ToComponentType(relative_component->component_type())); in FillRelativeDateTimeComponents()
198 datetime_parsed_data.SetRelativeCount(component_type, in FillRelativeDateTimeComponents()
203 datetime_parsed_data.SetRelativeValue(component_type, relative_qualifier); in FillRelativeDateTimeComponents()
256 return a.component_type > b.component_type; in Ground()
Dextractor.cc38 DatetimeComponent::ComponentType component_type; in Extract() local
148 if (!ParseFieldType(group_text, &component_type)) { in Extract()
156 if (!ParseFieldType(group_text, &component_type)) { in Extract()
160 if (component_type == DatetimeComponent::ComponentType::DAY_OF_WEEK) { in Extract()
166 result->SetAbsoluteValue(component_type, day_of_week); in Extract()
196 result->SetRelativeValue(component_type, relative_qualifier); in Extract()
197 result->SetRelativeCount(component_type, relative_count); in Extract()
/external/angle/src/common/
Dgen_uniform_type_table.py193 component_type = get_component_type(uniform_type)
194 if component_type == "GL_BOOL":
196 elif component_type == "GL_FLOAT":
198 elif component_type == "GL_INT":
200 elif component_type == "GL_UNSIGNED_INT":
202 elif component_type == "GL_NONE":
205 raise "Invalid component type: " + component_type
231 component_type=get_component_type(uniform_type),
/external/libtextclassifier/native/annotator/
Dtypes.cc79 const DatetimeComponent::ComponentType& component_type) { in ComponentTypeToString() argument
80 switch (component_type) { in ComponentTypeToString()
149 << ComponentTypeToString(datetime_comp.component_type) in operator <<()
225 stream = stream << " Component Type:" << static_cast<int>(c.component_type) in operator <<()
257 {datetime_component.component_type, datetime_component}); in AddDatetimeComponents()
327 const DatetimeComponent::ComponentType& component_type) { in GetOrCreateDatetimeComponent() argument
331 {component_type, in GetOrCreateDatetimeComponent()
333 component_type, in GetOrCreateDatetimeComponent()
344 for (const auto& component_type : datetime_component_types) { in GetFinestGranularityFromComponentTypes() local
345 switch (component_type) { in GetFinestGranularityFromComponentTypes()
[all …]
/external/angle/src/libANGLE/renderer/d3d/d3d11/
Dgen_texture_format_table.py117 component_type = angle_format['componentType']
121 if component_type == 'uint':
123 elif component_type == 'int':
125 elif component_type == 'unorm':
128 elif component_type == 'snorm':
132 elif component_type == 'float':
/external/tensorflow/tensorflow/compiler/xla/
Dprimitive_util.h177 auto component_type = in HigherPrecisionType() local
184 IsFloatingPointType(component_type) ? OverflowExponent(component_type) in HigherPrecisionType()
188 IsFloatingPointType(component_type) ? SignificandWidth(component_type) in HigherPrecisionType()
191 BitWidth(component_type), in HigherPrecisionType()
193 IsSignedIntegralType(component_type)); in HigherPrecisionType()
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_constants.cpp60 const auto component_type = in ValidateConstantComposite() local
62 if (!component_type) { in ValidateConstantComposite()
80 component_type->opcode() != constituent_result_type->opcode()) { in ValidateConstantComposite()
106 const auto component_type = in ValidateConstantComposite() local
108 if (!component_type) { in ValidateConstantComposite()
141 if (component_type->id() != vector_component_type->id()) { in ValidateConstantComposite()
268 const auto component_type = _.FindDef(component_type_id); in ValidateConstantComposite() local
269 if (!component_type || component_type->id() != constituent_type->id()) { in ValidateConstantComposite()
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_constants.cpp59 const auto component_type = in ValidateConstantComposite() local
61 if (!component_type) { in ValidateConstantComposite()
79 component_type->opcode() != constituent_result_type->opcode()) { in ValidateConstantComposite()
105 const auto component_type = in ValidateConstantComposite() local
107 if (!component_type) { in ValidateConstantComposite()
140 if (component_type->id() != vector_component_type->id()) { in ValidateConstantComposite()
266 const auto component_type = _.FindDef(component_type_id); in ValidateConstantComposite() local
267 if (!component_type || component_type->id() != constituent_type->id()) { in ValidateConstantComposite()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/
Dvalidate_constants.cpp59 const auto component_type = in ValidateConstantComposite() local
61 if (!component_type) { in ValidateConstantComposite()
79 component_type->id() != constituent_result_type->id()) { in ValidateConstantComposite()
105 const auto component_type = in ValidateConstantComposite() local
107 if (!component_type) { in ValidateConstantComposite()
140 if (component_type->id() != vector_component_type->id()) { in ValidateConstantComposite()
267 const auto component_type = _.FindDef(component_type_id); in ValidateConstantComposite() local
268 if (!component_type || component_type->id() != constituent_type->id()) { in ValidateConstantComposite()
/external/libtextclassifier/native/utils/calendar/
Dcalendar-common.h77 if (!(component.component_type == DatetimeComponent::ComponentType::HOUR || in HasOnlyTimeComponents()
78 component.component_type == in HasOnlyTimeComponents()
80 component.component_type == in HasOnlyTimeComponents()
82 component.component_type == in HasOnlyTimeComponents()
290 switch (date_time_component.component_type) { in AdjustByRelation()
333 << static_cast<int>(date_time_component.component_type); in AdjustByRelation()

12345