LLVM 20.0.0git
Namespaces | Functions
VPlanVerifier.h File Reference

This file declares the class VPlanVerifier, which contains utility functions to check the consistency of a VPlan. More...

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Functions

bool llvm::verifyVPlanIsValid (const VPlan &Plan)
 Verify invariants for general VPlans.
 

Detailed Description

This file declares the class VPlanVerifier, which contains utility functions to check the consistency of a VPlan.

This includes the following kinds of invariants:

  1. Region/Block invariants:
    • Region's entry/exit block must have no predecessors/successors, respectively.
    • Block's parent must be the region immediately containing the block.
    • Linked blocks must have a bi-directional link (successor/predecessor).
    • All predecessors/successors of a block must belong to the same region.
    • Blocks must have no duplicated successor/predecessor.

Definition in file VPlanVerifier.h.