LLVM 22.0.0git
llvm::PreservedCFGCheckerInstrumentation::CFG Struct Reference

#include "llvm/Passes/StandardInstrumentations.h"

Public Member Functions

LLVM_ABI CFG (const Function *F, bool TrackBBLifetime)
bool operator== (const CFG &G) const
bool isPoisoned () const
LLVM_ABI bool invalidate (Function &F, const PreservedAnalyses &PA, FunctionAnalysisManager::Invalidator &)

Static Public Member Functions

static LLVM_ABI void printDiff (raw_ostream &out, const CFG &Before, const CFG &After)

Public Attributes

std::optional< DenseMap< intptr_t, BBGuard > > BBGuards
DenseMap< const BasicBlock *, DenseMap< const BasicBlock *, unsigned > > Graph

Detailed Description

Definition at line 167 of file StandardInstrumentations.h.

Constructor & Destructor Documentation

◆ CFG()

PreservedCFGCheckerInstrumentation::CFG::CFG ( const Function * F,
bool TrackBBLifetime )

Definition at line 1173 of file StandardInstrumentations.cpp.

References BBGuards, F, Graph, and llvm::successors().

Referenced by operator==(), and printDiff().

Member Function Documentation

◆ invalidate()

bool PreservedCFGCheckerInstrumentation::CFG::invalidate ( Function & F,
const PreservedAnalyses & PA,
FunctionAnalysisManager::Invalidator &  )

Definition at line 1334 of file StandardInstrumentations.cpp.

References F, and llvm::PreservedAnalyses::getChecker().

◆ isPoisoned()

bool llvm::PreservedCFGCheckerInstrumentation::CFG::isPoisoned ( ) const
inline

Definition at line 177 of file StandardInstrumentations.h.

References llvm::any_of(), and BBGuards.

Referenced by operator==(), and printDiff().

◆ operator==()

bool llvm::PreservedCFGCheckerInstrumentation::CFG::operator== ( const CFG & G) const
inline

Definition at line 173 of file StandardInstrumentations.h.

References CFG(), G, Graph, and isPoisoned().

◆ printDiff()

void PreservedCFGCheckerInstrumentation::CFG::printDiff ( raw_ostream & out,
const CFG & Before,
const CFG & After )
static

Member Data Documentation

◆ BBGuards

std::optional<DenseMap<intptr_t, BBGuard> > llvm::PreservedCFGCheckerInstrumentation::CFG::BBGuards

Definition at line 168 of file StandardInstrumentations.h.

Referenced by CFG(), and isPoisoned().

◆ Graph

DenseMap<const BasicBlock *, DenseMap<const BasicBlock *, unsigned> > llvm::PreservedCFGCheckerInstrumentation::CFG::Graph

Definition at line 169 of file StandardInstrumentations.h.

Referenced by CFG(), operator==(), and printDiff().


The documentation for this struct was generated from the following files: