LLVM  5.0.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::rdf::DataFlowGraph Struct Reference

#include "Target/Hexagon/RDFGraph.h"

Classes

struct  DefStack
 

Public Types

typedef std::unordered_map
< RegisterId, DefStack > 
DefStackMap
 

Public Member Functions

 DataFlowGraph (MachineFunction &mf, const TargetInstrInfo &tii, const TargetRegisterInfo &tri, const MachineDominatorTree &mdt, const MachineDominanceFrontier &mdf, const TargetOperandInfo &toi)
 
NodeBase * ptr (NodeId N) const
 
template<typename T >
T ptr (NodeId N) const
 
NodeId id (const NodeBase *P) const
 
template<typename T >
NodeAddr< T > addr (NodeId N) const
 
NodeAddr< FuncNode * > getFunc () const
 
MachineFunction & getMF () const
 
const TargetInstrInfo & getTII () const
 
const TargetRegisterInfo & getTRI () const
 
const PhysicalRegisterInfo & getPRI () const
 
const MachineDominatorTree & getDT () const
 
const MachineDominanceFrontier & getDF () const
 
const RegisterAggr & getLiveIns () const
 
void build (unsigned Options=BuildOptions::None)
 
void pushAllDefs (NodeAddr< InstrNode * > IA, DefStackMap &DM)
 
void markBlock (NodeId B, DefStackMap &DefM)
 
void releaseBlock (NodeId B, DefStackMap &DefM)
 
PackedRegisterRef pack (RegisterRef RR)
 
PackedRegisterRef pack (RegisterRef RR) const
 
RegisterRef unpack (PackedRegisterRef PR) const
 
RegisterRef makeRegRef (unsigned Reg, unsigned Sub) const
 
RegisterRef makeRegRef (const MachineOperand &Op) const
 
RegisterRef restrictRef (RegisterRef AR, RegisterRef BR) const
 
NodeAddr< RefNode * > getNextRelated (NodeAddr< InstrNode * > IA, NodeAddr< RefNode * > RA) const
 
NodeAddr< RefNode * > getNextImp (NodeAddr< InstrNode * > IA, NodeAddr< RefNode * > RA, bool Create)
 
NodeAddr< RefNode * > getNextImp (NodeAddr< InstrNode * > IA, NodeAddr< RefNode * > RA) const
 
NodeAddr< RefNode * > getNextShadow (NodeAddr< InstrNode * > IA, NodeAddr< RefNode * > RA, bool Create)
 
NodeAddr< RefNode * > getNextShadow (NodeAddr< InstrNode * > IA, NodeAddr< RefNode * > RA) const
 
NodeList getRelatedRefs (NodeAddr< InstrNode * > IA, NodeAddr< RefNode * > RA) const
 
NodeAddr< BlockNode * > findBlock (MachineBasicBlock *BB) const
 
void unlinkUse (NodeAddr< UseNode * > UA, bool RemoveFromOwner)
 
void unlinkDef (NodeAddr< DefNode * > DA, bool RemoveFromOwner)
 

Static Public Member Functions

template<uint16_t Kind>
static bool IsRef (const NodeAddr< NodeBase * > BA)
 
template<uint16_t Kind>
static bool IsCode (const NodeAddr< NodeBase * > BA)
 
static bool IsDef (const NodeAddr< NodeBase * > BA)
 
static bool IsUse (const NodeAddr< NodeBase * > BA)
 
static bool IsPhi (const NodeAddr< NodeBase * > BA)
 
static bool IsPreservingDef (const NodeAddr< DefNode * > DA)
 

Detailed Description

Definition at line 644 of file RDFGraph.h.

Member Typedef Documentation

Definition at line 730 of file RDFGraph.h.

Constructor & Destructor Documentation

DataFlowGraph::DataFlowGraph ( MachineFunction &  mf,
const TargetInstrInfo &  tii,
const TargetRegisterInfo &  tri,
const MachineDominatorTree &  mdt,
const MachineDominanceFrontier &  mdf,
const TargetOperandInfo &  toi 
)

Definition at line 665 of file RDFGraph.cpp.

Member Function Documentation

template<typename T >
NodeAddr<T> llvm::rdf::DataFlowGraph::addr ( NodeId  N) const
inline
void DataFlowGraph::build ( unsigned  Options = BuildOptions::None)
NodeAddr<BlockNode*> llvm::rdf::DataFlowGraph::findBlock ( MachineBasicBlock *  BB) const
inline

Definition at line 765 of file RDFGraph.h.

Referenced by build(), and llvm::rdf::Liveness::getNearestAliasedRef().

const MachineDominanceFrontier& llvm::rdf::DataFlowGraph::getDF ( ) const
inline

Definition at line 666 of file RDFGraph.h.

const MachineDominatorTree& llvm::rdf::DataFlowGraph::getDT ( ) const
inline

Definition at line 665 of file RDFGraph.h.

