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

Method AddLoop

source/opt/loop_descriptor.h:509–511  ·  view source on GitHub ↗

Mark the loop |loop_to_add| as needing to be added when the user calls PostModificationCleanup. |parent| may be null.

Source from the content-addressed store, hash-verified

507 // Mark the loop |loop_to_add| as needing to be added when the user calls
508 // PostModificationCleanup. |parent| may be null.
509 inline void AddLoop(std::unique_ptr<Loop>&& loop_to_add, Loop* parent) {
510 loops_to_add_.emplace_back(std::make_pair(parent, std::move(loop_to_add)));
511 }
512
513 // Creates pre-header blocks for all loops in the function that do not have
514 // one. Returns `LoopDescriptor::Status::kSuccessWithChange` if any change is

Callers 1

Calls 1

emplace_backMethod · 0.80

Tested by

no test coverage detected