Home
last modified time | relevance | path

Searched refs:GetConstant (Results 1 - 25 of 66) sorted by relevance

123

/third_party/spirv-tools/source/opt/
H A Dconst_folding_rules.cpp123 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), {}); in FoldExtractWithConstants()
195 const analysis::Constant* new_constant = const_mgr->GetConstant(type, ids); in FoldInsertWithConstants()
221 new_constant = const_mgr->GetConstant(type, ids); in FoldInsertWithConstants()
249 const_mgr->GetConstant(element_type, {}); in FoldVectorShuffleWithConstants()
258 const_mgr->GetConstant(element_type, {}); in FoldVectorShuffleWithConstants()
281 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorShuffleWithConstants()
309 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorTimesScalar()
340 const_mgr->GetConstant(float_type, words); in FoldVectorTimesScalar()
343 return const_mgr->GetConstant(vector_type, ids); in FoldVectorTimesScalar()
351 const_mgr->GetConstant(float_typ in FoldVectorTimesScalar()
[all...]
H A Dconstants.cpp323 return GetConstant(GetType(inst), literal_words_or_ids); in GetConstantFromInst()
387 const Constant* ConstantManager::GetConstant( in GetConstant() function in spvtools::opt::analysis::ConstantManager
427 return GetConstant(type, literal_words_or_id); in GetNullCompositeConstant()
454 GetConstant(element_type, const_data); in GetNumericVectorConstantWithWords()
459 return GetConstant(type, element_ids); in GetNumericVectorConstantWithWords()
470 const Constant* c = GetConstant(float_type, v.GetWords()); in GetFloatConst()
482 const Constant* c = GetConstant(float_type, v.GetWords()); in GetDoubleConst()
488 const Constant* c = GetConstant(sint_type, {static_cast<uint32_t>(val)}); in GetSIntConstId()
508 return GetConstant(int_type, {static_cast<uint32_t>(val)}); in GetIntConst()
513 return GetConstant( in GetIntConst()
[all...]
H A Dgraphics_robust_access_pass.cpp593 const auto* constant = mgr->GetConstant(type, words); in GetValueForType()
949 auto* component_1 = constant_mgr->GetConstant(coord_component_type, {1}); in ClampCoordinateForImageTexelPointer()
952 auto* component_0 = constant_mgr->GetConstant(coord_component_type, {0}); in ClampCoordinateForImageTexelPointer()
963 auto* component_6 = constant_mgr->GetConstant(coord_component_type, {6}); in ClampCoordinateForImageTexelPointer()
967 auto* multiplicand = constant_mgr->GetConstant( in ClampCoordinateForImageTexelPointer()
984 : constant_mgr->GetConstant( in ClampCoordinateForImageTexelPointer()
991 : constant_mgr->GetConstant( in ClampCoordinateForImageTexelPointer()
H A Dreplace_invalid_opc.cpp194 special_const = const_mgr->GetConstant(type_mgr->GetType(type_id), ids); in GetSpecialConstant()
203 const_mgr->GetConstant(type_mgr->GetType(type_id), literal_words); in GetSpecialConstant()
H A Dfold_spec_constant_op_and_composite_pass.cpp314 auto result_const = const_mgr->GetConstant( in DoComponentWiseOperation()
327 if (auto rc = const_mgr->GetConstant( in DoComponentWiseOperation()
H A Dconstants.h514 const Constant* GetConstant(
518 const Constant* GetConstant(const Type* type, const C& literal_words_or_ids) { in GetConstant() function in spvtools::opt::analysis::ConstantManager
519 return GetConstant(type, std::vector<uint32_t>(literal_words_or_ids.begin(), in GetConstant()
H A Dloop_unswitch_pass.cpp302 cst_mgr->GetDefiningInstruction(cst_mgr->GetConstant(cond_type, {0})), in PerformUnswitch()
305 cst_mgr->GetDefiningInstruction(cst_mgr->GetConstant(cond_type, {1})); in PerformUnswitch()
314 cst_mgr->GetDefiningInstruction(cst_mgr->GetConstant( in PerformUnswitch()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dconst_folding_rules.cpp52 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), {}); in FoldExtractWithConstants()
87 const_mgr->GetConstant(element_type, {}); in FoldVectorShuffleWithConstants()
96 const_mgr->GetConstant(element_type, {}); in FoldVectorShuffleWithConstants()
119 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorShuffleWithConstants()
147 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorTimesScalar()
178 const_mgr->GetConstant(float_type, words); in FoldVectorTimesScalar()
181 return const_mgr->GetConstant(vector_type, ids); in FoldVectorTimesScalar()
189 const_mgr->GetConstant(float_type, words); in FoldVectorTimesScalar()
192 return const_mgr->GetConstant(vector_type, ids); in FoldVectorTimesScalar()
231 return const_mgr->GetConstant(new_typ in FoldCompositeWithConstants()
[all...]
H A Dconstants.cpp323 return GetConstant(GetType(inst), literal_words_or_ids); in GetConstantFromInst()
387 const Constant* ConstantManager::GetConstant( in GetConstant() function in spvtools::opt::analysis::ConstantManager
415 GetConstant(element_type, const_data); in GetNumericVectorConstantWithWords()
420 return GetConstant(type, element_ids); in GetNumericVectorConstantWithWords()
426 const Constant* c = GetConstant(float_type, v.GetWords()); in GetFloatConst()
432 const Constant* c = GetConstant(sint_type, {static_cast<uint32_t>(val)}); in GetSIntConst()
438 const Constant* c = GetConstant(uint_type, {val}); in GetUIntConst()
455 const_mgr->GetConstant(element_type, {}); in GetVectorComponents()
H A Dgraphics_robust_access_pass.cpp602 const auto* constant = mgr->GetConstant(type, words); in GetValueForType()
957 auto* component_1 = constant_mgr->GetConstant(coord_component_type, {1}); in ClampCoordinateForImageTexelPointer()
960 auto* component_0 = constant_mgr->GetConstant(coord_component_type, {0}); in ClampCoordinateForImageTexelPointer()
971 auto* component_6 = constant_mgr->GetConstant(coord_component_type, {6}); in ClampCoordinateForImageTexelPointer()
975 auto* multiplicand = constant_mgr->GetConstant( in ClampCoordinateForImageTexelPointer()
992 : constant_mgr->GetConstant( in ClampCoordinateForImageTexelPointer()
999 : constant_mgr->GetConstant( in ClampCoordinateForImageTexelPointer()
H A Dreplace_invalid_opc.cpp194 special_const = const_mgr->GetConstant(type_mgr->GetType(type_id), ids); in GetSpecialConstant()
202 const_mgr->GetConstant(type_mgr->GetType(type_id), literal_words); in GetSpecialConstant()
H A Dfold_spec_constant_op_and_composite_pass.cpp260 context()->get_constant_mgr()->GetConstant(component_type, {}); in DoVectorShuffle()
403 auto result_const = context()->get_constant_mgr()->GetConstant( in DoComponentWiseOperation()
417 if (auto rc = context()->get_constant_mgr()->GetConstant( in DoComponentWiseOperation()
H A Dfolding_rules.cpp182 return const_mgr->GetConstant(type, words); in ConvertWordsToNumericScalarOrVectorConstant()
206 const_mgr->GetConstant(c->type(), std::move(words)); in NegateFloatingPointConstant()
226 const_mgr->GetConstant(c->type(), std::move(words)); in NegateIntegerConstant()
252 const_mgr->GetConstant(c->type(), std::move(words)); in NegateVectorConstant()
291 const_mgr->GetConstant(c->type(), std::move(words)); in Reciprocal()
319 const_mgr->GetConstant(constants[1]->type(), std::move(neg_ids)); in ReciprocalFDiv()
548 const analysis::Constant* merged_const = const_mgr->GetConstant(type, words);
595 const analysis::Constant* merged_const = const_mgr->GetConstant(type, words);
619 input1_comp = const_mgr->GetConstant(ele_type, {});
628 input2_comp = const_mgr->GetConstant(ele_typ
[all...]
H A Dconstants.h514 const Constant* GetConstant(
518 const Constant* GetConstant(const Type* type, const C& literal_words_or_ids) { in GetConstant() function in spvtools::opt::analysis::ConstantManager
519 return GetConstant(type, std::vector<uint32_t>(literal_words_or_ids.begin(), in GetConstant()
H A Dloop_unswitch_pass.cpp309 cst_mgr->GetDefiningInstruction(cst_mgr->GetConstant(cond_type, {0})), in PerformUnswitch()
312 cst_mgr->GetDefiningInstruction(cst_mgr->GetConstant(cond_type, {1})); in PerformUnswitch()
321 cst_mgr->GetDefiningInstruction(cst_mgr->GetConstant( in PerformUnswitch()
H A Damd_ext_to_khr.cpp261 const auto* ballot_value_const = const_mgr->GetConstant( in ReplaceSwizzleInvocations()
274 const auto* null = const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), in ReplaceSwizzleInvocations()
376 const auto* ballot_value_const = const_mgr->GetConstant( in ReplaceSwizzleInvocationsMasked()
389 const auto* null = const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), in ReplaceSwizzleInvocationsMasked()
591 const_mgr->GetConstant(v2_float_type, {f0_5_const_id, f0_5_const_id}); in ReplaceCubeFaceCoord()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dconst_folding_rules.cpp108 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), {}); in FoldExtractWithConstants()
143 const_mgr->GetConstant(element_type, {}); in FoldVectorShuffleWithConstants()
152 const_mgr->GetConstant(element_type, {}); in FoldVectorShuffleWithConstants()
175 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorShuffleWithConstants()
203 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorTimesScalar()
234 const_mgr->GetConstant(float_type, words); in FoldVectorTimesScalar()
237 return const_mgr->GetConstant(vector_type, ids); in FoldVectorTimesScalar()
245 const_mgr->GetConstant(float_type, words); in FoldVectorTimesScalar()
248 return const_mgr->GetConstant(vector_type, ids); in FoldVectorTimesScalar()
287 return const_mgr->GetConstant(new_typ in FoldCompositeWithConstants()
[all...]
H A Dconstants.cpp323 return GetConstant(GetType(inst), literal_words_or_ids); in GetConstantFromInst()
387 const Constant* ConstantManager::GetConstant( in GetConstant() function in spvtools::opt::analysis::ConstantManager
415 GetConstant(element_type, const_data); in GetNumericVectorConstantWithWords()
420 return GetConstant(type, element_ids); in GetNumericVectorConstantWithWords()
431 const Constant* c = GetConstant(float_type, v.GetWords()); in GetFloatConst()
443 const Constant* c = GetConstant(float_type, v.GetWords()); in GetDoubleConst()
449 const Constant* c = GetConstant(sint_type, {static_cast<uint32_t>(val)}); in GetSIntConst()
455 const Constant* c = GetConstant(uint_type, {val}); in GetUIntConst()
472 const_mgr->GetConstant(element_type, {}); in GetVectorComponents()
H A Dgraphics_robust_access_pass.cpp602 const auto* constant = mgr->GetConstant(type, words); in GetValueForType()
957 auto* component_1 = constant_mgr->GetConstant(coord_component_type, {1}); in ClampCoordinateForImageTexelPointer()
960 auto* component_0 = constant_mgr->GetConstant(coord_component_type, {0}); in ClampCoordinateForImageTexelPointer()
971 auto* component_6 = constant_mgr->GetConstant(coord_component_type, {6}); in ClampCoordinateForImageTexelPointer()
975 auto* multiplicand = constant_mgr->GetConstant( in ClampCoordinateForImageTexelPointer()
992 : constant_mgr->GetConstant( in ClampCoordinateForImageTexelPointer()
999 : constant_mgr->GetConstant( in ClampCoordinateForImageTexelPointer()
H A Dreplace_invalid_opc.cpp194 special_const = const_mgr->GetConstant(type_mgr->GetType(type_id), ids); in GetSpecialConstant()
202 const_mgr->GetConstant(type_mgr->GetType(type_id), literal_words); in GetSpecialConstant()
H A Dfold_spec_constant_op_and_composite_pass.cpp260 context()->get_constant_mgr()->GetConstant(component_type, {}); in DoVectorShuffle()
403 auto result_const = context()->get_constant_mgr()->GetConstant( in DoComponentWiseOperation()
417 if (auto rc = context()->get_constant_mgr()->GetConstant( in DoComponentWiseOperation()
H A Dfolding_rules.cpp182 return const_mgr->GetConstant(type, words); in ConvertWordsToNumericScalarOrVectorConstant()
206 const_mgr->GetConstant(c->type(), std::move(words)); in NegateFloatingPointConstant()
226 const_mgr->GetConstant(c->type(), std::move(words)); in NegateIntegerConstant()
252 const_mgr->GetConstant(c->type(), std::move(words)); in NegateVectorConstant()
291 const_mgr->GetConstant(c->type(), std::move(words)); in Reciprocal()
319 const_mgr->GetConstant(constants[1]->type(), std::move(neg_ids)); in ReciprocalFDiv()
548 const analysis::Constant* merged_const = const_mgr->GetConstant(type, words);
595 const analysis::Constant* merged_const = const_mgr->GetConstant(type, words);
619 input1_comp = const_mgr->GetConstant(ele_type, {});
628 input2_comp = const_mgr->GetConstant(ele_typ
[all...]
H A Dconstants.h514 const Constant* GetConstant(
518 const Constant* GetConstant(const Type* type, const C& literal_words_or_ids) { in GetConstant() function in spvtools::opt::analysis::ConstantManager
519 return GetConstant(type, std::vector<uint32_t>(literal_words_or_ids.begin(), in GetConstant()
H A Dloop_unswitch_pass.cpp309 cst_mgr->GetDefiningInstruction(cst_mgr->GetConstant(cond_type, {0})), in PerformUnswitch()
312 cst_mgr->GetDefiningInstruction(cst_mgr->GetConstant(cond_type, {1})); in PerformUnswitch()
321 cst_mgr->GetDefiningInstruction(cst_mgr->GetConstant( in PerformUnswitch()
H A Damd_ext_to_khr.cpp261 const auto* ballot_value_const = const_mgr->GetConstant( in ReplaceSwizzleInvocations()
274 const auto* null = const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), in ReplaceSwizzleInvocations()
376 const auto* ballot_value_const = const_mgr->GetConstant( in ReplaceSwizzleInvocationsMasked()
389 const auto* null = const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), in ReplaceSwizzleInvocationsMasked()
591 const_mgr->GetConstant(v2_float_type, {f0_5_const_id, f0_5_const_id}); in ReplaceCubeFaceCoord()

Completed in 27 milliseconds

123