LLVM 20.0.0git
Public Member Functions | Friends | List of all members
llvm::EdgeBundles Class Reference

#include "llvm/CodeGen/EdgeBundles.h"

Public Member Functions

unsigned getBundle (unsigned N, bool Out) const
 getBundle - Return the ingoing (Out = false) or outgoing (Out = true) bundle number for basic block N
 
unsigned getNumBundles () const
 getNumBundles - Return the total number of bundles in the CFG.
 
ArrayRef< unsignedgetBlocks (unsigned Bundle) const
 getBlocks - Return an array of blocks that are connected to Bundle.
 
const MachineFunctiongetMachineFunction () const
 getMachineFunction - Return the last machine function computed.
 
void view () const
 view - Visualize the annotated bipartite CFG with Graphviz.
 
bool invalidate (MachineFunction &MF, const PreservedAnalyses &PA, MachineFunctionAnalysisManager::Invalidator &Inv)
 

Friends

class EdgeBundlesWrapperLegacy
 
class EdgeBundlesAnalysis
 

Detailed Description

Definition at line 27 of file EdgeBundles.h.

Member Function Documentation

◆ getBlocks()

ArrayRef< unsigned > llvm::EdgeBundles::getBlocks ( unsigned  Bundle) const
inline

getBlocks - Return an array of blocks that are connected to Bundle.

Definition at line 53 of file EdgeBundles.h.

References Blocks.

◆ getBundle()

unsigned llvm::EdgeBundles::getBundle ( unsigned  N,
bool  Out 
) const
inline

getBundle - Return the ingoing (Out = false) or outgoing (Out = true) bundle number for basic block N

Definition at line 47 of file EdgeBundles.h.

References N.

Referenced by llvm::SpillPlacement::addConstraints(), llvm::SpillPlacement::addLinks(), and llvm::SpillPlacement::addPrefSpill().

◆ getMachineFunction()

const MachineFunction * llvm::EdgeBundles::getMachineFunction ( ) const
inline

getMachineFunction - Return the last machine function computed.

Definition at line 56 of file EdgeBundles.h.

◆ getNumBundles()

unsigned llvm::EdgeBundles::getNumBundles ( ) const
inline

getNumBundles - Return the total number of bundles in the CFG.

Definition at line 50 of file EdgeBundles.h.

Referenced by llvm::SpillPlacement::iterate(), and llvm::SpillPlacement::prepare().

◆ invalidate()

bool EdgeBundles::invalidate ( MachineFunction MF,
const PreservedAnalyses PA,
MachineFunctionAnalysisManager::Invalidator Inv 
)

Definition at line 117 of file EdgeBundles.cpp.

References llvm::PreservedAnalyses::getChecker().

◆ view()

void EdgeBundles::view ( ) const

view - Visualize the annotated bipartite CFG with Graphviz.

Definition at line 113 of file EdgeBundles.cpp.

References llvm::ViewGraph().

Friends And Related Function Documentation

◆ EdgeBundlesAnalysis

friend class EdgeBundlesAnalysis
friend

Definition at line 29 of file EdgeBundles.h.

◆ EdgeBundlesWrapperLegacy

friend class EdgeBundlesWrapperLegacy
friend

Definition at line 28 of file EdgeBundles.h.


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