NodeAddr<FuncNode*> llvm::rdf::DataFlowGraph::getFunc ( ) const
inline
const RegisterAggr& llvm::rdf::DataFlowGraph::getLiveIns ( ) const
inline

Definition at line 667 of file RDFGraph.h.

Referenced by llvm::rdf::Liveness::computeLiveIns().

MachineFunction& llvm::rdf::DataFlowGraph::getMF ( ) const
inline
NodeAddr<RefNode*> llvm::rdf::DataFlowGraph::getNextImp ( NodeAddr< InstrNode * >  IA,
NodeAddr< RefNode * >  RA,
bool  Create 
)
NodeAddr<RefNode*> llvm::rdf::DataFlowGraph::getNextImp ( NodeAddr< InstrNode * >  IA,
NodeAddr< RefNode * >  RA 
) const
NodeAddr< RefNode * > DataFlowGraph::getNextRelated ( NodeAddr< InstrNode * >  IA,
NodeAddr< RefNode * >  RA 
) const
NodeAddr< RefNode * > DataFlowGraph::getNextShadow ( NodeAddr< InstrNode * >  IA,
NodeAddr< RefNode * >  RA,
bool  Create 
)
NodeAddr< RefNode * > DataFlowGraph::getNextShadow ( NodeAddr< InstrNode * >  IA,
NodeAddr< RefNode * >  RA 
) const
const PhysicalRegisterInfo& llvm::rdf::DataFlowGraph::getPRI ( ) const
inline

Definition at line 664 of file RDFGraph.h.

NodeList DataFlowGraph::getRelatedRefs ( NodeAddr< InstrNode * >  IA,
NodeAddr< RefNode * >  RA 
) const
const TargetInstrInfo& llvm::rdf::DataFlowGraph::getTII ( ) const
inline

Definition at line 662 of file RDFGraph.h.

const TargetRegisterInfo& llvm::rdf::DataFlowGraph::getTRI ( ) const
inline
NodeId DataFlowGraph::id ( const NodeBase *  P) const

Definition at line 785 of file RDFGraph.cpp.

Referenced by llvm::rdf::CodeNode::addMember().

template<uint16_t Kind>
static bool llvm::rdf::DataFlowGraph::IsCode ( const NodeAddr< NodeBase * >  BA)
inlinestatic
static bool llvm::rdf::DataFlowGraph::IsDef ( const NodeAddr< NodeBase * >  BA)
inlinestatic
static bool llvm::rdf::DataFlowGraph::IsPhi ( const NodeAddr< NodeBase * >  BA)
inlinestatic
static bool llvm::rdf::DataFlowGraph::IsPreservingDef ( const NodeAddr< DefNode * >  DA)
inlinestatic
template<uint16_t Kind>
static bool llvm::rdf::DataFlowGraph::IsRef ( const NodeAddr< NodeBase * >  BA)
inlinestatic
static bool llvm::rdf::DataFlowGraph::IsUse ( const NodeAddr< NodeBase * >  BA)
inlinestatic
RegisterRef DataFlowGraph::makeRegRef ( unsigned  Reg,
unsigned  Sub 
) const
RegisterRef DataFlowGraph::makeRegRef ( const MachineOperand &  Op) const
void DataFlowGraph::markBlock ( NodeId  B,
DefStackMap &  DefM 
)

Definition at line 1009 of file RDFGraph.cpp.

References E, and I.

PackedRegisterRef llvm::rdf::DataFlowGraph::pack ( RegisterRef  RR)
inline
PackedRegisterRef llvm::rdf::DataFlowGraph::pack ( RegisterRef  RR) const
inline
NodeBase * DataFlowGraph::ptr ( NodeId  N) const

Definition at line 778 of file RDFGraph.cpp.

Referenced by ptr().

template<typename T >
T llvm::rdf::DataFlowGraph::ptr ( NodeId  N) const
inline

Definition at line 650 of file RDFGraph.h.

References ptr().

void DataFlowGraph::pushAllDefs ( NodeAddr< InstrNode * >  IA,
DefStackMap &  DM 
)

Definition at line 1034 of file RDFGraph.cpp.

void DataFlowGraph::releaseBlock ( NodeId  B,
DefStackMap &  DefM 
)

Definition at line 1016 of file RDFGraph.cpp.

References E, and I.

RegisterRef DataFlowGraph::restrictRef ( RegisterRef  AR,
RegisterRef  BR 
) const
void llvm::rdf::DataFlowGraph::unlinkDef ( NodeAddr< DefNode * >  DA,
bool  RemoveFromOwner 
)
inline

Definition at line 775 of file RDFGraph.h.

Referenced by llvm::rdf::DeadCodeElimination::erase().

void llvm::rdf::DataFlowGraph::unlinkUse ( NodeAddr< UseNode * >  UA,
bool  RemoveFromOwner 
)
inline
RegisterRef llvm::rdf::DataFlowGraph::unpack ( PackedRegisterRef  PR) const
inline

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