LLVM
8.0.1
|
#include "Target/Hexagon/RDFDeadCode.h"
Public Member Functions | |
DeadCodeElimination (DataFlowGraph &dfg, MachineRegisterInfo &mri) | |
bool | collect () |
bool | erase (const SetVector< NodeId > &Nodes) |
void | trace (bool On) |
bool | trace () const |
SetVector< NodeId > | getDeadNodes () |
SetVector< NodeId > | getDeadInstrs () |
DataFlowGraph & | getDFG () |
Definition at line 35 of file RDFDeadCode.h.
|
inline |
Definition at line 36 of file RDFDeadCode.h.
bool DeadCodeElimination::collect | ( | ) |
Definition at line 116 of file RDFDeadCode.cpp.
References llvm::rdf::NodeAddr< T >::Addr, llvm::dbgs(), llvm::rdf::NodeAddr< T >::Id, IsDead, llvm::rdf::CodeNode::members(), llvm::rdf::CodeNode::members_if(), N, RA, llvm::rdf::NodeAttrs::Stmt, and trace().
Referenced by DeadCodeElimination().
Definition at line 179 of file RDFDeadCode.cpp.
References llvm::rdf::NodeAddr< T >::Addr, B, llvm::dbgs(), llvm::rdf::NodeAttrs::Def, llvm::SetVector< T, Vector, Set >::empty(), llvm::MachineInstr::eraseFromParent(), llvm::rdf::NodeBase::getKind(), llvm::rdf::InstrNode::getOwner(), I, llvm::rdf::NodeAddr< T >::Id, Kind, llvm_unreachable, MI, N, llvm::rdf::NodeAttrs::Phi, llvm::SmallVectorTemplateBase< T, bool >::push_back(), RA, llvm::rdf::NodeAttrs::Ref, llvm::rdf::CodeNode::removeMember(), llvm::sort(), llvm::rdf::NodeAttrs::Stmt, trace(), and llvm::rdf::NodeAttrs::Use.
Referenced by DeadCodeElimination().
Definition at line 45 of file RDFDeadCode.h.
Definition at line 44 of file RDFDeadCode.h.
|
inline |
Definition at line 46 of file RDFDeadCode.h.
References MI.
|
inline |
Definition at line 41 of file RDFDeadCode.h.
|
inline |
Definition at line 42 of file RDFDeadCode.h.