Home
last modified time | relevance | path

Searched refs:AsFloat (Results 1 – 25 of 96) sorted by relevance

1234

/third_party/spirv-tools/source/fuzz/
Dfuzzer_pass_add_equation_instructions.cpp176 assert(vector->element_type()->AsFloat() && in Apply()
179 vector->element_type()->AsFloat()->width(), in Apply()
187 assert(operand_type->AsFloat() && in Apply()
189 FindOrCreateIntegerType(operand_type->AsFloat()->width(), in Apply()
316 if (type->AsFloat() || in GetFloatInstructions()
317 (type->AsVector() && type->AsVector()->element_type()->AsFloat())) { in GetFloatInstructions()
368 assert((type->AsInteger() || type->AsFloat()) && in RestrictToElementBitWidth()
372 (type->AsFloat() && type->AsFloat()->width() == bit_width)) { in RestrictToElementBitWidth()
392 if (!type->AsInteger() && !type->AsFloat()) { in GetNumericalInstructions()
400 : type->AsFloat()->width())) { in GetNumericalInstructions()
Dfuzzer_pass_add_image_sample_unused_components.cpp110 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
128 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
141 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
163 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
Dfuzzer_pass_obfuscate_constants.cpp137 assert(float_constant_1->type()->AsFloat()->width() == in ObfuscateBoolConstantViaFloatConstantPair()
138 float_constant_2->type()->AsFloat()->width() && in ObfuscateBoolConstantViaFloatConstantPair()
140 if (float_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaFloatConstantPair()
144 assert(float_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaFloatConstantPair()
183 if (signed_int_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaSignedIntConstantPair()
187 assert(signed_int_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaSignedIntConstantPair()
225 if (unsigned_int_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaUnsignedIntConstantPair()
229 assert(unsigned_int_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaUnsignedIntConstantPair()
322 if (chosen_type->AsFloat()) { in ObfuscateBoolConstant()
Dtransformation_add_synonym.cpp168 vector->element_type()->AsFloat(); in IsInstructionValid()
171 return type->AsInteger() || type->AsFloat(); in IsInstructionValid()
289 vector->element_type()->AsFloat() ? fuzzerutil::FloatToWord(1) : 1u; in MaybeGetConstantId()
303 {synonym_type->AsFloat() ? fuzzerutil::FloatToWord(1) : 1u}, in MaybeGetConstantId()
Dtransformation_add_type_vector.cpp43 return component_type->AsBool() || component_type->AsFloat() || in IsApplicable()
53 (component_type->AsInteger() || component_type->AsFloat() || in Apply()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_add_equation_instructions.cpp177 assert(vector->element_type()->AsFloat() && in Apply()
180 vector->element_type()->AsFloat()->width(), in Apply()
188 assert(operand_type->AsFloat() && in Apply()
190 FindOrCreateIntegerType(operand_type->AsFloat()->width(), in Apply()
317 if (type->AsFloat() || in GetFloatInstructions()
318 (type->AsVector() && type->AsVector()->element_type()->AsFloat())) { in GetFloatInstructions()
369 assert((type->AsInteger() || type->AsFloat()) && in RestrictToElementBitWidth()
373 (type->AsFloat() && type->AsFloat()->width() == bit_width)) { in RestrictToElementBitWidth()
393 if (!type->AsInteger() && !type->AsFloat()) { in GetNumericalInstructions()
401 : type->AsFloat()->width())) { in GetNumericalInstructions()
Dfuzzer_pass_add_image_sample_unused_components.cpp111 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
129 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
142 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
164 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
Dfuzzer_pass_obfuscate_constants.cpp138 assert(float_constant_1->type()->AsFloat()->width() == in ObfuscateBoolConstantViaFloatConstantPair()
139 float_constant_2->type()->AsFloat()->width() && in ObfuscateBoolConstantViaFloatConstantPair()
141 if (float_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaFloatConstantPair()
145 assert(float_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaFloatConstantPair()
184 if (signed_int_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaSignedIntConstantPair()
188 assert(signed_int_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaSignedIntConstantPair()
226 if (unsigned_int_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaUnsignedIntConstantPair()
230 assert(unsigned_int_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaUnsignedIntConstantPair()
323 if (chosen_type->AsFloat()) { in ObfuscateBoolConstant()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dfuzzer_pass_add_equation_instructions.cpp177 assert(vector->element_type()->AsFloat() && in Apply()
180 vector->element_type()->AsFloat()->width(), in Apply()
188 assert(operand_type->AsFloat() && in Apply()
190 FindOrCreateIntegerType(operand_type->AsFloat()->width(), in Apply()
317 if (type->AsFloat() || in GetFloatInstructions()
318 (type->AsVector() && type->AsVector()->element_type()->AsFloat())) { in GetFloatInstructions()
369 assert((type->AsInteger() || type->AsFloat()) && in RestrictToElementBitWidth()
373 (type->AsFloat() && type->AsFloat()->width() == bit_width)) { in RestrictToElementBitWidth()
393 if (!type->AsInteger() && !type->AsFloat()) { in GetNumericalInstructions()
401 : type->AsFloat()->width())) { in GetNumericalInstructions()
Dfuzzer_pass_add_image_sample_unused_components.cpp111 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
129 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
142 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
164 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
Dfuzzer_pass_obfuscate_constants.cpp138 assert(float_constant_1->type()->AsFloat()->width() == in ObfuscateBoolConstantViaFloatConstantPair()
139 float_constant_2->type()->AsFloat()->width() && in ObfuscateBoolConstantViaFloatConstantPair()
141 if (float_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaFloatConstantPair()
145 assert(float_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaFloatConstantPair()
184 if (signed_int_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaSignedIntConstantPair()
188 assert(signed_int_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaSignedIntConstantPair()
226 if (unsigned_int_constant_1->type()->AsFloat()->width() == 32) { in ObfuscateBoolConstantViaUnsignedIntConstantPair()
230 assert(unsigned_int_constant_1->type()->AsFloat()->width() == 64 && in ObfuscateBoolConstantViaUnsignedIntConstantPair()
323 if (chosen_type->AsFloat()) { in ObfuscateBoolConstant()
Dtransformation_add_type_vector.cpp43 return component_type->AsBool() || component_type->AsFloat() || in IsApplicable()
53 (component_type->AsInteger() || component_type->AsFloat() || in Apply()
/third_party/mindspore/mindspore/lite/tools/converter/parser/tflite/
Dtflite_custom_parser.cc84 …prim->set_scale({attr_map["h_scale"].AsFloat(), attr_map["w_scale"].AsFloat(), attr_map["x_scale"]… in DetectPostProcess()
85 attr_map["y_scale"].AsFloat()}); in DetectPostProcess()
86 prim->set_nms_iou_threshold(attr_map["nms_iou_threshold"].AsFloat()); in DetectPostProcess()
87 prim->set_nms_score_threshold(attr_map["nms_score_threshold"].AsFloat()); in DetectPostProcess()
127 prim->set_freq_upper_limit(attr_map["upper_frequency_limit"].AsFloat()); in Mfcc()
128 prim->set_freq_lower_limit(attr_map["lower_frequency_limit"].AsFloat()); in Mfcc()
/third_party/spirv-tools/source/fuzz/fact_manager/
Dconstant_uniform_facts.cpp40 type->AsFloat() && in GetConstantId()
43 type->AsFloat(), GetConstantWords(constant_uniform_fact)); in GetConstantId()
206 if (!(final_element_type->AsFloat() || final_element_type->AsInteger())) { in MaybeAddFact()
209 auto width = final_element_type->AsFloat() in MaybeAddFact()
210 ? final_element_type->AsFloat()->width() in MaybeAddFact()
213 if (final_element_type->AsFloat() && in MaybeAddFact()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/fact_manager/
Dconstant_uniform_facts.cpp40 type->AsFloat() && in GetConstantId()
43 type->AsFloat(), GetConstantWords(constant_uniform_fact)); in GetConstantId()
206 if (!(final_element_type->AsFloat() || final_element_type->AsInteger())) { in MaybeAddFact()
209 auto width = final_element_type->AsFloat() in MaybeAddFact()
210 ? final_element_type->AsFloat()->width() in MaybeAddFact()
213 if (final_element_type->AsFloat() && in MaybeAddFact()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/fact_manager/
Dconstant_uniform_facts.cpp40 type->AsFloat() && in GetConstantId()
43 type->AsFloat(), GetConstantWords(constant_uniform_fact)); in GetConstantId()
206 if (!(final_element_type->AsFloat() || final_element_type->AsInteger())) { in MaybeAddFact()
209 auto width = final_element_type->AsFloat() in MaybeAddFact()
210 ? final_element_type->AsFloat()->width() in MaybeAddFact()
213 if (final_element_type->AsFloat() && in MaybeAddFact()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dconstants.cpp27 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 32); in GetFloat()
38 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 64); in GetDouble()
49 assert(type()->AsFloat() != nullptr); in GetValueAsDouble()
50 if (type()->AsFloat()->width() == 32) { in GetValueAsDouble()
53 assert(type()->AsFloat()->width() == 64); in GetValueAsDouble()
253 } else if (auto* ft = type->AsFloat()) { in CreateConstant()
262 c->type()->AsFloat()) { in CreateConstant()
397 if (const auto* float_type = element_type->AsFloat()) in GetNumericVectorConstantWithWords()
Dconst_folding_rules.cpp27 if (type->AsFloat()) { in HasFloatingPoint()
30 return vec_type->element_type()->AsFloat() != nullptr; in HasFloatingPoint()
160 const analysis::Float* float_type = element_type->AsFloat(); in FoldVectorTimesScalar()
375 const analysis::Float* float_type = a->type()->AsFloat(); in FoldFToIOp()
406 const analysis::Float* float_type = result_type->AsFloat(); in FoldIToFOp()
435 const analysis::Float* float_type = a->type()->AsFloat(); in FoldQuantizeToF16Scalar()
463 result_type_in_macro->AsFloat(); \
517 const analysis::Float* float_type = a->type()->AsFloat(); \
585 assert(new_type->AsFloat() && "OpDot should have a float return type."); in FoldOpDotWithConstants()
586 const analysis::Float* float_type = new_type->AsFloat(); in FoldOpDotWithConstants()
[all …]
/third_party/spirv-tools/source/opt/
Dconstants.cpp27 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 32); in GetFloat()
38 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 64); in GetDouble()
49 assert(type()->AsFloat() != nullptr); in GetValueAsDouble()
50 if (type()->AsFloat()->width() == 32) { in GetValueAsDouble()
53 assert(type()->AsFloat()->width() == 64); in GetValueAsDouble()
252 } else if (auto* ft = type->AsFloat()) { in CreateConstant()
261 c->type()->AsFloat()) { in CreateConstant()
Dconst_folding_rules.cpp27 if (type->AsFloat()) { in HasFloatingPoint()
30 return vec_type->element_type()->AsFloat() != nullptr; in HasFloatingPoint()
160 const analysis::Float* float_type = element_type->AsFloat(); in FoldVectorTimesScalar()
375 const analysis::Float* float_type = a->type()->AsFloat(); in FoldFToIOp()
406 const analysis::Float* float_type = result_type->AsFloat(); in FoldIToFOp()
435 const analysis::Float* float_type = a->type()->AsFloat(); in FoldQuantizeToF16Scalar()
463 result_type_in_macro->AsFloat(); \
517 const analysis::Float* float_type = a->type()->AsFloat(); \
585 assert(new_type->AsFloat() && "OpDot should have a float return type."); in FoldOpDotWithConstants()
586 const analysis::Float* float_type = new_type->AsFloat(); in FoldOpDotWithConstants()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dconstants.cpp27 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 32); in GetFloat()
38 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 64); in GetDouble()
49 assert(type()->AsFloat() != nullptr); in GetValueAsDouble()
50 if (type()->AsFloat()->width() == 32) { in GetValueAsDouble()
53 assert(type()->AsFloat()->width() == 64); in GetValueAsDouble()
253 } else if (auto* ft = type->AsFloat()) { in CreateConstant()
262 c->type()->AsFloat()) { in CreateConstant()
397 if (const auto* float_type = element_type->AsFloat()) in GetNumericVectorConstantWithWords()
Dconst_folding_rules.cpp29 const analysis::Float* float_type = type->AsFloat(); in GetNan()
49 const analysis::Float* float_type = type->AsFloat(); in GetInf()
66 if (type->AsFloat()) { in HasFloatingPoint()
69 return vec_type->element_type()->AsFloat() != nullptr; in HasFloatingPoint()
80 const analysis::Float* float_type = result_type->AsFloat(); in negateFPConst()
216 const analysis::Float* float_type = element_type->AsFloat(); in FoldVectorTimesScalar()
431 const analysis::Float* float_type = a->type()->AsFloat(); in FoldFToIOp()
462 const analysis::Float* float_type = result_type->AsFloat(); in FoldIToFOp()
491 const analysis::Float* float_type = a->type()->AsFloat(); in FoldQuantizeToF16Scalar()
519 result_type_in_macro->AsFloat(); \
[all …]
/third_party/spirv-tools/test/fuzz/
Dtransformation_add_type_float_test.cpp110 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(6)->AsFloat()); in TEST()
118 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(7)->AsFloat()); in TEST()
126 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(8)->AsFloat()); in TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/
Dtransformation_add_type_float_test.cpp124 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(6)->AsFloat()); in TEST()
132 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(7)->AsFloat()); in TEST()
140 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(8)->AsFloat()); in TEST()
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/
Dtransformation_add_type_float_test.cpp124 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(6)->AsFloat()); in TEST()
132 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(7)->AsFloat()); in TEST()
140 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(8)->AsFloat()); in TEST()

1234