Home
last modified time | relevance | path

Searched refs:AsVector (Results 1 – 25 of 166) sorted by relevance

1234567

/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dfuzzer_pass_add_equation_instructions.cpp105 if (const auto* vector_type = type->AsVector()) { in Apply()
128 if (const auto* vector = type->AsVector()) { in Apply()
166 if (const auto* vector = operand_type->AsVector()) { in Apply()
221 if (lhs_type->AsVector()) { in Apply()
222 lhs_element_count = lhs_type->AsVector()->element_count(); in Apply()
223 lhs_bit_width = lhs_type->AsVector() in Apply()
304 (type->AsVector() && type->AsVector()->element_type()->AsInteger())) { in GetIntegerInstructions()
318 (type->AsVector() && type->AsVector()->element_type()->AsFloat())) { in GetFloatInstructions()
332 (type->AsVector() && type->AsVector()->element_type()->AsBool())) { in GetBooleanInstructions()
349 type->AsVector() ? type->AsVector()->element_count() : 1; in RestrictToVectorWidth()
[all …]
Dtransformation_composite_construct.cpp82 if (composite_type->AsVector() && in IsApplicable()
84 *composite_type->AsVector())) { in IsApplicable()
248 } else if (component_type->AsVector() && in ComponentsForVectorConstructionAreOK()
249 component_type->AsVector()->element_type() == element_type) { in ComponentsForVectorConstructionAreOK()
250 base_element_count += component_type->AsVector()->element_count(); in ComponentsForVectorConstructionAreOK()
297 composite_type->AsVector() && component_type->AsVector(); in AddDataSynonymFacts()
306 ? component_type->AsVector()->element_count() in AddDataSynonymFacts()
315 assert(component_type->AsVector()->element_type() == in AddDataSynonymFacts()
316 composite_type->AsVector()->element_type()); in AddDataSynonymFacts()
317 assert(component_type->AsVector()->element_count() < in AddDataSynonymFacts()
[all …]
Dfuzzer_pass_add_image_sample_unused_components.cpp100 if (coordinate_type->AsVector() && in Apply()
101 coordinate_type->AsVector()->element_count() == 4) { in Apply()
113 : 4 - coordinate_type->AsVector()->element_count(); in Apply()
132 coordinate_type->AsVector()->element_type()); in Apply()
147 coordinate_type->AsVector()->element_type()), in Apply()
169 coordinate_type->AsVector()->element_type()), in Apply()
170 coordinate_type->AsVector()->element_count() + in Apply()
Dtransformation_equation_instruction.cpp130 if (const auto* vector = type->AsVector()) { in MaybeGetResultTypeId()
172 if (const auto* vector = operand_type->AsVector()) { in MaybeGetResultTypeId()
229 (operand_type->AsVector() && in MaybeGetResultTypeId()
230 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId()
236 : operand_type->AsVector()->element_count(); in MaybeGetResultTypeId()
264 (operand_type->AsVector() && in MaybeGetResultTypeId()
265 operand_type->AsVector()->element_type()->AsBool()))) { in MaybeGetResultTypeId()
282 (operand_type->AsVector() && in MaybeGetResultTypeId()
283 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId()
Dtransformation_vector_shuffle.cpp68 if (!vector1_type->AsVector()) { in IsApplicable()
74 if (!vector2_type->AsVector()) { in IsApplicable()
78 if (vector1_type->AsVector()->element_type() != in IsApplicable()
79 vector2_type->AsVector()->element_type()) { in IsApplicable()
82 uint32_t combined_size = vector1_type->AsVector()->element_count() + in IsApplicable()
83 vector2_type->AsVector()->element_count(); in IsApplicable()
94 if (!GetResultTypeId(ir_context, *vector1_type->AsVector()->element_type())) { in IsApplicable()
166 ->AsVector(); in GetVectorType()
Dfuzzer_pass_add_vector_shuffle_instructions.cpp70 ->AsVector()) { in Apply()
103 ->AsVector(); in Apply()
110 ->AsVector(); in Apply()
122 ->AsVector(); in Apply()
Dtransformation_replace_linear_algebra_instruction.cpp129 ->AsVector() in GetRequiredFreshIdCount()
141 ->AsVector() in GetRequiredFreshIdCount()
154 ->AsVector() in GetRequiredFreshIdCount()
169 ->AsVector() in GetRequiredFreshIdCount()
195 ->AsVector() in GetRequiredFreshIdCount()
218 ->AsVector() in GetRequiredFreshIdCount()
242 ->AsVector() in GetRequiredFreshIdCount()
247 ->AsVector() in GetRequiredFreshIdCount()
262 ->AsVector() in GetRequiredFreshIdCount()
286 matrix_column_type->AsVector()->element_type(); in ReplaceOpTranspose()
[all …]
/third_party/spirv-tools/source/fuzz/
Dfuzzer_pass_add_equation_instructions.cpp104 if (const auto* vector_type = type->AsVector()) { in Apply()
127 if (const auto* vector = type->AsVector()) { in Apply()
165 if (const auto* vector = operand_type->AsVector()) { in Apply()
220 if (lhs_type->AsVector()) { in Apply()
221 lhs_element_count = lhs_type->AsVector()->element_count(); in Apply()
222 lhs_bit_width = lhs_type->AsVector() in Apply()
303 (type->AsVector() && type->AsVector()->element_type()->AsInteger())) { in GetIntegerInstructions()
317 (type->AsVector() && type->AsVector()->element_type()->AsFloat())) { in GetFloatInstructions()
331 (type->AsVector() && type->AsVector()->element_type()->AsBool())) { in GetBooleanInstructions()
348 type->AsVector() ? type->AsVector()->element_count() : 1; in RestrictToVectorWidth()
[all …]
Dtransformation_composite_construct.cpp82 if (composite_type->AsVector() && in IsApplicable()
84 *composite_type->AsVector())) { in IsApplicable()
248 } else if (component_type->AsVector() && in ComponentsForVectorConstructionAreOK()
249 component_type->AsVector()->element_type() == element_type) { in ComponentsForVectorConstructionAreOK()
250 base_element_count += component_type->AsVector()->element_count(); in ComponentsForVectorConstructionAreOK()
297 composite_type->AsVector() && component_type->AsVector(); in AddDataSynonymFacts()
306 ? component_type->AsVector()->element_count() in AddDataSynonymFacts()
315 assert(component_type->AsVector()->element_type() == in AddDataSynonymFacts()
316 composite_type->AsVector()->element_type()); in AddDataSynonymFacts()
317 assert(component_type->AsVector()->element_count() < in AddDataSynonymFacts()
[all …]
Dfuzzer_pass_add_image_sample_unused_components.cpp99 if (coordinate_type->AsVector() && in Apply()
100 coordinate_type->AsVector()->element_count() == 4) { in Apply()
112 : 4 - coordinate_type->AsVector()->element_count(); in Apply()
131 coordinate_type->AsVector()->element_type()); in Apply()
146 coordinate_type->AsVector()->element_type()), in Apply()
168 coordinate_type->AsVector()->element_type()), in Apply()
169 coordinate_type->AsVector()->element_count() + in Apply()
Dtransformation_equation_instruction.cpp130 if (const auto* vector = type->AsVector()) { in MaybeGetResultTypeId()
172 if (const auto* vector = operand_type->AsVector()) { in MaybeGetResultTypeId()
229 (operand_type->AsVector() && in MaybeGetResultTypeId()
230 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId()
236 : operand_type->AsVector()->element_count(); in MaybeGetResultTypeId()
264 (operand_type->AsVector() && in MaybeGetResultTypeId()
265 operand_type->AsVector()->element_type()->AsBool()))) { in MaybeGetResultTypeId()
282 (operand_type->AsVector() && in MaybeGetResultTypeId()
283 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId()
Dtransformation_vector_shuffle.cpp68 if (!vector1_type->AsVector()) { in IsApplicable()
74 if (!vector2_type->AsVector()) { in IsApplicable()
78 if (vector1_type->AsVector()->element_type() != in IsApplicable()
79 vector2_type->AsVector()->element_type()) { in IsApplicable()
82 uint32_t combined_size = vector1_type->AsVector()->element_count() + in IsApplicable()
83 vector2_type->AsVector()->element_count(); in IsApplicable()
94 if (!GetResultTypeId(ir_context, *vector1_type->AsVector()->element_type())) { in IsApplicable()
166 ->AsVector(); in GetVectorType()
Dfuzzer_pass_add_vector_shuffle_instructions.cpp69 ->AsVector()) { in Apply()
102 ->AsVector(); in Apply()
109 ->AsVector(); in Apply()
121 ->AsVector(); in Apply()
Dtransformation_replace_linear_algebra_instruction.cpp129 ->AsVector() in GetRequiredFreshIdCount()
141 ->AsVector() in GetRequiredFreshIdCount()
154 ->AsVector() in GetRequiredFreshIdCount()
169 ->AsVector() in GetRequiredFreshIdCount()
195 ->AsVector() in GetRequiredFreshIdCount()
218 ->AsVector() in GetRequiredFreshIdCount()
242 ->AsVector() in GetRequiredFreshIdCount()
247 ->AsVector() in GetRequiredFreshIdCount()
262 ->AsVector() in GetRequiredFreshIdCount()
286 matrix_column_type->AsVector()->element_type(); in ReplaceOpTranspose()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_add_equation_instructions.cpp105 if (const auto* vector_type = type->AsVector()) { in Apply()
128 if (const auto* vector = type->AsVector()) { in Apply()
166 if (const auto* vector = operand_type->AsVector()) { in Apply()
221 if (lhs_type->AsVector()) { in Apply()
222 lhs_element_count = lhs_type->AsVector()->element_count(); in Apply()
223 lhs_bit_width = lhs_type->AsVector() in Apply()
304 (type->AsVector() && type->AsVector()->element_type()->AsInteger())) { in GetIntegerInstructions()
318 (type->AsVector() && type->AsVector()->element_type()->AsFloat())) { in GetFloatInstructions()
332 (type->AsVector() && type->AsVector()->element_type()->AsBool())) { in GetBooleanInstructions()
349 type->AsVector() ? type->AsVector()->element_count() : 1; in RestrictToVectorWidth()
[all …]
Dtransformation_composite_construct.cpp82 if (composite_type->AsVector() && in IsApplicable()
84 *composite_type->AsVector())) { in IsApplicable()
248 } else if (component_type->AsVector() && in ComponentsForVectorConstructionAreOK()
249 component_type->AsVector()->element_type() == element_type) { in ComponentsForVectorConstructionAreOK()
250 base_element_count += component_type->AsVector()->element_count(); in ComponentsForVectorConstructionAreOK()
297 composite_type->AsVector() && component_type->AsVector(); in AddDataSynonymFacts()
306 ? component_type->AsVector()->element_count() in AddDataSynonymFacts()
315 assert(component_type->AsVector()->element_type() == in AddDataSynonymFacts()
316 composite_type->AsVector()->element_type()); in AddDataSynonymFacts()
317 assert(component_type->AsVector()->element_count() < in AddDataSynonymFacts()
[all …]
Dfuzzer_pass_add_image_sample_unused_components.cpp100 if (coordinate_type->AsVector() && in Apply()
101 coordinate_type->AsVector()->element_count() == 4) { in Apply()
113 : 4 - coordinate_type->AsVector()->element_count(); in Apply()
132 coordinate_type->AsVector()->element_type()); in Apply()
147 coordinate_type->AsVector()->element_type()), in Apply()
169 coordinate_type->AsVector()->element_type()), in Apply()
170 coordinate_type->AsVector()->element_count() + in Apply()
Dtransformation_equation_instruction.cpp130 if (const auto* vector = type->AsVector()) { in MaybeGetResultTypeId()
172 if (const auto* vector = operand_type->AsVector()) { in MaybeGetResultTypeId()
229 (operand_type->AsVector() && in MaybeGetResultTypeId()
230 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId()
236 : operand_type->AsVector()->element_count(); in MaybeGetResultTypeId()
264 (operand_type->AsVector() && in MaybeGetResultTypeId()
265 operand_type->AsVector()->element_type()->AsBool()))) { in MaybeGetResultTypeId()
282 (operand_type->AsVector() && in MaybeGetResultTypeId()
283 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId()
Dtransformation_vector_shuffle.cpp68 if (!vector1_type->AsVector()) { in IsApplicable()
74 if (!vector2_type->AsVector()) { in IsApplicable()
78 if (vector1_type->AsVector()->element_type() != in IsApplicable()
79 vector2_type->AsVector()->element_type()) { in IsApplicable()
82 uint32_t combined_size = vector1_type->AsVector()->element_count() + in IsApplicable()
83 vector2_type->AsVector()->element_count(); in IsApplicable()
94 if (!GetResultTypeId(ir_context, *vector1_type->AsVector()->element_type())) { in IsApplicable()
166 ->AsVector(); in GetVectorType()
Dfuzzer_pass_add_vector_shuffle_instructions.cpp70 ->AsVector()) { in Apply()
103 ->AsVector(); in Apply()
110 ->AsVector(); in Apply()
122 ->AsVector(); in Apply()
Dtransformation_replace_linear_algebra_instruction.cpp129 ->AsVector() in GetRequiredFreshIdCount()
141 ->AsVector() in GetRequiredFreshIdCount()
154 ->AsVector() in GetRequiredFreshIdCount()
169 ->AsVector() in GetRequiredFreshIdCount()
195 ->AsVector() in GetRequiredFreshIdCount()
218 ->AsVector() in GetRequiredFreshIdCount()
242 ->AsVector() in GetRequiredFreshIdCount()
247 ->AsVector() in GetRequiredFreshIdCount()
262 ->AsVector() in GetRequiredFreshIdCount()
286 matrix_column_type->AsVector()->element_type(); in ReplaceOpTranspose()
[all …]
Dtransformation_add_synonym.cpp167 if (const auto* vector = type->AsVector()) { in IsInstructionValid()
180 if (const auto* vector = type->AsVector()) { in IsInstructionValid()
195 return (type->AsVector() && type->AsVector()->element_type()->AsBool()) || in IsInstructionValid()
216 auto is_integral = (synonym_type->AsVector() && in MakeSynonymousInstruction()
217 synonym_type->AsVector()->element_type()->AsInteger()) || in MakeSynonymousInstruction()
286 if (const auto* vector = synonym_type->AsVector()) { in MaybeGetConstantId()
/third_party/spirv-tools/source/opt/
Dfold_spec_constant_op_and_composite_pass.cpp221 context()->get_constant_mgr()->GetType(inst)->AsVector(); in DoVectorShuffle()
246 assert(operand_type->AsVector() && in DoVectorShuffle()
258 operand_type->AsVector()->element_type(); in DoVectorShuffle()
265 operand_type->AsVector()->element_count(), in DoVectorShuffle()
310 } else if (auto* vt = type->AsVector()) { in IsValidTypeForComponentWiseOperation()
407 } else if (result_type->AsVector()) { in DoComponentWiseOperation()
410 result_type->AsVector()->element_type(); in DoComponentWiseOperation()
411 uint32_t num_dims = result_type->AsVector()->element_count(); in DoComponentWiseOperation()
431 result_type->AsVector(), result_vector_components); in DoComponentWiseOperation()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dfold_spec_constant_op_and_composite_pass.cpp221 context()->get_constant_mgr()->GetType(inst)->AsVector(); in DoVectorShuffle()
246 assert(operand_type->AsVector() && in DoVectorShuffle()
258 operand_type->AsVector()->element_type(); in DoVectorShuffle()
265 operand_type->AsVector()->element_count(), in DoVectorShuffle()
310 } else if (auto* vt = type->AsVector()) { in IsValidTypeForComponentWiseOperation()
407 } else if (result_type->AsVector()) { in DoComponentWiseOperation()
410 result_type->AsVector()->element_type(); in DoComponentWiseOperation()
411 uint32_t num_dims = result_type->AsVector()->element_count(); in DoComponentWiseOperation()
431 result_type->AsVector(), result_vector_components); in DoComponentWiseOperation()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dfold_spec_constant_op_and_composite_pass.cpp221 context()->get_constant_mgr()->GetType(inst)->AsVector(); in DoVectorShuffle()
246 assert(operand_type->AsVector() && in DoVectorShuffle()
258 operand_type->AsVector()->element_type(); in DoVectorShuffle()
265 operand_type->AsVector()->element_count(), in DoVectorShuffle()
310 } else if (auto* vt = type->AsVector()) { in IsValidTypeForComponentWiseOperation()
407 } else if (result_type->AsVector()) { in DoComponentWiseOperation()
410 result_type->AsVector()->element_type(); in DoComponentWiseOperation()
411 uint32_t num_dims = result_type->AsVector()->element_count(); in DoComponentWiseOperation()
431 result_type->AsVector(), result_vector_components); in DoComponentWiseOperation()

1234567