MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / Process

Method Process

source/opt/code_sink.cpp:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace opt {
25
26Pass::Status CodeSinkingPass::Process() {
27 bool modified = false;
28 for (Function& function : *get_module()) {
29 cfg()->ForEachBlockInPostOrder(function.entry().get(),
30 [&modified, this](BasicBlock* bb) {
31 if (SinkInstructionsInBB(bb)) {
32 modified = true;
33 }
34 });
35 }
36 return modified ? Status::SuccessWithChange : Status::SuccessWithoutChange;
37}
38
39bool CodeSinkingPass::SinkInstructionsInBB(BasicBlock* bb) {
40 bool modified = false;

Callers

nothing calls this directly

Calls 2

getMethod · 0.80

Tested by

no test coverage detected