MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / makeBeginElse

Method makeBeginElse

SPIRV/SpvBuilder.cpp:4462–4473  ·  view source on GitHub ↗

Comments in header

Source from the content-addressed store, hash-verified

4460
4461// Comments in header
4462void Builder::If::makeBeginElse()
4463{
4464 // Close out the "then" by having it jump to the mergeBlock
4465 builder.createBranch(true, mergeBlock);
4466
4467 // Make the first else block and add it to the function
4468 elseBlock = new Block(builder.getUniqueId(), *function);
4469 function->addBlock(elseBlock);
4470
4471 // Start building the else block
4472 builder.setBuildPoint(elseBlock);
4473}
4474
4475// Comments in header
4476void Builder::If::makeEndIf()

Callers 1

visitSelectionMethod · 0.80

Calls 4

createBranchMethod · 0.80
addBlockMethod · 0.80
setBuildPointMethod · 0.80
getUniqueIdMethod · 0.45

Tested by

no test coverage detected