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

Method AddBasicBlocks

source/opt/function.h:256–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254
255template <typename T>
256inline void Function::AddBasicBlocks(T src_begin, T src_end, iterator ip) {
257 blocks_.insert(ip.Get(), std::make_move_iterator(src_begin),
258 std::make_move_iterator(src_end));
259}
260
261inline void Function::MoveBasicBlockToAfter(uint32_t id, BasicBlock* ip) {
262 std::unique_ptr<BasicBlock> block_to_move = std::move(*FindBlock(id).Get());

Callers 3

SplitLoopMethod · 0.80
PerformUnswitchMethod · 0.80

Calls 2

insertMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected