Lines Matching refs:Matcher
59 unsigned EmitMatcherList(const Matcher *N, unsigned Indent,
64 void EmitHistogram(const Matcher *N, formatted_raw_ostream &OS);
66 unsigned EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx,
156 EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx, in EmitMatcher()
161 case Matcher::Scope: { in EmitMatcher()
223 case Matcher::RecordNode: in EmitMatcher()
232 case Matcher::RecordChild: in EmitMatcher()
242 case Matcher::RecordMemRef: in EmitMatcher()
246 case Matcher::CaptureGlueInput: in EmitMatcher()
250 case Matcher::MoveChild: in EmitMatcher()
254 case Matcher::MoveParent: in EmitMatcher()
258 case Matcher::CheckSame: in EmitMatcher()
263 case Matcher::CheckChildSame: in EmitMatcher()
269 case Matcher::CheckPatternPredicate: { in EmitMatcher()
277 case Matcher::CheckPredicate: { in EmitMatcher()
286 case Matcher::CheckOpcode: in EmitMatcher()
291 case Matcher::SwitchOpcode: in EmitMatcher()
292 case Matcher::SwitchType: { in EmitMatcher()
311 const Matcher *Child; in EmitMatcher()
380 case Matcher::CheckType: in EmitMatcher()
387 case Matcher::CheckChildType: in EmitMatcher()
393 case Matcher::CheckInteger: { in EmitMatcher()
399 case Matcher::CheckChildInteger: { in EmitMatcher()
407 case Matcher::CheckCondCode: in EmitMatcher()
412 case Matcher::CheckValueType: in EmitMatcher()
417 case Matcher::CheckComplexPat: { in EmitMatcher()
436 case Matcher::CheckAndImm: { in EmitMatcher()
443 case Matcher::CheckOrImm: { in EmitMatcher()
450 case Matcher::CheckFoldableChainNode: in EmitMatcher()
454 case Matcher::EmitInteger: { in EmitMatcher()
462 case Matcher::EmitStringInteger: { in EmitMatcher()
471 case Matcher::EmitRegister: { in EmitMatcher()
472 const EmitRegisterMatcher *Matcher = cast<EmitRegisterMatcher>(N); in EmitMatcher() local
473 const CodeGenRegister *Reg = Matcher->getReg(); in EmitMatcher()
477 OS << "OPC_EmitRegister2, " << getEnumName(Matcher->getVT()) << ", "; in EmitMatcher()
481 OS << "OPC_EmitRegister, " << getEnumName(Matcher->getVT()) << ", "; in EmitMatcher()
494 case Matcher::EmitConvertToTarget: in EmitMatcher()
499 case Matcher::EmitMergeInputChains: { in EmitMatcher()
515 case Matcher::EmitCopyToReg: in EmitMatcher()
521 case Matcher::EmitNodeXForm: { in EmitMatcher()
531 case Matcher::EmitNode: in EmitMatcher()
532 case Matcher::MorphNodeTo: { in EmitMatcher()
584 case Matcher::MarkGlueResults: { in EmitMatcher()
593 case Matcher::CompleteMatch: { in EmitMatcher()
616 EmitMatcherList(const Matcher *N, unsigned Indent, unsigned CurrentIdx, in EmitMatcherList()
741 static void BuildHistogram(const Matcher *M, std::vector<unsigned> &OpcodeFreq){ in BuildHistogram()
763 void MatcherTableEmitter::EmitHistogram(const Matcher *M, in EmitHistogram()
774 switch ((Matcher::KindTy)i) { in EmitHistogram()
775 case Matcher::Scope: OS << "OPC_Scope"; break; in EmitHistogram()
776 case Matcher::RecordNode: OS << "OPC_RecordNode"; break; in EmitHistogram()
777 case Matcher::RecordChild: OS << "OPC_RecordChild"; break; in EmitHistogram()
778 case Matcher::RecordMemRef: OS << "OPC_RecordMemRef"; break; in EmitHistogram()
779 case Matcher::CaptureGlueInput: OS << "OPC_CaptureGlueInput"; break; in EmitHistogram()
780 case Matcher::MoveChild: OS << "OPC_MoveChild"; break; in EmitHistogram()
781 case Matcher::MoveParent: OS << "OPC_MoveParent"; break; in EmitHistogram()
782 case Matcher::CheckSame: OS << "OPC_CheckSame"; break; in EmitHistogram()
783 case Matcher::CheckChildSame: OS << "OPC_CheckChildSame"; break; in EmitHistogram()
784 case Matcher::CheckPatternPredicate: in EmitHistogram()
786 case Matcher::CheckPredicate: OS << "OPC_CheckPredicate"; break; in EmitHistogram()
787 case Matcher::CheckOpcode: OS << "OPC_CheckOpcode"; break; in EmitHistogram()
788 case Matcher::SwitchOpcode: OS << "OPC_SwitchOpcode"; break; in EmitHistogram()
789 case Matcher::CheckType: OS << "OPC_CheckType"; break; in EmitHistogram()
790 case Matcher::SwitchType: OS << "OPC_SwitchType"; break; in EmitHistogram()
791 case Matcher::CheckChildType: OS << "OPC_CheckChildType"; break; in EmitHistogram()
792 case Matcher::CheckInteger: OS << "OPC_CheckInteger"; break; in EmitHistogram()
793 case Matcher::CheckChildInteger: OS << "OPC_CheckChildInteger"; break; in EmitHistogram()
794 case Matcher::CheckCondCode: OS << "OPC_CheckCondCode"; break; in EmitHistogram()
795 case Matcher::CheckValueType: OS << "OPC_CheckValueType"; break; in EmitHistogram()
796 case Matcher::CheckComplexPat: OS << "OPC_CheckComplexPat"; break; in EmitHistogram()
797 case Matcher::CheckAndImm: OS << "OPC_CheckAndImm"; break; in EmitHistogram()
798 case Matcher::CheckOrImm: OS << "OPC_CheckOrImm"; break; in EmitHistogram()
799 case Matcher::CheckFoldableChainNode: in EmitHistogram()
801 case Matcher::EmitInteger: OS << "OPC_EmitInteger"; break; in EmitHistogram()
802 case Matcher::EmitStringInteger: OS << "OPC_EmitStringInteger"; break; in EmitHistogram()
803 case Matcher::EmitRegister: OS << "OPC_EmitRegister"; break; in EmitHistogram()
804 case Matcher::EmitConvertToTarget: OS << "OPC_EmitConvertToTarget"; break; in EmitHistogram()
805 case Matcher::EmitMergeInputChains: OS << "OPC_EmitMergeInputChains"; break; in EmitHistogram()
806 case Matcher::EmitCopyToReg: OS << "OPC_EmitCopyToReg"; break; in EmitHistogram()
807 case Matcher::EmitNode: OS << "OPC_EmitNode"; break; in EmitHistogram()
808 case Matcher::MorphNodeTo: OS << "OPC_MorphNodeTo"; break; in EmitHistogram()
809 case Matcher::EmitNodeXForm: OS << "OPC_EmitNodeXForm"; break; in EmitHistogram()
810 case Matcher::MarkGlueResults: OS << "OPC_MarkGlueResults"; break; in EmitHistogram()
811 case Matcher::CompleteMatch: OS << "OPC_CompleteMatch"; break; in EmitHistogram()
820 void llvm::EmitMatcherTable(const Matcher *TheMatcher, in EmitMatcherTable()