58 static void eraseComment(std::string &OutStr,
unsigned &
I,
unsigned Idx) {
59 OutStr.erase(OutStr.begin() +
I, OutStr.begin() + Idx);
75 HandleComment = eraseComment) {
static bool isSimple(Instruction *I)
DOTMachineFuncInfo(const MachineFunction *F)
const MachineFunction * getFunction() const
StringRef getName() const
getName - Return the name of the corresponding LLVM function.
std::string str() const
str - Get the contents as an std::string.
An efficient, type-erasing, non-owning reference to a callable.
A raw_ostream that writes to an std::string.
This is an optimization pass for GlobalISel generic memory operations.
std::string SimpleNodeLabelString(const BasicBlockT *Node)
std::string CompleteNodeLabelString(const BasicBlockT *Node, function_ref< void(raw_string_ostream &, const BasicBlockT &)> HandleBasicBlock, function_ref< void(std::string &, unsigned &, unsigned)> HandleComment)
DOTGraphTraits(bool isSimple=false)
static std::string getGraphName(DOTMachineFuncInfo *CFGInfo)
static std::string getSimpleNodeLabel(const MachineBasicBlock *Node, DOTMachineFuncInfo *)
static void eraseComment(std::string &OutStr, unsigned &I, unsigned Idx)
std::string getNodeLabel(const MachineBasicBlock *Node, DOTMachineFuncInfo *CFGInfo)
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)
DefaultDOTGraphTraits(bool simple=false)
static NodeRef getEntryNode(DOTMachineFuncInfo *CFGInfo)
pointer_iterator< MachineFunction::const_iterator > nodes_iterator
static size_t size(DOTMachineFuncInfo *CFGInfo)
static nodes_iterator nodes_end(DOTMachineFuncInfo *CFGInfo)
static nodes_iterator nodes_begin(DOTMachineFuncInfo *CFGInfo)
typename DOTMachineFuncInfo *::UnknownGraphTypeError NodeRef