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

SuspendCrossingInfo [constructor]

Compute suspend‐crossing data for F using the coroutine Shape.

dump

dump overloads

hasPathCrossingSuspendPoint

Returns true if there is a path from From to To crossing a suspend point without crossing From a 2nd time.

hasPathOrLoopCrossingSuspendPoint

Returns true if a path or loop from From to To crosses a suspend.

isDefinitionAcrossSuspend

isDefinitionAcrossSuspend overloads

Created with MrDocs