Home
last modified time | relevance | path

Searched refs:ir_context_ (Results 1 – 25 of 47) sorted by relevance

12

/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/fact_manager/
Dirrelevant_value_facts.cpp28 : ir_context_(ir_context) {} in IrrelevantValueFacts()
33 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.pointer_id()); in MaybeAddFact()
39 if (!ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact()
57 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.result_id()); in MaybeAddFact()
63 if (ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact()
90 auto def = ir_context_->get_def_use_mgr()->GetDef(result_id); in IdIsIrrelevant()
94 auto type = ir_context_->get_type_mgr()->GetType(def->type_id()); in IdIsIrrelevant()
100 return ir_context_->get_instr_block(result_id) && in IdIsIrrelevant()
102 ir_context_->get_instr_block(result_id)->id()); in IdIsIrrelevant()
112 auto block = fuzzerutil::MaybeFindBlock(ir_context_, block_id); in GetIrrelevantIds()
[all …]
Dconstant_uniform_facts.cpp25 : ir_context_(ir_context) {} in ConstantUniformFacts()
30 auto type = ir_context_->get_type_mgr()->GetType(type_id); in GetConstantId()
37 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId()
45 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId()
50 return ir_context_->get_constant_mgr()->FindDeclaredConstant(known_constant, in GetConstantId()
97 auto constant_inst = ir_context_->get_def_use_mgr()->GetDef(constant_id); in GetUniformDescriptorsForConstant()
172 fact.uniform_buffer_element_descriptor(), ir_context_, true); in MaybeAddFact()
182 ir_context_->get_type_mgr()->GetType(uniform_variable->type_id()); in MaybeAddFact()
191 ir_context_->get_def_use_mgr()->GetDef(uniform_variable->type_id()); in MaybeAddFact()
196 ir_context_, composite_type, in MaybeAddFact()
[all …]
Ddata_synonym_and_id_equation_facts.cpp56 : ir_context_(ir_context) {} in DataSynonymAndIdEquationFacts()
297 ir_context_->get_type_mgr()->GetType(fuzzerutil::WalkCompositeTypeIndices( in ComputeConversionDataSynonymFacts()
298 ir_context_, fuzzerutil::GetTypeId(ir_context_, dd.object()), in ComputeConversionDataSynonymFacts()
360 ir_context_, in ComputeCompositeDataSynonymFacts()
361 ir_context_->get_def_use_mgr()->GetDef(dd1.object())->type_id(), in ComputeCompositeDataSynonymFacts()
363 auto type = ir_context_->get_type_mgr()->GetType(type_id); in ComputeCompositeDataSynonymFacts()
364 auto type_instruction = ir_context_->get_def_use_mgr()->GetDef(type_id); in ComputeCompositeDataSynonymFacts()
373 fuzzerutil::GetArraySize(*type_instruction, ir_context_); in ComputeCompositeDataSynonymFacts()
592 fuzzerutil::GetTypeId(ir_context_, dd1->object()); in ComputeClosureOfFacts()
596 ir_context_, dd1_root_type_id, dd1_prefix.index()); in ComputeClosureOfFacts()
[all …]
Dlivesafe_function_facts.cpp24 : ir_context_(ir_context) {} in LivesafeFunctionFacts()
28 if (!fuzzerutil::FindFunction(ir_context_, fact.function_id())) { in MaybeAddFact()
32 if (fuzzerutil::FunctionIsEntryPoint(ir_context_, fact.function_id())) { in MaybeAddFact()
Ddead_block_facts.cpp24 : ir_context_(ir_context) {} in DeadBlockFacts()
27 if (!fuzzerutil::MaybeFindBlock(ir_context_, fact.block_id())) { in MaybeAddFact()
Dlivesafe_function_facts.h43 opt::IRContext* ir_context_; variable
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/fact_manager/
Dirrelevant_value_facts.cpp28 : ir_context_(ir_context) {} in IrrelevantValueFacts()
33 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.pointer_id()); in MaybeAddFact()
39 if (!ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact()
57 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.result_id()); in MaybeAddFact()
63 if (ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact()
90 auto def = ir_context_->get_def_use_mgr()->GetDef(result_id); in IdIsIrrelevant()
94 auto type = ir_context_->get_type_mgr()->GetType(def->type_id()); in IdIsIrrelevant()
100 return ir_context_->get_instr_block(result_id) && in IdIsIrrelevant()
102 ir_context_->get_instr_block(result_id)->id()); in IdIsIrrelevant()
112 auto block = fuzzerutil::MaybeFindBlock(ir_context_, block_id); in GetIrrelevantIds()
[all …]
Dconstant_uniform_facts.cpp25 : ir_context_(ir_context) {} in ConstantUniformFacts()
30 auto type = ir_context_->get_type_mgr()->GetType(type_id); in GetConstantId()
37 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId()
45 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId()
50 return ir_context_->get_constant_mgr()->FindDeclaredConstant(known_constant, in GetConstantId()
97 auto constant_inst = ir_context_->get_def_use_mgr()->GetDef(constant_id); in GetUniformDescriptorsForConstant()
172 fact.uniform_buffer_element_descriptor(), ir_context_, true); in MaybeAddFact()
182 ir_context_->get_type_mgr()->GetType(uniform_variable->type_id()); in MaybeAddFact()
191 ir_context_->get_def_use_mgr()->GetDef(uniform_variable->type_id()); in MaybeAddFact()
196 ir_context_, composite_type, in MaybeAddFact()
[all …]
Ddata_synonym_and_id_equation_facts.cpp56 : ir_context_(ir_context) {} in DataSynonymAndIdEquationFacts()
297 ir_context_->get_type_mgr()->GetType(fuzzerutil::WalkCompositeTypeIndices( in ComputeConversionDataSynonymFacts()
298 ir_context_, fuzzerutil::GetTypeId(ir_context_, dd.object()), in ComputeConversionDataSynonymFacts()
360 ir_context_, in ComputeCompositeDataSynonymFacts()
361 ir_context_->get_def_use_mgr()->GetDef(dd1.object())->type_id(), in ComputeCompositeDataSynonymFacts()
363 auto type = ir_context_->get_type_mgr()->GetType(type_id); in ComputeCompositeDataSynonymFacts()
364 auto type_instruction = ir_context_->get_def_use_mgr()->GetDef(type_id); in ComputeCompositeDataSynonymFacts()
373 fuzzerutil::GetArraySize(*type_instruction, ir_context_); in ComputeCompositeDataSynonymFacts()
592 fuzzerutil::GetTypeId(ir_context_, dd1->object()); in ComputeClosureOfFacts()
596 ir_context_, dd1_root_type_id, dd1_prefix.index()); in ComputeClosureOfFacts()
[all …]
Dlivesafe_function_facts.cpp24 : ir_context_(ir_context) {} in LivesafeFunctionFacts()
28 if (!fuzzerutil::FindFunction(ir_context_, fact.function_id())) { in MaybeAddFact()
32 if (fuzzerutil::FunctionIsEntryPoint(ir_context_, fact.function_id())) { in MaybeAddFact()
Ddead_block_facts.cpp24 : ir_context_(ir_context) {} in DeadBlockFacts()
27 if (!fuzzerutil::MaybeFindBlock(ir_context_, fact.block_id())) { in MaybeAddFact()
Dlivesafe_function_facts.h43 opt::IRContext* ir_context_; variable
/external/deqp-deps/SPIRV-Tools/source/fuzz/fact_manager/
Dirrelevant_value_facts.cpp28 : ir_context_(ir_context) {} in IrrelevantValueFacts()
33 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.pointer_id()); in MaybeAddFact()
39 if (!ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact()
57 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.result_id()); in MaybeAddFact()
63 if (ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact()
90 auto def = ir_context_->get_def_use_mgr()->GetDef(result_id); in IdIsIrrelevant()
94 auto type = ir_context_->get_type_mgr()->GetType(def->type_id()); in IdIsIrrelevant()
100 return ir_context_->get_instr_block(result_id) && in IdIsIrrelevant()
102 ir_context_->get_instr_block(result_id)->id()); in IdIsIrrelevant()
112 auto block = fuzzerutil::MaybeFindBlock(ir_context_, block_id); in GetIrrelevantIds()
[all …]
Dconstant_uniform_facts.cpp25 : ir_context_(ir_context) {} in ConstantUniformFacts()
30 auto type = ir_context_->get_type_mgr()->GetType(type_id); in GetConstantId()
37 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId()
45 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId()
50 return ir_context_->get_constant_mgr()->FindDeclaredConstant(known_constant, in GetConstantId()
97 auto constant_inst = ir_context_->get_def_use_mgr()->GetDef(constant_id); in GetUniformDescriptorsForConstant()
172 fact.uniform_buffer_element_descriptor(), ir_context_, true); in MaybeAddFact()
182 ir_context_->get_type_mgr()->GetType(uniform_variable->type_id()); in MaybeAddFact()
191 ir_context_->get_def_use_mgr()->GetDef(uniform_variable->type_id()); in MaybeAddFact()
196 ir_context_, composite_type, in MaybeAddFact()
[all …]
Ddata_synonym_and_id_equation_facts.cpp56 : ir_context_(ir_context) {} in DataSynonymAndIdEquationFacts()
297 ir_context_->get_type_mgr()->GetType(fuzzerutil::WalkCompositeTypeIndices( in ComputeConversionDataSynonymFacts()
298 ir_context_, fuzzerutil::GetTypeId(ir_context_, dd.object()), in ComputeConversionDataSynonymFacts()
360 ir_context_, in ComputeCompositeDataSynonymFacts()
361 ir_context_->get_def_use_mgr()->GetDef(dd1.object())->type_id(), in ComputeCompositeDataSynonymFacts()
363 auto type = ir_context_->get_type_mgr()->GetType(type_id); in ComputeCompositeDataSynonymFacts()
364 auto type_instruction = ir_context_->get_def_use_mgr()->GetDef(type_id); in ComputeCompositeDataSynonymFacts()
373 fuzzerutil::GetArraySize(*type_instruction, ir_context_); in ComputeCompositeDataSynonymFacts()
592 fuzzerutil::GetTypeId(ir_context_, dd1->object()); in ComputeClosureOfFacts()
596 ir_context_, dd1_root_type_id, dd1_prefix.index()); in ComputeClosureOfFacts()
[all …]
Dlivesafe_function_facts.cpp24 : ir_context_(ir_context) {} in LivesafeFunctionFacts()
28 if (!fuzzerutil::FindFunction(ir_context_, fact.function_id())) { in MaybeAddFact()
32 if (fuzzerutil::FunctionIsEntryPoint(ir_context_, fact.function_id())) { in MaybeAddFact()
Ddead_block_facts.cpp24 : ir_context_(ir_context) {} in DeadBlockFacts()
27 if (!fuzzerutil::MaybeFindBlock(ir_context_, fact.block_id())) { in MaybeAddFact()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/
Dcomparator_deep_blocks_first.h31 : ir_context_(ir_context) {} in ComparatorDeepBlocksFirst()
34 return this->operator()(fuzzerutil::MaybeFindBlock(ir_context_, bb1), in operator()
35 fuzzerutil::MaybeFindBlock(ir_context_, bb2)); in operator()
42 return ir_context_->GetStructuredCFGAnalysis()->NestingDepth(bb1->id()) > in operator()
43 ir_context_->GetStructuredCFGAnalysis()->NestingDepth(bb2->id()); in operator()
47 opt::IRContext* ir_context_;
Dfuzzer.cpp119 ir_context_(std::move(ir_context)), in Fuzzer()
127 assert(ir_context_ && "IRContext is not initialized"); in Fuzzer()
130 assert(fuzzerutil::IsValidAndWellFormed(ir_context_.get(), validator_options_, in Fuzzer()
257 ir_context_.get(), transformation_context_.get(), fuzzer_context_.get(), in MaybeAddRepeatedPass()
267 ir_context_.get(), transformation_context_.get(), fuzzer_context_.get(), in MaybeAddFinalPass()
275 fuzzerutil::IsValidAndWellFormed(ir_context_.get(), validator_options_, in ApplyPassAndCheckValidity()
279 opt::IRContext* Fuzzer::GetIRContext() { return ir_context_.get(); } in GetIRContext()
301 if (ir_context_->module()->id_bound() >= in Run()
Davailable_instructions.cpp24 : ir_context_(ir_context) { in AvailableInstructions()
140 auto block = available_instructions_.ir_context_->get_instr_block(inst_); in operator []()
155 available_instructions_.ir_context_->GetDominatorAnalysis(function); in operator []()
Dfuzzer_pass.h47 opt::IRContext* GetIRContext() const { return ir_context_; } in GetIRContext()
320 opt::IRContext* ir_context_;
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dcomparator_deep_blocks_first.h31 : ir_context_(ir_context) {} in ComparatorDeepBlocksFirst()
34 return this->operator()(fuzzerutil::MaybeFindBlock(ir_context_, bb1), in operator()
35 fuzzerutil::MaybeFindBlock(ir_context_, bb2)); in operator()
42 return ir_context_->GetStructuredCFGAnalysis()->NestingDepth(bb1->id()) > in operator()
43 ir_context_->GetStructuredCFGAnalysis()->NestingDepth(bb2->id()); in operator()
47 opt::IRContext* ir_context_;
Dfuzzer.cpp132 ir_context_(nullptr), in Fuzzer()
146 ir_context_.get(), transformation_context_.get(), fuzzer_context_.get(), in MaybeAddRepeatedPass()
156 ir_context_.get(), transformation_context_.get(), fuzzer_context_.get(), in MaybeAddFinalPass()
164 fuzzerutil::IsValidAndWellFormed(ir_context_.get(), validator_options_, in ApplyPassAndCheckValidity()
173 assert(ir_context_ == nullptr && fuzzer_context_ == nullptr && in Run()
196 ir_context_ = in Run()
198 assert(ir_context_); in Run()
207 auto minimum_fresh_id = ir_context_->module()->id_bound() + kIdBoundGap; in Run()
212 MakeUnique<FactManager>(ir_context_.get()), validator_options_); in Run()
355 ir_context_->module()->ToBinary(&binary_out, false); in Run()
[all …]
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dcomparator_deep_blocks_first.h31 : ir_context_(ir_context) {} in ComparatorDeepBlocksFirst()
34 return this->operator()(fuzzerutil::MaybeFindBlock(ir_context_, bb1), in operator()
35 fuzzerutil::MaybeFindBlock(ir_context_, bb2)); in operator()
42 return ir_context_->GetStructuredCFGAnalysis()->NestingDepth(bb1->id()) > in operator()
43 ir_context_->GetStructuredCFGAnalysis()->NestingDepth(bb2->id()); in operator()
47 opt::IRContext* ir_context_;
Dfuzzer.cpp132 ir_context_(nullptr), in Fuzzer()
146 ir_context_.get(), transformation_context_.get(), fuzzer_context_.get(), in MaybeAddRepeatedPass()
156 ir_context_.get(), transformation_context_.get(), fuzzer_context_.get(), in MaybeAddFinalPass()
164 fuzzerutil::IsValidAndWellFormed(ir_context_.get(), validator_options_, in ApplyPassAndCheckValidity()
173 assert(ir_context_ == nullptr && fuzzer_context_ == nullptr && in Run()
196 ir_context_ = in Run()
198 assert(ir_context_); in Run()
207 auto minimum_fresh_id = ir_context_->module()->id_bound() + kIdBoundGap; in Run()
212 MakeUnique<FactManager>(ir_context_.get()), validator_options_); in Run()
355 ir_context_->module()->ToBinary(&binary_out, false); in Run()
[all …]

12