LLVM  14.0.0git
Macros | Typedefs | Functions | Variables
SelectionDAGDumper.cpp File Reference
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/CodeGen/ISDOpcodes.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineMemOperand.h"
#include "llvm/CodeGen/SelectionDAG.h"
#include "llvm/CodeGen/SelectionDAGNodes.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetLowering.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/CodeGen/ValueTypes.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/ModuleSlotTracker.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MachineValueType.h"
#include "llvm/Support/Printable.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetIntrinsicInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "SDNodeDbgValue.h"
#include <cstdint>
#include <iterator>
#include "llvm/IR/VPIntrinsics.def"
Include dependency graph for SelectionDAGDumper.cpp:

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. More...
 
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< bool > VerboseDAGDumping ("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 967 of file SelectionDAGDumper.cpp.

Function Documentation

◆ DumpNodes()

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

Definition at line 901 of file SelectionDAGDumper.cpp.

◆ DumpNodesr()

static void DumpNodesr ( raw_ostream OS,
const SDNode N,
unsigned  indent,
const SelectionDAG G,
VisitedSDNodeSet once 
)
static

Definition at line 969 of file SelectionDAGDumper.cpp.

◆ printMemOperand() [1/2]

static void printMemOperand ( raw_ostream OS,
const MachineMemOperand MMO,
const MachineFunction MF,
const Module M,
const MachineFrameInfo MFI,
const TargetInstrInfo TII,
LLVMContext Ctx 
)
static

◆ printMemOperand() [2/2]

static void printMemOperand ( raw_ostream OS,
const MachineMemOperand MMO,
const SelectionDAG G 
)
static

◆ PrintNodeId()

static Printable PrintNodeId ( const SDNode Node)
static

Definition at line 502 of file SelectionDAGDumper.cpp.

◆ printOperand()

static bool printOperand ( raw_ostream OS,
const SelectionDAG G,
const SDValue  Value 
)
static

Definition at line 946 of file SelectionDAGDumper.cpp.

Referenced by llvm::M68kAsmPrinter::PrintAsmOperand().

◆ printrWithDepthHelper()

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

Definition at line 1007 of file SelectionDAGDumper.cpp.

◆ shouldPrintInline()

static 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 890 of file SelectionDAGDumper.cpp.

Variable Documentation

◆ VerboseDAGDumping

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