Lines Matching refs:dbgs
397 dbgs() << "Null pointer passed into function.\n";
409 dbgs() << "Failed setup with no Shl or And instruction on base opcode!\n";
417 dbgs() << "Failed setup since the base operand is not an instruction!\n";
435 dbgs() << "Failed setup since both mask and shift are NULL!\n";
490 dbgs() << "!!! Vectors are not supported yet!\n";
501 dbgs() << "Found an OR Operation that failed setup!\n";
513 dbgs() << "Found an OR Operation that failed setup!\n";
524 dbgs() << "Found an OR operation that can possible be optimized to ubit insert!\n";
525 dbgs() << "Op: "; inst->dump();
526 dbgs() << "LHS: "; if (LHS) { LHS->dump(); } else { dbgs() << "(None)\n"; }
527 dbgs() << "LHS Src: "; if (LHSSrc) { LHSSrc->dump(); } else { dbgs() << "(None)\n"; }
528 dbgs() << "LHS Mask: "; if (LHSMask) { LHSMask->dump(); } else { dbgs() << "(None)\n"; }
529 dbgs() << "LHS Shift: "; if (LHSShift) { LHSShift->dump(); } else { dbgs() << "(None)\n"; }
530 dbgs() << "RHS: "; if (RHS) { RHS->dump(); } else { dbgs() << "(None)\n"; }
531 dbgs() << "RHS Src: "; if (RHSSrc) { RHSSrc->dump(); } else { dbgs() << "(None)\n"; }
532 dbgs() << "RHS Mask: "; if (RHSMask) { RHSMask->dump(); } else { dbgs() << "(None)\n"; }
533 dbgs() << "RHS Shift: "; if (RHSShift) { RHSShift->dump(); } else { dbgs() << "(None)\n"; }
555 dbgs() << "Found pattern: \'((A" << (LHSMask ? " & B)" : ")");
556 dbgs() << (LHSShift ? " << C)" : ")") << " | ((D" ;
557 dbgs() << (RHSMask ? " & E)" : ")");
558 dbgs() << (RHSShift ? " << F)\'\n" : ")\'\n");
559 dbgs() << "A = LHSSrc\t\tD = RHSSrc \n";
560 dbgs() << "B = " << lhsMaskVal << "\t\tE = " << rhsMaskVal << "\n";
561 dbgs() << "C = " << lhsShiftVal << "\t\tF = " << rhsShiftVal << "\n";
562 dbgs() << "width(B) = " << lhsMaskWidth;
563 dbgs() << "\twidth(E) = " << rhsMaskWidth << "\n";
564 dbgs() << "offset(B) = " << lhsMaskOffset;
565 dbgs() << "\toffset(E) = " << rhsMaskOffset << "\n";
566 dbgs() << "Constraints: \n";
567 dbgs() << "\t(1) B ^ E == 0\n";
568 dbgs() << "\t(2-LHS) B is a mask\n";
569 dbgs() << "\t(2-LHS) E is a mask\n";
570 dbgs() << "\t(3-LHS) (offset(B)) >= (width(E) + offset(E))\n";
571 dbgs() << "\t(3-RHS) (offset(E)) >= (width(B) + offset(B))\n";
575 dbgs() << lhsMaskVal << " ^ " << rhsMaskVal;
576 dbgs() << " = " << (lhsMaskVal ^ rhsMaskVal) << "\n";
577 dbgs() << "Failed constraint 1!\n";
582 dbgs() << "LHS = " << lhsMaskOffset << "";
583 dbgs() << " >= (" << rhsMaskWidth << " + " << rhsMaskOffset << ") = ";
584 dbgs() << (lhsMaskOffset >= (rhsMaskWidth + rhsMaskOffset));
585 dbgs() << "\nRHS = " << rhsMaskOffset << "";
586 dbgs() << " >= (" << lhsMaskWidth << " + " << lhsMaskOffset << ") = ";
587 dbgs() << (rhsMaskOffset >= (lhsMaskWidth + lhsMaskOffset));
588 dbgs() << "\n";
596 dbgs() << "Value is not a Mask: " << lhsMaskVal << "\n";
597 dbgs() << "Failed constraint 2!\n";
609 dbgs() << "Optimizing LHS!\n";
618 dbgs() << "Non-Mask: " << rhsMaskVal << "\n";
619 dbgs() << "Failed constraint 2!\n";
631 dbgs() << "Optimizing RHS!\n";
635 dbgs() << "Failed constraint 3!\n";
640 dbgs() << "Width: "; if (width) { width->dump(); } else { dbgs() << "(0)\n"; }
641 dbgs() << "Offset: "; if (offset) { offset->dump(); } else { dbgs() << "(0)\n"; }
642 dbgs() << "LHSSrc: "; if (LHSSrc) { LHSSrc->dump(); } else { dbgs() << "(0)\n"; }
643 dbgs() << "RHSSrc: "; if (RHSSrc) { RHSSrc->dump(); } else { dbgs() << "(0)\n"; }
647 dbgs() << "Either width or offset are NULL, failed detection!\n";
671 dbgs() << "Old Inst: ";
673 dbgs() << "New Inst: ";
675 dbgs() << "\n\n";