Home
last modified time | relevance | path

Searched refs:const_mgr (Results 1 – 24 of 24) sorted by relevance

/external/deqp-deps/SPIRV-Tools/source/opt/
Dconst_folding_rules.cpp50 analysis::ConstantManager* const_mgr = context->get_constant_mgr(); in FoldExtractWithConstants() local
52 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), {}); in FoldExtractWithConstants()
75 analysis::ConstantManager* const_mgr = context->get_constant_mgr(); in FoldVectorShuffleWithConstants() local
84 const_mgr->GetConstant(element_type, {}); in FoldVectorShuffleWithConstants()
93 const_mgr->GetConstant(element_type, {}); in FoldVectorShuffleWithConstants()
106 const_mgr->GetDefiningInstruction(c1_components[index]); in FoldVectorShuffleWithConstants()
109 Instruction* member_inst = const_mgr->GetDefiningInstruction( in FoldVectorShuffleWithConstants()
116 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorShuffleWithConstants()
125 analysis::ConstantManager* const_mgr = context->get_constant_mgr(); in FoldVectorTimesScalar() local
144 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorTimesScalar()
[all …]
Dfolding_rules.cpp89 uint32_t NegateFloatingPointConstant(analysis::ConstantManager* const_mgr, in NegateFloatingPointConstant() argument
105 const_mgr->GetConstant(c->type(), std::move(words)); in NegateFloatingPointConstant()
106 return const_mgr->GetDefiningInstruction(negated_const)->result_id(); in NegateFloatingPointConstant()
117 uint32_t NegateIntegerConstant(analysis::ConstantManager* const_mgr, in NegateIntegerConstant() argument
132 const_mgr->GetConstant(c->type(), std::move(words)); in NegateIntegerConstant()
133 return const_mgr->GetDefiningInstruction(negated_const)->result_id(); in NegateIntegerConstant()
137 uint32_t NegateVectorConstant(analysis::ConstantManager* const_mgr, in NegateVectorConstant() argument
139 assert(const_mgr && c); in NegateVectorConstant()
143 return const_mgr->GetDefiningInstruction(c)->result_id(); in NegateVectorConstant()
150 words.push_back(NegateFloatingPointConstant(const_mgr, comp)); in NegateVectorConstant()
[all …]
Dcopy_prop_arrays.cpp259 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in BuildMemoryObjectFromExtract() local
275 const_mgr->GetConstant(uint32_type, {index}); in BuildMemoryObjectFromExtract()
277 const_mgr->GetDefiningInstruction(index_const)->result_id()); in BuildMemoryObjectFromExtract()
306 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in BuildMemoryObjectFromCompositeConstruct() local
308 const_mgr->FindDeclaredConstant(memory_object->AccessChain().back()); in BuildMemoryObjectFromCompositeConstruct()
342 const_mgr->FindDeclaredConstant(member_object->AccessChain().back()); in BuildMemoryObjectFromCompositeConstruct()
361 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in BuildMemoryObjectFromInsert() local
370 const_mgr->FindDeclaredConstant(array_type->LengthId()); in BuildMemoryObjectFromInsert()
403 const_mgr->FindDeclaredConstant(memory_object->AccessChain().back()); in BuildMemoryObjectFromInsert()
450 const_mgr->FindDeclaredConstant( in BuildMemoryObjectFromInsert()
[all …]
Dreduce_load_size.cpp58 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in ReplaceExtract() local
108 const_mgr->GetConstant(uint32_type, {index}); in ReplaceExtract()
109 ids.push_back(const_mgr->GetDefiningInstruction(index_const)->result_id()); in ReplaceExtract()
153 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in ShouldReplaceExtract() local
160 const_mgr->FindDeclaredConstant(load_type->AsArray()->LengthId()); in ShouldReplaceExtract()
Dreplace_invalid_opc.cpp172 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in GetSpecialConstant() local
183 special_const = const_mgr->GetConstant(type_mgr->GetType(type_id), ids); in GetSpecialConstant()
191 const_mgr->GetConstant(type_mgr->GetType(type_id), literal_words); in GetSpecialConstant()
194 return const_mgr->GetDefiningInstruction(special_const)->result_id(); in GetSpecialConstant()
Dfold.cpp604 analysis::ConstantManager* const_mgr = context_->get_constant_mgr(); in FoldInstructionToConstant() local
613 inst->ForEachInId([&constants, &missing_constants, const_mgr, in FoldInstructionToConstant()
616 const analysis::Constant* const_op = const_mgr->FindDeclaredConstant(id); in FoldInstructionToConstant()
632 const_mgr->GetDefiningInstruction(folded_const, inst->type_id()); in FoldInstructionToConstant()
655 const_mgr->GetConstant(const_mgr->GetType(inst), {result_val}); in FoldInstructionToConstant()
657 const_mgr->GetDefiningInstruction(result_const, inst->type_id()); in FoldInstructionToConstant()
Dmerge_return_pass.cpp453 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in RecordReturned() local
455 const_mgr->GetConstant(bool_type, {true}); in RecordReturned()
456 constant_true_ = const_mgr->GetDefiningInstruction(true_const); in RecordReturned()
524 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in AddReturnFlag() local
531 const_mgr->GetConstant(bool_type, {false}); in AddReturnFlag()
533 const_mgr->GetDefiningInstruction(false_const)->result_id(); in AddReturnFlag()
Dscalar_replacement_pass.cpp761 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in GetUsedComponents() local
764 const_mgr->FindDeclaredConstant(index_id); in GetUsedComponents()
806 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in CreateNullConstant() local
809 const analysis::Constant* null_const = const_mgr->GetConstant(type, {}); in CreateNullConstant()
811 const_mgr->GetDefiningInstruction(null_const, type_id); in CreateNullConstant()
Dir_builder.h363 analysis::ConstantManager* const_mgr = GetContext()->get_constant_mgr(); in GetNullId() local
365 const analysis::Constant* null_const = const_mgr->GetConstant(type, {}); in GetNullId()
367 const_mgr->GetDefiningInstruction(null_const, type_id); in GetNullId()
Dconstants.cpp352 analysis::ConstantManager* const_mgr) const { in GetVectorComponents()
364 const_mgr->GetConstant(element_type, {}); in GetVectorComponents()
Dconstants.h127 ConstantManager* const_mgr) const;
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dconst_folding_rules.cpp50 analysis::ConstantManager* const_mgr = context->get_constant_mgr(); in FoldExtractWithConstants() local
52 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), {}); in FoldExtractWithConstants()
75 analysis::ConstantManager* const_mgr = context->get_constant_mgr(); in FoldVectorShuffleWithConstants() local
84 const_mgr->GetConstant(element_type, {}); in FoldVectorShuffleWithConstants()
93 const_mgr->GetConstant(element_type, {}); in FoldVectorShuffleWithConstants()
106 const_mgr->GetDefiningInstruction(c1_components[index]); in FoldVectorShuffleWithConstants()
109 Instruction* member_inst = const_mgr->GetDefiningInstruction( in FoldVectorShuffleWithConstants()
116 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorShuffleWithConstants()
125 analysis::ConstantManager* const_mgr = context->get_constant_mgr(); in FoldVectorTimesScalar() local
144 return const_mgr->GetConstant(type_mgr->GetType(inst->type_id()), ids); in FoldVectorTimesScalar()
[all …]
Dfolding_rules.cpp89 uint32_t NegateFloatingPointConstant(analysis::ConstantManager* const_mgr, in NegateFloatingPointConstant() argument
105 const_mgr->GetConstant(c->type(), std::move(words)); in NegateFloatingPointConstant()
106 return const_mgr->GetDefiningInstruction(negated_const)->result_id(); in NegateFloatingPointConstant()
117 uint32_t NegateIntegerConstant(analysis::ConstantManager* const_mgr, in NegateIntegerConstant() argument
132 const_mgr->GetConstant(c->type(), std::move(words)); in NegateIntegerConstant()
133 return const_mgr->GetDefiningInstruction(negated_const)->result_id(); in NegateIntegerConstant()
137 uint32_t NegateVectorConstant(analysis::ConstantManager* const_mgr, in NegateVectorConstant() argument
139 assert(const_mgr && c); in NegateVectorConstant()
143 return const_mgr->GetDefiningInstruction(c)->result_id(); in NegateVectorConstant()
150 words.push_back(NegateFloatingPointConstant(const_mgr, comp)); in NegateVectorConstant()
[all …]
Dcopy_prop_arrays.cpp259 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in BuildMemoryObjectFromExtract() local
275 const_mgr->GetConstant(uint32_type, {index}); in BuildMemoryObjectFromExtract()
277 const_mgr->GetDefiningInstruction(index_const)->result_id()); in BuildMemoryObjectFromExtract()
306 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in BuildMemoryObjectFromCompositeConstruct() local
308 const_mgr->FindDeclaredConstant(memory_object->AccessChain().back()); in BuildMemoryObjectFromCompositeConstruct()
342 const_mgr->FindDeclaredConstant(member_object->AccessChain().back()); in BuildMemoryObjectFromCompositeConstruct()
361 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in BuildMemoryObjectFromInsert() local
370 const_mgr->FindDeclaredConstant(array_type->LengthId()); in BuildMemoryObjectFromInsert()
403 const_mgr->FindDeclaredConstant(memory_object->AccessChain().back()); in BuildMemoryObjectFromInsert()
450 const_mgr->FindDeclaredConstant( in BuildMemoryObjectFromInsert()
[all …]
Dreduce_load_size.cpp58 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in ReplaceExtract() local
108 const_mgr->GetConstant(uint32_type, {index}); in ReplaceExtract()
109 ids.push_back(const_mgr->GetDefiningInstruction(index_const)->result_id()); in ReplaceExtract()
154 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in ShouldReplaceExtract() local
161 const_mgr->FindDeclaredConstant(load_type->AsArray()->LengthId()); in ShouldReplaceExtract()
Dreplace_invalid_opc.cpp172 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in GetSpecialConstant() local
183 special_const = const_mgr->GetConstant(type_mgr->GetType(type_id), ids); in GetSpecialConstant()
191 const_mgr->GetConstant(type_mgr->GetType(type_id), literal_words); in GetSpecialConstant()
194 return const_mgr->GetDefiningInstruction(special_const)->result_id(); in GetSpecialConstant()
Dfold.cpp623 analysis::ConstantManager* const_mgr = context_->get_constant_mgr(); in FoldInstructionToConstant() local
632 inst->ForEachInId([&constants, &missing_constants, const_mgr, in FoldInstructionToConstant()
635 const analysis::Constant* const_op = const_mgr->FindDeclaredConstant(id); in FoldInstructionToConstant()
651 const_mgr->GetDefiningInstruction(folded_const, inst->type_id()); in FoldInstructionToConstant()
674 const_mgr->GetConstant(const_mgr->GetType(inst), {result_val}); in FoldInstructionToConstant()
676 const_mgr->GetDefiningInstruction(result_const, inst->type_id()); in FoldInstructionToConstant()
Dmerge_return_pass.cpp469 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in RecordReturned() local
471 const_mgr->GetConstant(bool_type, {true}); in RecordReturned()
472 constant_true_ = const_mgr->GetDefiningInstruction(true_const); in RecordReturned()
540 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in AddReturnFlag() local
547 const_mgr->GetConstant(bool_type, {false}); in AddReturnFlag()
549 const_mgr->GetDefiningInstruction(false_const)->result_id(); in AddReturnFlag()
Dscalar_replacement_pass.cpp763 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in GetUsedComponents() local
766 const_mgr->FindDeclaredConstant(index_id); in GetUsedComponents()
798 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in CreateNullConstant() local
801 const analysis::Constant* null_const = const_mgr->GetConstant(type, {}); in CreateNullConstant()
803 const_mgr->GetDefiningInstruction(null_const, type_id); in CreateNullConstant()
Dir_builder.h363 analysis::ConstantManager* const_mgr = GetContext()->get_constant_mgr(); in GetNullId() local
365 const analysis::Constant* null_const = const_mgr->GetConstant(type, {}); in GetNullId()
367 const_mgr->GetDefiningInstruction(null_const, type_id); in GetNullId()
Dconstants.cpp352 analysis::ConstantManager* const_mgr) const { in GetVectorComponents()
364 const_mgr->GetConstant(element_type, {}); in GetVectorComponents()
Dconstants.h127 ConstantManager* const_mgr) const;
/external/swiftshader/third_party/SPIRV-Tools/source/reduce/
Dstructured_loop_to_selection_reduction_opportunity.cpp223 auto const_mgr = context_->get_constant_mgr(); in ChangeLoopToSelection() local
224 auto true_const = const_mgr->GetConstant(bool_type, {true}); in ChangeLoopToSelection()
226 const_mgr->GetDefiningInstruction(true_const)->result_id(); in ChangeLoopToSelection()
/external/deqp-deps/SPIRV-Tools/source/reduce/
Dstructured_loop_to_selection_reduction_opportunity.cpp221 auto const_mgr = context_->get_constant_mgr(); in ChangeLoopToSelection() local
222 auto true_const = const_mgr->GetConstant(bool_type, {true}); in ChangeLoopToSelection()
224 const_mgr->GetDefiningInstruction(true_const)->result_id(); in ChangeLoopToSelection()