LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::ConnectedVNInfoEqClasses Class Reference

ConnectedVNInfoEqClasses - Helper class that can divide VNInfos in a LiveInterval into equivalence clases of connected components. More...

#include "llvm/CodeGen/LiveInterval.h"

Public Member Functions

 ConnectedVNInfoEqClasses (LiveIntervals &lis)
 
unsigned Classify (const LiveRange &LR)
 Classify the values in LR into connected components. More...
 
unsigned getEqClass (const VNInfo *VNI) const
 getEqClass - Classify creates equivalence classes numbered 0..N. More...
 
void Distribute (LiveInterval &LI, LiveInterval *LIV[], MachineRegisterInfo &MRI)
 Distribute values in LI into a separate LiveIntervals for each connected component. More...
 

Detailed Description

ConnectedVNInfoEqClasses - Helper class that can divide VNInfos in a LiveInterval into equivalence clases of connected components.

A LiveInterval that has multiple connected components can be broken into multiple LiveIntervals.

Given a LiveInterval that may have multiple connected components, run:

unsigned numComps = ConEQ.Classify(LI); if (numComps > 1) { // allocate numComps-1 new LiveIntervals into LIS[1..] ConEQ.Distribute(LIS); }

Definition at line 918 of file LiveInterval.h.

Constructor & Destructor Documentation

◆ ConnectedVNInfoEqClasses()

llvm::ConnectedVNInfoEqClasses::ConnectedVNInfoEqClasses ( LiveIntervals lis)
inlineexplicit

Definition at line 923 of file LiveInterval.h.

Member Function Documentation

◆ Classify()

unsigned ConnectedVNInfoEqClasses::Classify ( const LiveRange LR)

◆ Distribute()

void ConnectedVNInfoEqClasses::Distribute ( LiveInterval LI,
LiveInterval LIV[],
MachineRegisterInfo MRI 
)

◆ getEqClass()

unsigned llvm::ConnectedVNInfoEqClasses::getEqClass ( const VNInfo VNI) const
inline

getEqClass - Classify creates equivalence classes numbered 0..N.

Return the equivalence class assigned the VNI.

Definition at line 931 of file LiveInterval.h.

References llvm::VNInfo::id, and MRI.

Referenced by matchPair().


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