Home
last modified time | relevance | path

Searched refs:reachable_blocks (Results 1 – 15 of 15) sorted by relevance

/third_party/spirv-tools/source/opt/
Dmem_pass.cpp331 Instruction* phi, const std::unordered_set<BasicBlock*>& reachable_blocks) { in RemovePhiOperands() argument
353 if (reachable_blocks.find(in_block) == reachable_blocks.end()) { in RemovePhiOperands()
365 reachable_blocks.find(def_block) == reachable_blocks.end()) { in RemovePhiOperands()
416 std::unordered_set<BasicBlock*> reachable_blocks; in RemoveUnreachableBlocks() local
419 reachable_blocks.insert(func->entry().get()); in RemoveUnreachableBlocks()
424 auto mark_reachable = [&reachable_blocks, &visited_blocks, &worklist, in RemoveUnreachableBlocks()
428 reachable_blocks.insert(successor); in RemoveUnreachableBlocks()
451 if (reachable_blocks.count(&block) == 0) { in RemoveUnreachableBlocks()
458 block.ForEachPhiInst([&reachable_blocks, this](Instruction* phi) { in RemoveUnreachableBlocks()
459 RemovePhiOperands(phi, reachable_blocks); in RemoveUnreachableBlocks()
[all …]
Dmem_pass.h155 const std::unordered_set<BasicBlock*>& reachable_blocks);
Dmerge_return_pass.cpp853 utils::BitVector reachable_blocks; in HasNontrivialUnreachableBlocks() local
856 [&reachable_blocks](BasicBlock* bb) { reachable_blocks.Set(bb->id()); }); in HasNontrivialUnreachableBlocks()
859 if (reachable_blocks.Get(bb.id())) { in HasNontrivialUnreachableBlocks()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dmem_pass.cpp331 Instruction* phi, const std::unordered_set<BasicBlock*>& reachable_blocks) { in RemovePhiOperands() argument
353 if (reachable_blocks.find(in_block) == reachable_blocks.end()) { in RemovePhiOperands()
365 reachable_blocks.find(def_block) == reachable_blocks.end()) { in RemovePhiOperands()
416 std::unordered_set<BasicBlock*> reachable_blocks; in RemoveUnreachableBlocks() local
419 reachable_blocks.insert(func->entry().get()); in RemoveUnreachableBlocks()
424 auto mark_reachable = [&reachable_blocks, &visited_blocks, &worklist, in RemoveUnreachableBlocks()
428 reachable_blocks.insert(successor); in RemoveUnreachableBlocks()
451 if (reachable_blocks.count(&block) == 0) { in RemoveUnreachableBlocks()
458 block.ForEachPhiInst([&reachable_blocks, this](Instruction* phi) { in RemoveUnreachableBlocks()
459 RemovePhiOperands(phi, reachable_blocks); in RemoveUnreachableBlocks()
[all …]
Dmem_pass.h155 const std::unordered_set<BasicBlock*>& reachable_blocks);
Dmerge_return_pass.cpp852 utils::BitVector reachable_blocks; in HasNontrivialUnreachableBlocks() local
855 [&reachable_blocks](BasicBlock* bb) { reachable_blocks.Set(bb->id()); }); in HasNontrivialUnreachableBlocks()
858 if (reachable_blocks.Get(bb.id())) { in HasNontrivialUnreachableBlocks()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dmem_pass.cpp331 Instruction* phi, const std::unordered_set<BasicBlock*>& reachable_blocks) { in RemovePhiOperands() argument
353 if (reachable_blocks.find(in_block) == reachable_blocks.end()) { in RemovePhiOperands()
365 reachable_blocks.find(def_block) == reachable_blocks.end()) { in RemovePhiOperands()
416 std::unordered_set<BasicBlock*> reachable_blocks; in RemoveUnreachableBlocks() local
419 reachable_blocks.insert(func->entry().get()); in RemoveUnreachableBlocks()
424 auto mark_reachable = [&reachable_blocks, &visited_blocks, &worklist, in RemoveUnreachableBlocks()
428 reachable_blocks.insert(successor); in RemoveUnreachableBlocks()
451 if (reachable_blocks.count(&block) == 0) { in RemoveUnreachableBlocks()
458 block.ForEachPhiInst([&reachable_blocks, this](Instruction* phi) { in RemoveUnreachableBlocks()
459 RemovePhiOperands(phi, reachable_blocks); in RemoveUnreachableBlocks()
[all …]
Dmem_pass.h155 const std::unordered_set<BasicBlock*>& reachable_blocks);
Dmerge_return_pass.cpp852 utils::BitVector reachable_blocks; in HasNontrivialUnreachableBlocks() local
855 [&reachable_blocks](BasicBlock* bb) { reachable_blocks.Set(bb->id()); }); in HasNontrivialUnreachableBlocks()
858 if (reachable_blocks.Get(bb.id())) { in HasNontrivialUnreachableBlocks()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_propagate_instructions_down.cpp33 std::vector<const opt::BasicBlock*> reachable_blocks; in Apply() local
36 reachable_blocks.push_back(&block); in Apply()
40 for (const auto* block : reachable_blocks) { in Apply()
Dfuzzer_pass.cpp115 std::vector<opt::BasicBlock*> reachable_blocks; in ForEachInstructionWithInstructionDescriptor() local
119 reachable_blocks.push_back(&block); in ForEachInstructionWithInstructionDescriptor()
123 for (auto* block : reachable_blocks) { in ForEachInstructionWithInstructionDescriptor()
/third_party/spirv-tools/source/fuzz/
Dfuzzer_pass_propagate_instructions_down.cpp33 std::vector<const opt::BasicBlock*> reachable_blocks; in Apply() local
36 reachable_blocks.push_back(&block); in Apply()
40 for (const auto* block : reachable_blocks) { in Apply()
Dfuzzer_pass.cpp115 std::vector<opt::BasicBlock*> reachable_blocks; in ForEachInstructionWithInstructionDescriptor() local
119 reachable_blocks.push_back(&block); in ForEachInstructionWithInstructionDescriptor()
123 for (auto* block : reachable_blocks) { in ForEachInstructionWithInstructionDescriptor()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dfuzzer_pass_propagate_instructions_down.cpp33 std::vector<const opt::BasicBlock*> reachable_blocks; in Apply() local
36 reachable_blocks.push_back(&block); in Apply()
40 for (const auto* block : reachable_blocks) { in Apply()
Dfuzzer_pass.cpp115 std::vector<opt::BasicBlock*> reachable_blocks; in ForEachInstructionWithInstructionDescriptor() local
119 reachable_blocks.push_back(&block); in ForEachInstructionWithInstructionDescriptor()
123 for (auto* block : reachable_blocks) { in ForEachInstructionWithInstructionDescriptor()