MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / Update

Method Update

layers/gpuav/spirv/pass.cpp:888–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888void Pass::ControlFlow::Update(const BasicBlock& block) {
889 if (in_loop) {
890 if (block.GetLabelId() == merge_target_id) {
891 in_loop = false;
892 merge_target_id = 0;
893 }
894 } else if (block.IsLoopHeader()) {
895 in_loop = true;
896 merge_target_id = block.loop_header_merge_target_;
897 }
898}
899
900// Helper for passes with multiple linked functions they may grab
901// Pass in cached link_function_id and only update it the first time

Callers 11

InstrumentMethod · 0.45
InstrumentMethod · 0.45
InstrumentMethod · 0.45
InstrumentMethod · 0.45
InstrumentMethod · 0.45
InstrumentMethod · 0.45
InstrumentMethod · 0.45
InstrumentMethod · 0.45
InstrumentMethod · 0.45
InstrumentMethod · 0.45
InstrumentMethod · 0.45

Calls 11

GetLabelIdMethod · 0.80
IsLoopHeaderMethod · 0.80
IsNonPtrAccessChainMethod · 0.80
OperandMethod · 0.80
FindConstantByIdMethod · 0.80
ResultIdMethod · 0.80
OpcodeMethod · 0.80
FindTypeByIdMethod · 0.80
TypeIdMethod · 0.80
IdMethod · 0.45

Tested by

no test coverage detected