Go to the documentation of this file.
19 template <
class GraphType>
struct GraphTraits;
58 static void eraseComment(std::string &OutStr,
unsigned &
I,
unsigned Idx) {
59 OutStr.erase(OutStr.begin() +
I, OutStr.begin() + Idx);
75 HandleComment = eraseComment) {
82 return getSimpleNodeLabel(
Node, CFGInfo);
84 return getCompleteNodeLabel(
Node, CFGInfo);
This is an optimization pass for GlobalISel generic memory operations.
DOTMachineFuncInfo(const MachineFunction *F)
static std::string getGraphName(DOTMachineFuncInfo *CFGInfo)
A raw_ostream that writes to an std::string.
static std::string getSimpleNodeLabel(const MachineBasicBlock *Node, DOTMachineFuncInfo *)
const MachineBasicBlock & front() const
const MachineFunction * getFunction() const
static NodeRef getEntryNode(DOTMachineFuncInfo *CFGInfo)
DOTGraphTraits - Template class that can be specialized to customize how graphs are converted to 'dot...
An efficient, type-erasing, non-owning reference to a callable.
static nodes_iterator nodes_end(DOTMachineFuncInfo *CFGInfo)
static size_t size(DOTMachineFuncInfo *CFGInfo)
StringRef getName() const
getName - Return the name of the corresponding LLVM function.
static std::string getCompleteNodeLabel(const MachineBasicBlock *Node, DOTMachineFuncInfo *, function_ref< void(raw_string_ostream &, const MachineBasicBlock &)> HandleBasicBlock=[](raw_string_ostream &OS, const MachineBasicBlock &Node) -> void { OS<< Node;}, function_ref< void(std::string &, unsigned &, unsigned)> HandleComment=eraseComment)
static bool isSimple(Instruction *I)
std::string CompleteNodeLabelString(const BasicBlockT *Node, function_ref< void(raw_string_ostream &, const BasicBlockT &)> HandleBasicBlock, function_ref< void(std::string &, unsigned &, unsigned)> HandleComment)
static nodes_iterator nodes_begin(DOTMachineFuncInfo *CFGInfo)
DOTGraphTraits(bool isSimple=false)
static void eraseComment(std::string &OutStr, unsigned &I, unsigned Idx)
DefaultDOTGraphTraits - This class provides the default implementations of all of the DOTGraphTraits ...
std::string str() const
str - Get the contents as an std::string.
std::string getNodeLabel(const MachineBasicBlock *Node, DOTMachineFuncInfo *CFGInfo)
std::string SimpleNodeLabelString(const BasicBlockT *Node)