clang 20.0.0git
Public Member Functions | List of all members
clang::consumed::ConsumedBlockInfo Class Reference

#include "clang/Analysis/Analyses/Consumed.h"

Public Member Functions

 ConsumedBlockInfo ()=default
 
 ConsumedBlockInfo (unsigned int NumBlocks, PostOrderCFGView *SortedGraph)
 
bool allBackEdgesVisited (const CFGBlock *CurrBlock, const CFGBlock *TargetBlock)
 
void addInfo (const CFGBlock *Block, ConsumedStateMap *StateMap, std::unique_ptr< ConsumedStateMap > &OwnedStateMap)
 
void addInfo (const CFGBlock *Block, std::unique_ptr< ConsumedStateMap > StateMap)
 
ConsumedStateMapborrowInfo (const CFGBlock *Block)
 
void discardInfo (const CFGBlock *Block)
 
std::unique_ptr< ConsumedStateMapgetInfo (const CFGBlock *Block)
 
bool isBackEdge (const CFGBlock *From, const CFGBlock *To)
 
bool isBackEdgeTarget (const CFGBlock *Block)
 

Detailed Description

Definition at line 210 of file Consumed.h.

Constructor & Destructor Documentation

◆ ConsumedBlockInfo() [1/2]

clang::consumed::ConsumedBlockInfo::ConsumedBlockInfo ( )
default

◆ ConsumedBlockInfo() [2/2]

clang::consumed::ConsumedBlockInfo::ConsumedBlockInfo ( unsigned int  NumBlocks,
PostOrderCFGView SortedGraph 
)
inline

Definition at line 217 of file Consumed.h.

Member Function Documentation

◆ addInfo() [1/2]

void ConsumedBlockInfo::addInfo ( const CFGBlock Block,
ConsumedStateMap StateMap,
std::unique_ptr< ConsumedStateMap > &  OwnedStateMap 
)

Definition at line 1013 of file Consumed.cpp.

References clang::Block.

◆ addInfo() [2/2]

void ConsumedBlockInfo::addInfo ( const CFGBlock Block,
std::unique_ptr< ConsumedStateMap StateMap 
)

Definition at line 1028 of file Consumed.cpp.

References clang::Block.

◆ allBackEdgesVisited()

bool ConsumedBlockInfo::allBackEdgesVisited ( const CFGBlock CurrBlock,
const CFGBlock TargetBlock 
)

◆ borrowInfo()

ConsumedStateMap * ConsumedBlockInfo::borrowInfo ( const CFGBlock Block)

Definition at line 1041 of file Consumed.cpp.

References clang::Block.

◆ discardInfo()

void ConsumedBlockInfo::discardInfo ( const CFGBlock Block)

Definition at line 1048 of file Consumed.cpp.

References clang::Block.

◆ getInfo()

std::unique_ptr< ConsumedStateMap > ConsumedBlockInfo::getInfo ( const CFGBlock Block)

Definition at line 1053 of file Consumed.cpp.

References clang::Block, and isBackEdgeTarget().

◆ isBackEdge()

bool ConsumedBlockInfo::isBackEdge ( const CFGBlock From,
const CFGBlock To 
)

Definition at line 1061 of file Consumed.cpp.

References clang::CFGBlock::getBlockID().

◆ isBackEdgeTarget()

bool ConsumedBlockInfo::isBackEdgeTarget ( const CFGBlock Block)

Definition at line 1068 of file Consumed.cpp.

References clang::Block.

Referenced by getInfo().


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