Lines Matching defs:MHS

1529 ProfileTernOpInit(FoldingSetNodeID &ID, unsigned Opcode, Init *LHS, Init *MHS,
1533 ID.AddPointer(MHS);
1538 TernOpInit *TernOpInit::get(TernaryOp Opc, Init *LHS, Init *MHS, Init *RHS,
1541 ProfileTernOpInit(ID, Opc, LHS, MHS, RHS, Type);
1548 TernOpInit *I = new (RK.Allocator) TernOpInit(Opc, LHS, MHS, RHS, Type);
1591 // Applies RHS to all elements of MHS, using LHS as a temp variable.
1592 static Init *ForeachHelper(Init *LHS, Init *MHS, Init *RHS, RecTy *Type,
1594 if (DagInit *MHSd = dyn_cast<DagInit>(MHS))
1597 if (ListInit *MHSl = dyn_cast<ListInit>(MHS)) {
1611 // Evaluates RHS for all elements of MHS, using LHS as a temp variable.
1613 static Init *FilterHelper(Init *LHS, Init *MHS, Init *RHS, RecTy *Type,
1615 if (ListInit *MHSl = dyn_cast<ListInit>(MHS)) {
1645 DefInit *MHSd = dyn_cast<DefInit>(MHS);
1646 VarInit *MHSv = dyn_cast<VarInit>(MHS);
1647 StringInit *MHSs = dyn_cast<StringInit>(MHS);
1685 if (Init *Result = ForeachHelper(LHS, MHS, RHS, getType(), CurRec))
1691 if (Init *Result = FilterHelper(LHS, MHS, RHS, getType(), CurRec))
1700 return MHS;
1707 ListInit *MHSl = dyn_cast<ListInit>(MHS);
1709 bool MHSok = MHSl || isa<UnsetInit>(MHS);
1712 if (isa<UnsetInit>(MHS) && isa<UnsetInit>(RHS))
1732 auto *MHSi = dyn_cast<IntInit>(MHS);
1760 IntInit *MHSi = dyn_cast<IntInit>(MHS);
1781 StringInit *MHSs = dyn_cast<StringInit>(MHS);
1801 if (Dag && isa<IntInit, StringInit>(MHS)) {
1803 auto ArgNo = getDagArgNoByKey(Dag, MHS, Error);
1819 if (Dag && isa<IntInit, StringInit>(MHS)) {
1821 auto ArgNo = getDagArgNoByKey(Dag, MHS, Error);
1847 return MHS->resolveReferences(R);
1852 Init *mhs = MHS->resolveReferences(R);
1863 if (LHS != lhs || MHS != mhs || RHS != rhs)
1892 ", " + MHS->getAsString() + ", " + RHS->getAsString() + ")");