Lines Matching refs:Matcher

54   unsigned EmitMatcherList(const Matcher *N, unsigned Indent,
59 void EmitHistogram(const Matcher *N, formatted_raw_ostream &OS);
61 unsigned EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx,
138 EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx, in EmitMatcher()
143 case Matcher::Scope: { in EmitMatcher()
205 case Matcher::RecordNode: in EmitMatcher()
214 case Matcher::RecordChild: in EmitMatcher()
224 case Matcher::RecordMemRef: in EmitMatcher()
228 case Matcher::CaptureGlueInput: in EmitMatcher()
232 case Matcher::MoveChild: in EmitMatcher()
236 case Matcher::MoveParent: in EmitMatcher()
240 case Matcher::CheckSame: in EmitMatcher()
245 case Matcher::CheckPatternPredicate: { in EmitMatcher()
253 case Matcher::CheckPredicate: { in EmitMatcher()
262 case Matcher::CheckOpcode: in EmitMatcher()
267 case Matcher::SwitchOpcode: in EmitMatcher()
268 case Matcher::SwitchType: { in EmitMatcher()
287 const Matcher *Child; in EmitMatcher()
353 case Matcher::CheckType: in EmitMatcher()
360 case Matcher::CheckChildType: in EmitMatcher()
366 case Matcher::CheckInteger: { in EmitMatcher()
372 case Matcher::CheckCondCode: in EmitMatcher()
377 case Matcher::CheckValueType: in EmitMatcher()
382 case Matcher::CheckComplexPat: { in EmitMatcher()
401 case Matcher::CheckAndImm: { in EmitMatcher()
408 case Matcher::CheckOrImm: { in EmitMatcher()
415 case Matcher::CheckFoldableChainNode: in EmitMatcher()
419 case Matcher::EmitInteger: { in EmitMatcher()
427 case Matcher::EmitStringInteger: { in EmitMatcher()
436 case Matcher::EmitRegister: { in EmitMatcher()
437 const EmitRegisterMatcher *Matcher = cast<EmitRegisterMatcher>(N); in EmitMatcher() local
438 const CodeGenRegister *Reg = Matcher->getReg(); in EmitMatcher()
442 OS << "OPC_EmitRegister2, " << getEnumName(Matcher->getVT()) << ", "; in EmitMatcher()
446 OS << "OPC_EmitRegister, " << getEnumName(Matcher->getVT()) << ", "; in EmitMatcher()
459 case Matcher::EmitConvertToTarget: in EmitMatcher()
464 case Matcher::EmitMergeInputChains: { in EmitMatcher()
480 case Matcher::EmitCopyToReg: in EmitMatcher()
486 case Matcher::EmitNodeXForm: { in EmitMatcher()
496 case Matcher::EmitNode: in EmitMatcher()
497 case Matcher::MorphNodeTo: { in EmitMatcher()
549 case Matcher::MarkGlueResults: { in EmitMatcher()
558 case Matcher::CompleteMatch: { in EmitMatcher()
582 EmitMatcherList(const Matcher *N, unsigned Indent, unsigned CurrentIdx, in EmitMatcherList()
710 static void BuildHistogram(const Matcher *M, std::vector<unsigned> &OpcodeFreq){ in BuildHistogram()
732 void MatcherTableEmitter::EmitHistogram(const Matcher *M, in EmitHistogram()
743 switch ((Matcher::KindTy)i) { in EmitHistogram()
744 case Matcher::Scope: OS << "OPC_Scope"; break; in EmitHistogram()
745 case Matcher::RecordNode: OS << "OPC_RecordNode"; break; in EmitHistogram()
746 case Matcher::RecordChild: OS << "OPC_RecordChild"; break; in EmitHistogram()
747 case Matcher::RecordMemRef: OS << "OPC_RecordMemRef"; break; in EmitHistogram()
748 case Matcher::CaptureGlueInput: OS << "OPC_CaptureGlueInput"; break; in EmitHistogram()
749 case Matcher::MoveChild: OS << "OPC_MoveChild"; break; in EmitHistogram()
750 case Matcher::MoveParent: OS << "OPC_MoveParent"; break; in EmitHistogram()
751 case Matcher::CheckSame: OS << "OPC_CheckSame"; break; in EmitHistogram()
752 case Matcher::CheckPatternPredicate: in EmitHistogram()
754 case Matcher::CheckPredicate: OS << "OPC_CheckPredicate"; break; in EmitHistogram()
755 case Matcher::CheckOpcode: OS << "OPC_CheckOpcode"; break; in EmitHistogram()
756 case Matcher::SwitchOpcode: OS << "OPC_SwitchOpcode"; break; in EmitHistogram()
757 case Matcher::CheckType: OS << "OPC_CheckType"; break; in EmitHistogram()
758 case Matcher::SwitchType: OS << "OPC_SwitchType"; break; in EmitHistogram()
759 case Matcher::CheckChildType: OS << "OPC_CheckChildType"; break; in EmitHistogram()
760 case Matcher::CheckInteger: OS << "OPC_CheckInteger"; break; in EmitHistogram()
761 case Matcher::CheckCondCode: OS << "OPC_CheckCondCode"; break; in EmitHistogram()
762 case Matcher::CheckValueType: OS << "OPC_CheckValueType"; break; in EmitHistogram()
763 case Matcher::CheckComplexPat: OS << "OPC_CheckComplexPat"; break; in EmitHistogram()
764 case Matcher::CheckAndImm: OS << "OPC_CheckAndImm"; break; in EmitHistogram()
765 case Matcher::CheckOrImm: OS << "OPC_CheckOrImm"; break; in EmitHistogram()
766 case Matcher::CheckFoldableChainNode: in EmitHistogram()
768 case Matcher::EmitInteger: OS << "OPC_EmitInteger"; break; in EmitHistogram()
769 case Matcher::EmitStringInteger: OS << "OPC_EmitStringInteger"; break; in EmitHistogram()
770 case Matcher::EmitRegister: OS << "OPC_EmitRegister"; break; in EmitHistogram()
771 case Matcher::EmitConvertToTarget: OS << "OPC_EmitConvertToTarget"; break; in EmitHistogram()
772 case Matcher::EmitMergeInputChains: OS << "OPC_EmitMergeInputChains"; break; in EmitHistogram()
773 case Matcher::EmitCopyToReg: OS << "OPC_EmitCopyToReg"; break; in EmitHistogram()
774 case Matcher::EmitNode: OS << "OPC_EmitNode"; break; in EmitHistogram()
775 case Matcher::MorphNodeTo: OS << "OPC_MorphNodeTo"; break; in EmitHistogram()
776 case Matcher::EmitNodeXForm: OS << "OPC_EmitNodeXForm"; break; in EmitHistogram()
777 case Matcher::MarkGlueResults: OS << "OPC_MarkGlueResults"; break; in EmitHistogram()
778 case Matcher::CompleteMatch: OS << "OPC_CompleteMatch"; break; in EmitHistogram()
787 void llvm::EmitMatcherTable(const Matcher *TheMatcher, in EmitMatcherTable()