Lines Matching defs:G
58 std::string SDNode::getOperationName(const SelectionDAG *G) const {
64 if (G)
65 if (const TargetInstrInfo *TII = G->getSubtarget().getInstrInfo())
70 if (G) {
71 const TargetLowering &TLI = G->getTargetLoweringInfo();
160 if (!G)
162 if (const TargetIntrinsicInfo *TII = G->getTarget().getIntrinsicInfo())
597 const SelectionDAG *G) {
598 if (G) {
599 const MachineFunction *MF = &G->getMachineFunction();
602 G->getSubtarget().getInstrInfo(), *G->getContext());
613 LLVM_DUMP_METHOD void SDNode::dump(const SelectionDAG *G) const {
614 print(dbgs(), G);
619 void SDNode::print_types(raw_ostream &OS, const SelectionDAG *G) const {
629 void SDNode::print_details(raw_ostream &OS, const SelectionDAG *G) const {
675 printMemOperand(OS, **i, G);
747 G ? G->getSubtarget().getRegisterInfo() : nullptr);
769 printMemOperand(OS, *LD->getMemOperand(), G);
788 printMemOperand(OS, *ST->getMemOperand(), G);
801 printMemOperand(OS, *MLd->getMemOperand(), G);
823 printMemOperand(OS, *MSt->getMemOperand(), G);
838 printMemOperand(OS, *MGather->getMemOperand(), G);
857 printMemOperand(OS, *MScatter->getMemOperand(), G);
869 printMemOperand(OS, *M->getMemOperand(), G);
920 if (G && !G->GetDbgValues(this).empty()) {
921 OS << " [NoOfDbgValues=" << G->GetDbgValues(this).size() << ']';
922 for (SDDbgValue *Dbg : G->GetDbgValues(this))
928 if (const auto *MD = G ? G->getPCSections(this) : nullptr) {
930 MD->printAsOperand(OS, G->getMachineFunction().getFunction().getParent());
934 if (MDNode *MMRA = G ? G->getMMRAMetadata(this) : nullptr) {
937 G->getMachineFunction().getFunction().getParent());
995 static bool shouldPrintInline(const SDNode &Node, const SelectionDAG *G) {
998 if (VerboseDAGDumping && G && !G->GetDbgValues(&Node).empty())
1006 static void DumpNodes(const SDNode *N, unsigned indent, const SelectionDAG *G) {
1008 if (shouldPrintInline(*Op.getNode(), G))
1011 DumpNodes(Op.getNode(), indent+2, G);
1015 N->dump(G);
1044 void SDNode::printr(raw_ostream &OS, const SelectionDAG *G) const {
1046 print_types(OS, G);
1047 OS << " = " << getOperationName(G);
1048 print_details(OS, G);
1051 static bool printOperand(raw_ostream &OS, const SelectionDAG *G,
1058 if (shouldPrintInline(*Value.getNode(), G)) {
1059 OS << Value->getOperationName(G) << ':';
1060 Value->print_types(OS, G);
1061 Value->print_details(OS, G);
1075 const SelectionDAG *G, VisitedSDNodeSet &once) {
1081 N->printr(OS, G);
1089 bool printedInline = printOperand(OS, G, Op);
1098 DumpNodesr(OS, Op.getNode(), indent+2, G, once);
1106 LLVM_DUMP_METHOD void SDNode::dumpr(const SelectionDAG *G) const {
1108 DumpNodesr(dbgs(), this, 0, G, once);
1113 const SelectionDAG *G, unsigned depth,
1120 N->print(OS, G);
1127 printrWithDepthHelper(OS, Op.getNode(), G, depth - 1, indent + 2);
1131 void SDNode::printrWithDepth(raw_ostream &OS, const SelectionDAG *G,
1133 printrWithDepthHelper(OS, this, G, depth, 0);
1136 void SDNode::printrFull(raw_ostream &OS, const SelectionDAG *G) const {
1138 printrWithDepth(OS, G, 10);
1143 void SDNode::dumprWithDepth(const SelectionDAG *G, unsigned depth) const {
1144 printrWithDepth(dbgs(), G, depth);
1147 LLVM_DUMP_METHOD void SDNode::dumprFull(const SelectionDAG *G) const {
1149 dumprWithDepth(G, 10);
1153 void SDNode::print(raw_ostream &OS, const SelectionDAG *G) const {
1154 printr(OS, G);
1160 printOperand(OS, G, getOperand(i));