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

Method SetBasicBlockToLoop

source/opt/loop_descriptor.h:503–505  ·  view source on GitHub ↗

Returns the inner most loop that contains the basic block |bb|.

Source from the content-addressed store, hash-verified

501
502 // Returns the inner most loop that contains the basic block |bb|.
503 inline void SetBasicBlockToLoop(uint32_t bb_id, Loop* loop) {
504 basic_block_to_loop_[bb_id] = loop;
505 }
506
507 // Mark the loop |loop_to_add| as needing to be added when the user calls
508 // PostModificationCleanup. |parent| may be null.

Callers 4

CreateBlockBeforeMethod · 0.80
SplitLoopHeaderMethod · 0.80
PerformUnswitchMethod · 0.80
FuseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected