LLVM 22.0.0git
SelectionDAGDumper.cpp File Reference

Go to the source code of this file.

Macros

#define BEGIN_REGISTER_VP_SDNODE(SDID, LEGALARG, NAME, ...)

Typedefs

using VisitedSDNodeSet = SmallPtrSet<const SDNode *, 32>

Functions

static Printable PrintNodeId (const SDNode &Node)
static void printMemOperand (raw_ostream &OS, const MachineMemOperand &MMO, const MachineFunction *MF, const Module *M, const MachineFrameInfo *MFI, const TargetInstrInfo *TII, LLVMContext &Ctx)
static void printMemOperand (raw_ostream &OS, const MachineMemOperand &MMO, const SelectionDAG *G)
static bool shouldPrintInline (const SDNode &Node, const SelectionDAG *G)
 Return true if this node is so simple that we should just print it inline if it appears as an operand.
static void DumpNodes (const SDNode *N, unsigned indent, const SelectionDAG *G)
static bool printOperand (raw_ostream &OS, const SelectionDAG *G, const SDValue Value)
static void DumpNodesr (raw_ostream &OS, const SDNode *N, unsigned indent, const SelectionDAG *G, VisitedSDNodeSet &once)
static void printrWithDepthHelper (raw_ostream &OS, const SDNode *N, const SelectionDAG *G, unsigned depth, unsigned indent)

Variables

static cl::opt< boolVerboseDAGDumping ("dag-dump-verbose", cl::Hidden, cl::desc("Display more information when dumping selection " "DAG nodes."))

Macro Definition Documentation

◆ BEGIN_REGISTER_VP_SDNODE

#define BEGIN_REGISTER_VP_SDNODE ( SDID,
LEGALARG,
NAME,
... )
Value:
case ISD::SDID: \
return #NAME;

Typedef Documentation

◆ VisitedSDNodeSet

Definition at line 1118 of file SelectionDAGDumper.cpp.

Function Documentation

◆ DumpNodes()

void DumpNodes ( const SDNode * N,
unsigned indent,
const SelectionDAG * G )
static

◆ DumpNodesr()

◆ printMemOperand() [1/2]

◆ printMemOperand() [2/2]

◆ PrintNodeId()

◆ printOperand()

◆ printrWithDepthHelper()

void printrWithDepthHelper ( raw_ostream & OS,
const SDNode * N,
const SelectionDAG * G,
unsigned depth,
unsigned indent )
static

◆ shouldPrintInline()

bool shouldPrintInline ( const SDNode & Node,
const SelectionDAG * G )
static

Return true if this node is so simple that we should just print it inline if it appears as an operand.

Definition at line 1041 of file SelectionDAGDumper.cpp.

References llvm::ISD::EntryToken, G, and VerboseDAGDumping.

Referenced by llvm::SelectionDAG::dump(), DumpNodes(), printOperand(), and printrWithDepthHelper().

Variable Documentation

◆ VerboseDAGDumping

cl::opt< bool > VerboseDAGDumping("dag-dump-verbose", cl::Hidden, cl::desc("Display more information when dumping selection " "DAG nodes.")) ( "dag-dump-verbose" ,
cl::Hidden ,
cl::desc("Display more information when dumping selection " "DAG nodes.")  )
static