Lines Matching defs:MatcherIndex

2813 CheckSame(const unsigned char *MatcherTable, unsigned &MatcherIndex, SDValue N,
2816 unsigned RecNo = MatcherTable[MatcherIndex++];
2823 const unsigned char *MatcherTable, unsigned &MatcherIndex, SDValue N,
2828 return ::CheckSame(MatcherTable, MatcherIndex, N.getOperand(ChildNo),
2835 unsigned &MatcherIndex, const SelectionDAGISel &SDISel) {
2840 ? MatcherTable[MatcherIndex++]
2843 PredNo |= MatcherTable[MatcherIndex++] << 8;
2850 unsigned &MatcherIndex, const SelectionDAGISel &SDISel,
2853 ? MatcherTable[MatcherIndex++]
2859 CheckOpcode(const unsigned char *MatcherTable, unsigned &MatcherIndex,
2861 uint16_t Opc = MatcherTable[MatcherIndex++];
2862 Opc |= static_cast<uint16_t>(MatcherTable[MatcherIndex++]) << 8;
2886 CheckCondCode(const unsigned char *MatcherTable, unsigned &MatcherIndex,
2889 static_cast<ISD::CondCode>(MatcherTable[MatcherIndex++]);
2893 CheckChild2CondCode(const unsigned char *MatcherTable, unsigned &MatcherIndex,
2897 return ::CheckCondCode(MatcherTable, MatcherIndex, N.getOperand(2));
2901 CheckValueType(const unsigned char *MatcherTable, unsigned &MatcherIndex,
2904 static_cast<MVT::SimpleValueType>(MatcherTable[MatcherIndex++]);
2924 CheckInteger(const unsigned char *MatcherTable, unsigned &MatcherIndex,
2926 int64_t Val = MatcherTable[MatcherIndex++];
2928 Val = GetVBR(Val, MatcherTable, MatcherIndex);
2937 CheckChildInteger(const unsigned char *MatcherTable, unsigned &MatcherIndex,
2941 return ::CheckInteger(MatcherTable, MatcherIndex, N.getOperand(ChildNo));
2945 CheckAndImm(const unsigned char *MatcherTable, unsigned &MatcherIndex,
2947 int64_t Val = MatcherTable[MatcherIndex++];
2949 Val = GetVBR(Val, MatcherTable, MatcherIndex);
2958 CheckOrImm(const unsigned char *MatcherTable, unsigned &MatcherIndex, SDValue N,
2960 int64_t Val = MatcherTable[MatcherIndex++];
2962 Val = GetVBR(Val, MatcherTable, MatcherIndex);
2973 /// known to pass, set Result=false and return the MatcherIndex to continue
2975 /// MatcherIndex to continue with.
3303 unsigned MatcherIndex = 0;
3308 MatcherIndex = OpcodeOffset[N.getOpcode()];
3309 LLVM_DEBUG(dbgs() << " Initial Opcode index to " << MatcherIndex << "\n");
3334 MatcherIndex = OpcodeOffset[N.getOpcode()];
3338 assert(MatcherIndex < TableSize && "Invalid index");
3340 unsigned CurrentOpcodeIndex = MatcherIndex;
3343 static_cast<BuiltinOpcodes>(MatcherTable[MatcherIndex++]);
3354 unsigned NumToSkip = MatcherTable[MatcherIndex++];
3356 NumToSkip = GetVBR(NumToSkip, MatcherTable, MatcherIndex);
3363 FailIndex = MatcherIndex+NumToSkip;
3365 unsigned MatcherIndexOfPredicate = MatcherIndex;
3372 MatcherIndex = IsPredicateKnownToFail(MatcherTable, MatcherIndex, N,
3385 MatcherIndex = FailIndex;
3443 unsigned ChildNo = MatcherTable[MatcherIndex++];
3478 ? MatcherTable[MatcherIndex++]
3494 if (!::CheckSame(MatcherTable, MatcherIndex, N, RecordedNodes)) break;
3499 if (!::CheckChildSame(MatcherTable, MatcherIndex, N, RecordedNodes,
3514 if (!::CheckPatternPredicate(Opcode, MatcherTable, MatcherIndex, *this))
3526 if (!::CheckNodePredicate(Opcode, MatcherTable, MatcherIndex, *this,
3531 unsigned OpNum = MatcherTable[MatcherIndex++];
3535 Operands.push_back(RecordedNodes[MatcherTable[MatcherIndex++]].first);
3537 unsigned PredNo = MatcherTable[MatcherIndex++];
3552 ? MatcherTable[MatcherIndex++]
3554 unsigned RecNo = MatcherTable[MatcherIndex++];
3571 if (!::CheckOpcode(MatcherTable, MatcherIndex, N.getNode())) break;
3586 VT = static_cast<MVT::SimpleValueType>(MatcherTable[MatcherIndex++]);
3594 unsigned Res = MatcherTable[MatcherIndex++];
3596 static_cast<MVT::SimpleValueType>(MatcherTable[MatcherIndex++]),
3604 unsigned SwitchStart = MatcherIndex-1; (void)SwitchStart;
3608 CaseSize = MatcherTable[MatcherIndex++];
3610 CaseSize = GetVBR(CaseSize, MatcherTable, MatcherIndex);
3613 uint16_t Opc = MatcherTable[MatcherIndex++];
3614 Opc |= static_cast<uint16_t>(MatcherTable[MatcherIndex++]) << 8;
3621 MatcherIndex += CaseSize;
3629 << MatcherIndex << "\n");
3635 unsigned SwitchStart = MatcherIndex-1; (void)SwitchStart;
3639 CaseSize = MatcherTable[MatcherIndex++];
3641 CaseSize = GetVBR(CaseSize, MatcherTable, MatcherIndex);
3645 static_cast<MVT::SimpleValueType>(MatcherTable[MatcherIndex++]);
3654 MatcherIndex += CaseSize;
3662 << "] from " << SwitchStart << " to " << MatcherIndex
3701 VT = static_cast<MVT::SimpleValueType>(MatcherTable[MatcherIndex++]);
3709 if (!::CheckCondCode(MatcherTable, MatcherIndex, N)) break;
3712 if (!::CheckChild2CondCode(MatcherTable, MatcherIndex, N)) break;
3715 if (!::CheckValueType(MatcherTable, MatcherIndex, N, TLI,
3720 if (!::CheckInteger(MatcherTable, MatcherIndex, N)) break;
3725 if (!::CheckChildInteger(MatcherTable, MatcherIndex, N,
3729 if (!::CheckAndImm(MatcherTable, MatcherIndex, N, *this)) break;
3732 if (!::CheckOrImm(MatcherTable, MatcherIndex, N, *this)) break;
3795 VT = static_cast<MVT::SimpleValueType>(MatcherTable[MatcherIndex++]);
3798 int64_t Val = MatcherTable[MatcherIndex++];
3800 Val = GetVBR(Val, MatcherTable, MatcherIndex);
3819 VT = static_cast<MVT::SimpleValueType>(MatcherTable[MatcherIndex++]);
3822 unsigned RegNo = MatcherTable[MatcherIndex++];
3832 static_cast<MVT::SimpleValueType>(MatcherTable[MatcherIndex++]);
3833 unsigned RegNo = MatcherTable[MatcherIndex++];
3834 RegNo |= MatcherTable[MatcherIndex++] << 8;
3851 ? MatcherTable[MatcherIndex++]
3911 unsigned NumChains = MatcherTable[MatcherIndex++];
3919 unsigned RecNo = MatcherTable[MatcherIndex++];
3960 : MatcherTable[MatcherIndex++];
3962 unsigned DestPhysReg = MatcherTable[MatcherIndex++];
3964 DestPhysReg |= MatcherTable[MatcherIndex++] << 8;
3978 unsigned XFormNo = MatcherTable[MatcherIndex++];
3979 unsigned RecNo = MatcherTable[MatcherIndex++];
3988 unsigned index = MatcherTable[MatcherIndex++];
3989 index |= (MatcherTable[MatcherIndex++] << 8);
4021 uint16_t TargetOpc = MatcherTable[MatcherIndex++];
4022 TargetOpc |= static_cast<uint16_t>(MatcherTable[MatcherIndex++]) << 8;
4042 EmitNodeInfo = MatcherTable[MatcherIndex++];
4067 NumVTs = MatcherTable[MatcherIndex++];
4071 static_cast<MVT::SimpleValueType>(MatcherTable[MatcherIndex++]);
4093 unsigned NumOps = MatcherTable[MatcherIndex++];
4096 unsigned RecNo = MatcherTable[MatcherIndex++];
4098 RecNo = GetVBR(RecNo, MatcherTable, MatcherIndex);
4235 unsigned NumResults = MatcherTable[MatcherIndex++];
4238 unsigned ResSlot = MatcherTable[MatcherIndex++];
4240 ResSlot = GetVBR(ResSlot, MatcherTable, MatcherIndex);
4301 MatcherIndex = LastScope.FailIndex;
4303 LLVM_DEBUG(dbgs() << " Continuing at " << MatcherIndex << "\n");
4310 // Check to see what the offset is at the new MatcherIndex. If it is zero
4313 unsigned NumToSkip = MatcherTable[MatcherIndex++];
4315 NumToSkip = GetVBR(NumToSkip, MatcherTable, MatcherIndex);
4320 LastScope.FailIndex = MatcherIndex+NumToSkip;