Home
last modified time | relevance | path

Searched refs:work_list (Results 1 – 25 of 30) sorted by relevance

12

/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dvector_dce.cpp45 std::vector<WorkListItem> work_list; in FindLiveComponents() local
54 [&work_list, this, live_components](Instruction* current_inst) { in FindLiveComponents()
61 &work_list); in FindLiveComponents()
66 for (uint32_t i = 0; i < work_list.size(); i++) { in FindLiveComponents()
67 WorkListItem current_item = work_list[i]; in FindLiveComponents()
73 live_components, &work_list); in FindLiveComponents()
76 MarkInsertUsesAsLive(current_item, live_components, &work_list); in FindLiveComponents()
79 MarkVectorShuffleUsesAsLive(current_item, live_components, &work_list); in FindLiveComponents()
83 &work_list); in FindLiveComponents()
88 &work_list); in FindLiveComponents()
[all …]
Dsimplification_pass.cpp37 std::vector<Instruction*>* work_list) { in AddNewOperands() argument
40 [&inst_seen, &def_use_mgr, &work_list](uint32_t* iid) { in AddNewOperands()
43 work_list->push_back(iid_inst); in AddNewOperands()
55 std::vector<Instruction*> work_list; in SimplifyFunction() local
64 [&modified, &process_phis, &work_list, &in_work_list, &inst_to_kill, in SimplifyFunction()
80 get_def_use_mgr()->ForEachUser(inst, [&work_list, &process_phis, in SimplifyFunction()
84 work_list.push_back(use); in SimplifyFunction()
88 AddNewOperands(inst, &inst_seen, &work_list); in SimplifyFunction()
114 for (size_t i = 0; i < work_list.size(); ++i) { in SimplifyFunction()
115 Instruction* inst = work_list[i]; in SimplifyFunction()
[all …]
Dvector_dce.h108 std::vector<WorkListItem>* work_list);
116 std::vector<WorkListItem>* work_list);
124 std::vector<WorkListItem>* work_list);
132 std::vector<WorkListItem>* work_list);
140 std::vector<WorkListItem>* work_list);
147 std::vector<WorkListItem>* work_list);
Ddead_branch_elim_pass.cpp609 std::vector<uint32_t> work_list; in AddBlocksWithBackEdge() local
610 work_list.push_back(cont_id); in AddBlocksWithBackEdge()
612 while (!work_list.empty()) { in AddBlocksWithBackEdge()
613 uint32_t bb_id = work_list.back(); in AddBlocksWithBackEdge()
614 work_list.pop_back(); in AddBlocksWithBackEdge()
619 bb->ForEachSuccessorLabel([header_id, &visited, &work_list, in AddBlocksWithBackEdge()
622 work_list.push_back(*succ_label_id); in AddBlocksWithBackEdge()
Dir_context.cpp219 std::vector<Instruction*> work_list; in KillNonSemanticInfo() local
222 work_list.push_back(inst); in KillNonSemanticInfo()
224 while (!work_list.empty()) { in KillNonSemanticInfo()
225 auto* i = work_list.back(); in KillNonSemanticInfo()
226 work_list.pop_back(); in KillNonSemanticInfo()
228 i, [&work_list, &to_kill, &seen](Instruction* user) { in KillNonSemanticInfo()
230 work_list.push_back(user); in KillNonSemanticInfo()
Ddesc_sroa.cpp399 std::vector<Instruction*> work_list; in ReplaceLoadedValue() local
401 value->result_id(), [this, &work_list](Instruction* use) { in ReplaceLoadedValue()
407 work_list.push_back(use); in ReplaceLoadedValue()
415 for (Instruction* use : work_list) { in ReplaceLoadedValue()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/
Dvector_dce.cpp45 std::vector<WorkListItem> work_list; in FindLiveComponents() local
54 [&work_list, this, live_components](Instruction* current_inst) { in FindLiveComponents()
61 &work_list); in FindLiveComponents()
66 for (uint32_t i = 0; i < work_list.size(); i++) { in FindLiveComponents()
67 WorkListItem current_item = work_list[i]; in FindLiveComponents()
73 live_components, &work_list); in FindLiveComponents()
76 MarkInsertUsesAsLive(current_item, live_components, &work_list); in FindLiveComponents()
79 MarkVectorShuffleUsesAsLive(current_item, live_components, &work_list); in FindLiveComponents()
83 &work_list); in FindLiveComponents()
88 &work_list); in FindLiveComponents()
[all …]
Dsimplification_pass.cpp37 std::vector<Instruction*>* work_list) { in AddNewOperands() argument
40 [&inst_seen, &def_use_mgr, &work_list](uint32_t* iid) { in AddNewOperands()
43 work_list->push_back(iid_inst); in AddNewOperands()
55 std::vector<Instruction*> work_list; in SimplifyFunction() local
64 [&modified, &process_phis, &work_list, &in_work_list, &inst_to_kill, in SimplifyFunction()
80 get_def_use_mgr()->ForEachUser(inst, [&work_list, &process_phis, in SimplifyFunction()
84 work_list.push_back(use); in SimplifyFunction()
88 AddNewOperands(inst, &inst_seen, &work_list); in SimplifyFunction()
114 for (size_t i = 0; i < work_list.size(); ++i) { in SimplifyFunction()
115 Instruction* inst = work_list[i]; in SimplifyFunction()
[all …]
Dvector_dce.h108 std::vector<WorkListItem>* work_list);
116 std::vector<WorkListItem>* work_list);
124 std::vector<WorkListItem>* work_list);
132 std::vector<WorkListItem>* work_list);
140 std::vector<WorkListItem>* work_list);
147 std::vector<WorkListItem>* work_list);
Ddead_branch_elim_pass.cpp609 std::vector<uint32_t> work_list; in AddBlocksWithBackEdge() local
610 work_list.push_back(cont_id); in AddBlocksWithBackEdge()
612 while (!work_list.empty()) { in AddBlocksWithBackEdge()
613 uint32_t bb_id = work_list.back(); in AddBlocksWithBackEdge()
614 work_list.pop_back(); in AddBlocksWithBackEdge()
619 bb->ForEachSuccessorLabel([header_id, &visited, &work_list, in AddBlocksWithBackEdge()
622 work_list.push_back(*succ_label_id); in AddBlocksWithBackEdge()
Dir_context.cpp220 std::vector<Instruction*> work_list; in CollectNonSemanticTree() local
222 work_list.push_back(inst); in CollectNonSemanticTree()
224 while (!work_list.empty()) { in CollectNonSemanticTree()
225 auto* i = work_list.back(); in CollectNonSemanticTree()
226 work_list.pop_back(); in CollectNonSemanticTree()
228 i, [&work_list, to_kill, &seen](Instruction* user) { in CollectNonSemanticTree()
230 work_list.push_back(user); in CollectNonSemanticTree()
Ddesc_sroa.cpp399 std::vector<Instruction*> work_list; in ReplaceLoadedValue() local
401 value->result_id(), [this, &work_list](Instruction* use) { in ReplaceLoadedValue()
407 work_list.push_back(use); in ReplaceLoadedValue()
415 for (Instruction* use : work_list) { in ReplaceLoadedValue()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dvector_dce.cpp45 std::vector<WorkListItem> work_list; in FindLiveComponents() local
54 [&work_list, this, live_components](Instruction* current_inst) { in FindLiveComponents()
61 &work_list); in FindLiveComponents()
66 for (uint32_t i = 0; i < work_list.size(); i++) { in FindLiveComponents()
67 WorkListItem current_item = work_list[i]; in FindLiveComponents()
73 live_components, &work_list); in FindLiveComponents()
76 MarkInsertUsesAsLive(current_item, live_components, &work_list); in FindLiveComponents()
79 MarkVectorShuffleUsesAsLive(current_item, live_components, &work_list); in FindLiveComponents()
83 &work_list); in FindLiveComponents()
88 &work_list); in FindLiveComponents()
[all …]
Dsimplification_pass.cpp37 std::vector<Instruction*>* work_list) { in AddNewOperands() argument
40 [&inst_seen, &def_use_mgr, &work_list](uint32_t* iid) { in AddNewOperands()
43 work_list->push_back(iid_inst); in AddNewOperands()
55 std::vector<Instruction*> work_list; in SimplifyFunction() local
64 [&modified, &process_phis, &work_list, &in_work_list, &inst_to_kill, in SimplifyFunction()
80 get_def_use_mgr()->ForEachUser(inst, [&work_list, &process_phis, in SimplifyFunction()
84 work_list.push_back(use); in SimplifyFunction()
88 AddNewOperands(inst, &inst_seen, &work_list); in SimplifyFunction()
114 for (size_t i = 0; i < work_list.size(); ++i) { in SimplifyFunction()
115 Instruction* inst = work_list[i]; in SimplifyFunction()
[all …]
Dvector_dce.h108 std::vector<WorkListItem>* work_list);
116 std::vector<WorkListItem>* work_list);
124 std::vector<WorkListItem>* work_list);
132 std::vector<WorkListItem>* work_list);
140 std::vector<WorkListItem>* work_list);
147 std::vector<WorkListItem>* work_list);
Ddead_branch_elim_pass.cpp609 std::vector<uint32_t> work_list; in AddBlocksWithBackEdge() local
610 work_list.push_back(cont_id); in AddBlocksWithBackEdge()
612 while (!work_list.empty()) { in AddBlocksWithBackEdge()
613 uint32_t bb_id = work_list.back(); in AddBlocksWithBackEdge()
614 work_list.pop_back(); in AddBlocksWithBackEdge()
619 bb->ForEachSuccessorLabel([header_id, &visited, &work_list, in AddBlocksWithBackEdge()
622 work_list.push_back(*succ_label_id); in AddBlocksWithBackEdge()
Dir_context.cpp219 std::vector<Instruction*> work_list; in KillNonSemanticInfo() local
222 work_list.push_back(inst); in KillNonSemanticInfo()
224 while (!work_list.empty()) { in KillNonSemanticInfo()
225 auto* i = work_list.back(); in KillNonSemanticInfo()
226 work_list.pop_back(); in KillNonSemanticInfo()
228 i, [&work_list, &to_kill, &seen](Instruction* user) { in KillNonSemanticInfo()
230 work_list.push_back(user); in KillNonSemanticInfo()
Ddesc_sroa.cpp399 std::vector<Instruction*> work_list; in ReplaceLoadedValue() local
401 value->result_id(), [this, &work_list](Instruction* use) { in ReplaceLoadedValue()
407 work_list.push_back(use); in ReplaceLoadedValue()
415 for (Instruction* use : work_list) { in ReplaceLoadedValue()
/external/mesa3d/src/panfrost/util/
Dpan_liveness.c115 struct set *work_list = _mesa_set_create(NULL, in pan_compute_liveness() local
135 cur = _mesa_set_add(work_list, pan_exit_block(blocks)); in pan_compute_liveness()
142 _mesa_set_remove(work_list, cur); in pan_compute_liveness()
151 _mesa_set_add(work_list, pred); in pan_compute_liveness()
155 } while((cur = _mesa_set_next_entry(work_list, NULL)) != NULL); in pan_compute_liveness()
158 _mesa_set_destroy(work_list, NULL); in pan_compute_liveness()
/external/swiftshader/third_party/SPIRV-Tools/source/
Dcfa.h51 static bool FindInWorkList(const std::vector<block_info>& work_list,
128 bool CFA<BB>::FindInWorkList(const std::vector<block_info>& work_list, in FindInWorkList() argument
130 for (const auto& b : work_list) { in FindInWorkList()
146 std::vector<block_info> work_list; in DepthFirstTraversal() local
147 work_list.reserve(10); in DepthFirstTraversal()
149 work_list.push_back({entry, std::begin(*successor_func(entry))}); in DepthFirstTraversal()
153 while (!work_list.empty()) { in DepthFirstTraversal()
154 block_info& top = work_list.back(); in DepthFirstTraversal()
157 work_list.pop_back(); in DepthFirstTraversal()
161 if (FindInWorkList(work_list, child->id())) { in DepthFirstTraversal()
[all …]
/external/deqp-deps/SPIRV-Tools/source/
Dcfa.h51 static bool FindInWorkList(const std::vector<block_info>& work_list,
128 bool CFA<BB>::FindInWorkList(const std::vector<block_info>& work_list, in FindInWorkList() argument
130 for (const auto& b : work_list) { in FindInWorkList()
146 std::vector<block_info> work_list; in DepthFirstTraversal() local
147 work_list.reserve(10); in DepthFirstTraversal()
149 work_list.push_back({entry, std::begin(*successor_func(entry))}); in DepthFirstTraversal()
153 while (!work_list.empty()) { in DepthFirstTraversal()
154 block_info& top = work_list.back(); in DepthFirstTraversal()
157 work_list.pop_back(); in DepthFirstTraversal()
161 if (FindInWorkList(work_list, child->id())) { in DepthFirstTraversal()
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/
Dcfa.h51 static bool FindInWorkList(const std::vector<block_info>& work_list,
128 bool CFA<BB>::FindInWorkList(const std::vector<block_info>& work_list, in FindInWorkList() argument
130 for (const auto& b : work_list) { in FindInWorkList()
146 std::vector<block_info> work_list; in DepthFirstTraversal() local
147 work_list.reserve(10); in DepthFirstTraversal()
149 work_list.push_back({entry, std::begin(*successor_func(entry))}); in DepthFirstTraversal()
153 while (!work_list.empty()) { in DepthFirstTraversal()
154 block_info& top = work_list.back(); in DepthFirstTraversal()
157 work_list.pop_back(); in DepthFirstTraversal()
161 if (FindInWorkList(work_list, child->id())) { in DepthFirstTraversal()
[all …]
/external/mesa3d/src/panfrost/midgard/
Dmidgard_helper_invocations.c210 struct set *work_list = _mesa_set_create(NULL, in mir_analyze_helper_requirements() local
218 struct set_entry *cur = _mesa_set_add(work_list, pan_exit_block(&ctx->blocks)); in mir_analyze_helper_requirements()
222 _mesa_set_remove(work_list, cur); in mir_analyze_helper_requirements()
228 _mesa_set_add(work_list, pred); in mir_analyze_helper_requirements()
232 } while((cur = _mesa_set_next_entry(work_list, NULL)) != NULL); in mir_analyze_helper_requirements()
235 _mesa_set_destroy(work_list, NULL); in mir_analyze_helper_requirements()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dlayout_optimization.cc193 void MoveTransposeBefore(Operation* op, SmallVector<Operation*, 8>* work_list) { in MoveTransposeBefore() argument
276 work_list->push_back(operand_op); in MoveTransposeBefore()
297 void MoveTransposeAfter(Operation* op, SmallVector<Operation*, 8>* work_list, in MoveTransposeAfter() argument
400 for (Operation* user : result.getUsers()) work_list->push_back(user); in MoveTransposeAfter()
429 SmallVector<Operation*, 8> work_list; in runOnFunction() local
435 if (auto op = operand.getDefiningOp()) work_list.push_back(op); in runOnFunction()
440 work_list.push_back(user); in runOnFunction()
445 while (!work_list.empty()) { in runOnFunction()
446 Operation* op = work_list.pop_back_val(); in runOnFunction()
448 MoveTransposeBefore(op, &work_list); in runOnFunction()
[all …]
/external/mesa3d/src/compiler/spirv/
Dvtn_cfg.c470 struct list_head *work_list, in vtn_add_cfg_work_item() argument
479 list_addtail(&work->link, work_list); in vtn_add_cfg_work_item()
555 struct list_head *work_list, in vtn_process_block() argument
646 vtn_add_cfg_work_item(b, work_list, &loop->node, in vtn_process_block()
659 vtn_add_cfg_work_item(b, work_list, &loop->node, in vtn_process_block()
745 vtn_add_cfg_work_item(b, work_list, &if_stmt->node, in vtn_process_block()
751 vtn_add_cfg_work_item(b, work_list, &if_stmt->node, in vtn_process_block()
793 vtn_add_cfg_work_item(b, work_list, &cse->node, in vtn_process_block()
841 struct list_head work_list; in vtn_build_cfg() local
842 list_inithead(&work_list); in vtn_build_cfg()
[all …]

12