/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/fact_manager/ |
D | irrelevant_value_facts.cpp | 28 : 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 …]
|
D | constant_uniform_facts.cpp | 25 : 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 …]
|
D | data_synonym_and_id_equation_facts.cpp | 56 : 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 …]
|
D | livesafe_function_facts.cpp | 24 : 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()
|
D | dead_block_facts.cpp | 24 : ir_context_(ir_context) {} in DeadBlockFacts() 27 if (!fuzzerutil::MaybeFindBlock(ir_context_, fact.block_id())) { in MaybeAddFact()
|
D | livesafe_function_facts.h | 43 opt::IRContext* ir_context_; variable
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/fact_manager/ |
D | irrelevant_value_facts.cpp | 28 : 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 …]
|
D | constant_uniform_facts.cpp | 25 : 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 …]
|
D | data_synonym_and_id_equation_facts.cpp | 56 : 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 …]
|
D | livesafe_function_facts.cpp | 24 : 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()
|
D | dead_block_facts.cpp | 24 : ir_context_(ir_context) {} in DeadBlockFacts() 27 if (!fuzzerutil::MaybeFindBlock(ir_context_, fact.block_id())) { in MaybeAddFact()
|
D | livesafe_function_facts.h | 43 opt::IRContext* ir_context_; variable
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/fact_manager/ |
D | irrelevant_value_facts.cpp | 28 : 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 …]
|
D | constant_uniform_facts.cpp | 25 : 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 …]
|
D | data_synonym_and_id_equation_facts.cpp | 56 : 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 …]
|
D | livesafe_function_facts.cpp | 24 : 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()
|
D | dead_block_facts.cpp | 24 : 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/ |
D | comparator_deep_blocks_first.h | 31 : 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_;
|
D | fuzzer.cpp | 119 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()
|
D | available_instructions.cpp | 24 : 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 []()
|
D | fuzzer_pass.h | 47 opt::IRContext* GetIRContext() const { return ir_context_; } in GetIRContext() 320 opt::IRContext* ir_context_;
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | comparator_deep_blocks_first.h | 31 : 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_;
|
D | fuzzer.cpp | 132 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/ |
D | comparator_deep_blocks_first.h | 31 : 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_;
|
D | fuzzer.cpp | 132 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 …]
|