Home
last modified time | relevance | path

Searched refs:phi_ids (Results 1 – 18 of 18) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_add_dead_continues.cpp55 std::vector<uint32_t> phi_ids; in Apply() local
59 continue_block->ForEachPhiInst([this, &phi_ids](opt::Instruction* phi) { in Apply()
65 phi_ids.push_back(FindOrCreateZeroConstant(phi->type_id(), true)); in Apply()
67 phi_ids.push_back(FindOrCreateGlobalUndef(phi->type_id())); in Apply()
81 block.id(), condition_value, std::move(phi_ids)); in Apply()
Dfuzzer_pass_add_dead_breaks.cpp59 std::vector<uint32_t> phi_ids; in Apply() local
68 merge_block->ForEachPhiInst([this, &phi_ids](opt::Instruction* phi) { in Apply()
74 phi_ids.push_back(FindOrCreateZeroConstant(phi->type_id(), true)); in Apply()
76 phi_ids.push_back(FindOrCreateGlobalUndef(phi->type_id())); in Apply()
87 block.id(), merge_block->id(), break_condition, std::move(phi_ids)); in Apply()
Dfuzzer_pass.cpp662 std::vector<uint32_t> phi_ids; in GetOrCreateSimpleLoopPreheader() local
665 [this, &phi_ids](opt::Instruction* /* unused */) { in GetOrCreateSimpleLoopPreheader()
666 phi_ids.push_back(GetFuzzerContext()->GetFreshId()); in GetOrCreateSimpleLoopPreheader()
672 TransformationAddLoopPreheader(header_id, preheader_id, phi_ids)); in GetOrCreateSimpleLoopPreheader()
Dfuzzer_util.cpp125 const google::protobuf::RepeatedField<google::protobuf::uint32>& phi_ids) { in PhiIdsOkForNewEdge() argument
131 return phi_ids.empty(); in PhiIdsOkForNewEdge()
146 if (phi_index == static_cast<uint32_t>(phi_ids.size())) { in PhiIdsOkForNewEdge()
153 context->get_def_use_mgr()->GetDef(phi_ids[phi_index]); in PhiIdsOkForNewEdge()
218 const google::protobuf::RepeatedField<google::protobuf::uint32>& phi_ids) { in AddUnreachableEdgeAndUpdateOpPhis() argument
219 assert(PhiIdsOkForNewEdge(context, bb_from, bb_to, phi_ids) && in AddUnreachableEdgeAndUpdateOpPhis()
234 assert(phi_index < static_cast<uint32_t>(phi_ids.size()) && in AddUnreachableEdgeAndUpdateOpPhis()
236 inst.AddOperand({SPV_OPERAND_TYPE_ID, {phi_ids[phi_index]}}); in AddUnreachableEdgeAndUpdateOpPhis()
Dfuzzer_util.h70 const google::protobuf::RepeatedField<google::protobuf::uint32>& phi_ids);
93 const google::protobuf::RepeatedField<google::protobuf::uint32>& phi_ids);
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dfuzzer_pass_add_dead_continues.cpp55 std::vector<uint32_t> phi_ids; in Apply() local
59 continue_block->ForEachPhiInst([this, &phi_ids](opt::Instruction* phi) { in Apply()
65 phi_ids.push_back(FindOrCreateZeroConstant(phi->type_id(), true)); in Apply()
67 phi_ids.push_back(FindOrCreateGlobalUndef(phi->type_id())); in Apply()
81 block.id(), condition_value, std::move(phi_ids)); in Apply()
Dfuzzer_pass_add_dead_breaks.cpp59 std::vector<uint32_t> phi_ids; in Apply() local
68 merge_block->ForEachPhiInst([this, &phi_ids](opt::Instruction* phi) { in Apply()
74 phi_ids.push_back(FindOrCreateZeroConstant(phi->type_id(), true)); in Apply()
76 phi_ids.push_back(FindOrCreateGlobalUndef(phi->type_id())); in Apply()
87 block.id(), merge_block->id(), break_condition, std::move(phi_ids)); in Apply()
Dfuzzer_pass.cpp662 std::vector<uint32_t> phi_ids; in GetOrCreateSimpleLoopPreheader() local
665 [this, &phi_ids](opt::Instruction* /* unused */) { in GetOrCreateSimpleLoopPreheader()
666 phi_ids.push_back(GetFuzzerContext()->GetFreshId()); in GetOrCreateSimpleLoopPreheader()
672 TransformationAddLoopPreheader(header_id, preheader_id, phi_ids)); in GetOrCreateSimpleLoopPreheader()
Dfuzzer_util.cpp125 const google::protobuf::RepeatedField<google::protobuf::uint32>& phi_ids) { in PhiIdsOkForNewEdge() argument
131 return phi_ids.empty(); in PhiIdsOkForNewEdge()
146 if (phi_index == static_cast<uint32_t>(phi_ids.size())) { in PhiIdsOkForNewEdge()
153 context->get_def_use_mgr()->GetDef(phi_ids[phi_index]); in PhiIdsOkForNewEdge()
218 const google::protobuf::RepeatedField<google::protobuf::uint32>& phi_ids) { in AddUnreachableEdgeAndUpdateOpPhis() argument
219 assert(PhiIdsOkForNewEdge(context, bb_from, bb_to, phi_ids) && in AddUnreachableEdgeAndUpdateOpPhis()
234 assert(phi_index < static_cast<uint32_t>(phi_ids.size()) && in AddUnreachableEdgeAndUpdateOpPhis()
236 inst.AddOperand({SPV_OPERAND_TYPE_ID, {phi_ids[phi_index]}}); in AddUnreachableEdgeAndUpdateOpPhis()
Dfuzzer_util.h70 const google::protobuf::RepeatedField<google::protobuf::uint32>& phi_ids);
93 const google::protobuf::RepeatedField<google::protobuf::uint32>& phi_ids);
/third_party/spirv-tools/source/fuzz/
Dfuzzer_pass_add_dead_continues.cpp55 std::vector<uint32_t> phi_ids; in Apply() local
59 continue_block->ForEachPhiInst([this, &phi_ids](opt::Instruction* phi) { in Apply()
65 phi_ids.push_back(FindOrCreateZeroConstant(phi->type_id(), true)); in Apply()
67 phi_ids.push_back(FindOrCreateGlobalUndef(phi->type_id())); in Apply()
81 block.id(), condition_value, std::move(phi_ids)); in Apply()
Dfuzzer_pass_add_dead_breaks.cpp59 std::vector<uint32_t> phi_ids; in Apply() local
68 merge_block->ForEachPhiInst([this, &phi_ids](opt::Instruction* phi) { in Apply()
74 phi_ids.push_back(FindOrCreateZeroConstant(phi->type_id(), true)); in Apply()
76 phi_ids.push_back(FindOrCreateGlobalUndef(phi->type_id())); in Apply()
87 block.id(), merge_block->id(), break_condition, std::move(phi_ids)); in Apply()
Dfuzzer_pass.cpp662 std::vector<uint32_t> phi_ids; in GetOrCreateSimpleLoopPreheader() local
665 [this, &phi_ids](opt::Instruction* /* unused */) { in GetOrCreateSimpleLoopPreheader()
666 phi_ids.push_back(GetFuzzerContext()->GetFreshId()); in GetOrCreateSimpleLoopPreheader()
672 TransformationAddLoopPreheader(header_id, preheader_id, phi_ids)); in GetOrCreateSimpleLoopPreheader()
Dfuzzer_util.cpp125 const google::protobuf::RepeatedField<google::protobuf::uint32>& phi_ids) { in PhiIdsOkForNewEdge() argument
131 return phi_ids.empty(); in PhiIdsOkForNewEdge()
146 if (phi_index == static_cast<uint32_t>(phi_ids.size())) { in PhiIdsOkForNewEdge()
153 context->get_def_use_mgr()->GetDef(phi_ids[phi_index]); in PhiIdsOkForNewEdge()
218 const google::protobuf::RepeatedField<google::protobuf::uint32>& phi_ids) { in AddUnreachableEdgeAndUpdateOpPhis() argument
219 assert(PhiIdsOkForNewEdge(context, bb_from, bb_to, phi_ids) && in AddUnreachableEdgeAndUpdateOpPhis()
234 assert(phi_index < static_cast<uint32_t>(phi_ids.size()) && in AddUnreachableEdgeAndUpdateOpPhis()
236 inst.AddOperand({SPV_OPERAND_TYPE_ID, {phi_ids[phi_index]}}); in AddUnreachableEdgeAndUpdateOpPhis()
Dfuzzer_util.h70 const google::protobuf::RepeatedField<google::protobuf::uint32>& phi_ids);
93 const google::protobuf::RepeatedField<google::protobuf::uint32>& phi_ids);
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate_id.cpp63 std::unordered_set<uint32_t> phi_ids; in CheckIdDefinitionDominateUse() local
75 if (phi_ids.insert(use->id()).second) { in CheckIdDefinitionDominateUse()
/third_party/spirv-tools/source/val/
Dvalidate_id.cpp63 std::unordered_set<uint32_t> phi_ids; in CheckIdDefinitionDominateUse() local
75 if (phi_ids.insert(use->id()).second) { in CheckIdDefinitionDominateUse()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_id.cpp63 std::unordered_set<uint32_t> phi_ids; in CheckIdDefinitionDominateUse() local
75 if (phi_ids.insert(use->id()).second) { in CheckIdDefinitionDominateUse()