#include "mlir/Transforms/ViewOpGraph.h"
#include "mlir/Analysis/TopologicalSortUtils.h"
#include "mlir/IR/Block.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/Operation.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Support/IndentedOstream.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/GraphWriter.h"
#include <map>
#include <optional>
#include <utility>
#include "mlir/Transforms/Passes.h.inc"
Go to the source code of this file.
|
| mlir |
| Include the generated interface declarations.
|
|
|
static int64_t | getLargeAttributeSizeLimit () |
| Return the size limits for eliding large attributes. More...
|
|
static std::string | strFromOs (function_ref< void(raw_ostream &)> func) |
| Return all values printed onto a stream as a string. More...
|
|
static std::string | quoteString (const std::string &str) |
| Put quotation marks around a given string. More...
|
|
std::string | escapeLabelString (const std::string &str) |
| For Graphviz record nodes: " Braces, vertical bars and angle brackets must be escaped with a backslash
character if you wish them to appear as a literal character ". More...
|
|
static void | llvmViewGraph (Region ®ion, const Twine &name) |
| Generate a CFG for a region and show it in a window. More...
|
|
◆ GEN_PASS_DEF_VIEWOPGRAPH
#define GEN_PASS_DEF_VIEWOPGRAPH |
◆ AttributeMap
◆ escapeLabelString()
std::string escapeLabelString |
( |
const std::string & |
str | ) |
|
For Graphviz record nodes: " Braces, vertical bars and angle brackets must be escaped with a backslash
character if you wish them to appear as a literal character ".
Definition at line 61 of file ViewOpGraph.cpp.
◆ getLargeAttributeSizeLimit()
static int64_t getLargeAttributeSizeLimit |
( |
| ) |
|
|
static |
Return the size limits for eliding large attributes.
Definition at line 37 of file ViewOpGraph.cpp.
◆ llvmViewGraph()
static void llvmViewGraph |
( |
Region & |
region, |
|
|
const Twine & |
name |
|
) |
| |
|
static |
◆ quoteString()
static std::string quoteString |
( |
const std::string & |
str | ) |
|
|
static |
Put quotation marks around a given string.
Definition at line 54 of file ViewOpGraph.cpp.
◆ strFromOs()
static std::string strFromOs |
( |
function_ref< void(raw_ostream &)> |
func | ) |
|
|
static |
Return all values printed onto a stream as a string.
Definition at line 46 of file ViewOpGraph.cpp.
◆ kLineStyleControlFlow
const StringRef kLineStyleControlFlow = "dashed" |
|
static |
◆ kLineStyleDataFlow
const StringRef kLineStyleDataFlow = "solid" |
|
static |
◆ kShapeNode
const StringRef kShapeNode = "Mrecord" |
|
static |
◆ kShapeNone
const StringRef kShapeNone = "plain" |
|
static |