• Home
  • Raw
  • Download

Lines Matching refs:BG

1097     for (auto &BG : BitGroups) {  in collectValueRotInfo()  local
1098 unsigned RLAmtKey = BG.RLAmt + (BG.Repl32 ? 64 : 0); in collectValueRotInfo()
1099 ValueRotInfo &VRI = ValueRots[std::make_pair(BG.V, RLAmtKey)]; in collectValueRotInfo()
1100 VRI.V = BG.V; in collectValueRotInfo()
1101 VRI.RLAmt = BG.RLAmt; in collectValueRotInfo()
1102 VRI.Repl32 = BG.Repl32; in collectValueRotInfo()
1104 VRI.FirstGroupStartIdx = std::min(VRI.FirstGroupStartIdx, BG.StartIdx); in collectValueRotInfo()
1135 auto IsAllLow32 = [this](BitGroup & BG) { in assignRepl32BitGroups() argument
1136 if (BG.StartIdx <= BG.EndIdx) { in assignRepl32BitGroups()
1137 for (unsigned i = BG.StartIdx; i <= BG.EndIdx; ++i) { in assignRepl32BitGroups()
1144 for (unsigned i = BG.StartIdx; i < Bits.size(); ++i) { in assignRepl32BitGroups()
1150 for (unsigned i = 0; i <= BG.EndIdx; ++i) { in assignRepl32BitGroups()
1161 for (auto &BG : BitGroups) { in assignRepl32BitGroups() local
1162 if (BG.StartIdx < 32 && BG.EndIdx < 32) { in assignRepl32BitGroups()
1163 if (IsAllLow32(BG)) { in assignRepl32BitGroups()
1164 if (BG.RLAmt >= 32) { in assignRepl32BitGroups()
1165 BG.RLAmt -= 32; in assignRepl32BitGroups()
1166 BG.Repl32CR = true; in assignRepl32BitGroups()
1169 BG.Repl32 = true; in assignRepl32BitGroups()
1172 BG.V.getNode() << " RLAmt = " << BG.RLAmt << in assignRepl32BitGroups()
1173 " [" << BG.StartIdx << ", " << BG.EndIdx << "]\n"); in assignRepl32BitGroups()
1359 eraseMatchingBitGroups([VRI](const BitGroup &BG) { in SelectAndParts32() argument
1360 return BG.V == VRI.V && BG.RLAmt == VRI.RLAmt; in SelectAndParts32()
1392 eraseMatchingBitGroups([VRI](const BitGroup &BG) { in Select32() argument
1393 return BG.V == VRI.V && BG.RLAmt == VRI.RLAmt; in Select32()
1400 for (auto &BG : BitGroups) { in Select32() local
1403 { BG.V, getI32Imm(BG.RLAmt, dl), in Select32()
1404 getI32Imm(Bits.size() - BG.EndIdx - 1, dl), in Select32()
1405 getI32Imm(Bits.size() - BG.StartIdx - 1, dl) }; in Select32()
1409 { Res, BG.V, getI32Imm(BG.RLAmt, dl), in Select32()
1410 getI32Imm(Bits.size() - BG.EndIdx - 1, dl), in Select32()
1411 getI32Imm(Bits.size() - BG.StartIdx - 1, dl) }; in Select32()
1596 auto MatchingBG = [VRI](const BitGroup &BG) { in SelectAndParts64() argument
1597 if (VRI.V != BG.V) in SelectAndParts64()
1600 unsigned EffRLAmt = BG.RLAmt; in SelectAndParts64()
1601 if (!VRI.Repl32 && BG.Repl32) { in SelectAndParts64()
1602 if (BG.StartIdx < 32 && BG.EndIdx < 32 && BG.StartIdx <= BG.EndIdx && in SelectAndParts64()
1603 !BG.Repl32Coalesced) { in SelectAndParts64()
1604 if (BG.Repl32CR) in SelectAndParts64()
1609 } else if (VRI.Repl32 != BG.Repl32) { in SelectAndParts64()
1616 for (auto &BG : BitGroups) { in SelectAndParts64() local
1617 if (!MatchingBG(BG)) in SelectAndParts64()
1620 if (BG.StartIdx <= BG.EndIdx) { in SelectAndParts64()
1621 for (unsigned i = BG.StartIdx; i <= BG.EndIdx; ++i) in SelectAndParts64()
1624 for (unsigned i = BG.StartIdx; i < Bits.size(); ++i) in SelectAndParts64()
1626 for (unsigned i = 0; i <= BG.EndIdx; ++i) in SelectAndParts64()
1651 for (auto &BG : BitGroups) { in SelectAndParts64() local
1652 if (!MatchingBG(BG)) in SelectAndParts64()
1655 SelectRotMask64Count(BG.RLAmt, BG.Repl32, BG.StartIdx, BG.EndIdx, in SelectAndParts64()
1760 for (auto &BG : BitGroups) { in Select64() local
1761 if (BG.V != VRI.V || BG.RLAmt != VRI.RLAmt || in Select64()
1762 BG.Repl32 != VRI.Repl32) in Select64()
1767 if (BG.StartIdx < 32 && BG.EndIdx < 32 && BG.StartIdx < BG.EndIdx) in Select64()
1784 eraseMatchingBitGroups([VRI](const BitGroup &BG) { in Select64() argument
1785 return BG.V == VRI.V && BG.RLAmt == VRI.RLAmt && in Select64()
1786 BG.Repl32 == VRI.Repl32; in Select64()
1799 BitGroup BG = *I; in Select64() local
1801 BitGroups.insert(BitGroups.begin(), BG); in Select64()
1809 for (auto &BG : BitGroups) { in Select64() local
1811 Res = SelectRotMask64(BG.V, dl, BG.RLAmt, BG.Repl32, BG.StartIdx, in Select64()
1812 BG.EndIdx, InstCnt); in Select64()
1814 Res = SelectRotMaskIns64(Res, BG.V, dl, BG.RLAmt, BG.Repl32, in Select64()
1815 BG.StartIdx, BG.EndIdx, InstCnt); in Select64()