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

Method ComputeAugmentedCFG

source/val/function.cpp:284–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void Function::ComputeAugmentedCFG() {
285 // Compute the successors of the pseudo-entry block, and
286 // the predecessors of the pseudo exit block.
287 auto succ_func = [](const BasicBlock* b) {
288 return b->structural_successors();
289 };
290 auto pred_func = [](const BasicBlock* b) {
291 return b->structural_predecessors();
292 };
293 CFA<BasicBlock>::ComputeAugmentedCFG(
294 ordered_blocks_, &pseudo_entry_block_, &pseudo_exit_block_,
295 &augmented_successors_map_, &augmented_predecessors_map_, succ_func,
296 pred_func);
297}
298
299Construct& Function::AddConstruct(const Construct& new_construct) {
300 cfg_constructs_.push_back(new_construct);

Callers

nothing calls this directly

Calls 2

structural_successorsMethod · 0.80

Tested by

no test coverage detected