Answers whether a path between two basic blocks crosses a suspend point.
Synopsis
Declared in <llvm/Transforms/Coroutines/SuspendCrossingInfo.h>
class SuspendCrossingInfo;
Description
For every basic block 'i' it maintains a BlockData that consists of: Consumes: a bit vector which contains a set of indices of blocks that can reach block 'i'. A block can trivially reach itself. Kills: a bit vector which contains a set of indices of blocks that can reach block 'i' but there is a path crossing a suspend point not repeating 'i' (path to 'i' without cycles containing 'i'). AlwaysKill: a boolean indicating whether block 'i' always propagate kills. NeverKill: a boolean indicating whether block 'i' never propagate kills. KillLoop: There is a path from 'i' to 'i' not otherwise repeating 'i' that crosses a suspend point.
Invalidated by CFG changes that add or remove basic blocks, because BlockToIndexMapping stores basic‐block pointers.
Member Functions
Name |
Description |
|
Compute suspend‐crossing data for |
|
|
Returns true if there is a path from |
|
Returns true if a path or loop from |
|
|
Created with MrDocs