Lines Matching full:tablesize

6453       Module &M, uint64_t TableSize, ConstantInt *Offset,
6461 /// Return true if a table with TableSize elements of
6463 static bool wouldFitInRegister(const DataLayout &DL, uint64_t TableSize,
6508 Module &M, uint64_t TableSize, ConstantInt *Offset,
6512 assert(TableSize >= Values.size() && "Can't fit values in table!");
6520 SmallVector<Constant *, 64> TableContents(TableSize);
6534 if (Values.size() < TableSize) {
6538 for (uint64_t I = 0; I < TableSize; ++I) {
6566 assert(TableSize >= 2 && "Should be a SingleValue table.");
6568 for (uint64_t I = 0; I < TableSize; ++I) {
6605 if (isIntN(M.getBitWidth(), TableSize - 1))
6606 (void)M.smul_ov(APInt(M.getBitWidth(), TableSize - 1), MayWrap);
6615 if (wouldFitInRegister(DL, TableSize, ValueType)) {
6617 APInt TableInt(TableSize * IT->getBitWidth(), 0);
6618 for (uint64_t I = TableSize; I > 0; --I) {
6634 ArrayType *ArrayTy = ArrayType::get(ValueType, TableSize);
6691 uint64_t TableSize =
6693 if (TableSize > (1ULL << std::min(IT->getBitWidth() - 1, 63u)))
6710 uint64_t TableSize,
6719 if (TableSize >= UINT_MAX / IT->getBitWidth())
6721 return DL.fitsInLegalInteger(TableSize * IT->getBitWidth());
6772 shouldBuildLookupTable(SwitchInst *SI, uint64_t TableSize,
6775 if (SI->getNumCases() > TableSize)
6776 return false; // TableSize overflowed.
6789 SwitchLookupTable::wouldFitInRegister(DL, TableSize, Ty);
6806 return isSwitchDense(SI->getNumCases(), TableSize);
6821 DL, MaxCaseVal.getLimitedValue() + 1 /* TableSize */,
6828 /// if (idx < tablesize)
6837 /// cond = idx < tablesize;
6998 uint64_t TableSize;
7000 TableSize = MaxCaseVal->getLimitedValue() + 1;
7002 TableSize =
7010 bool TableHasHoles = (NumResults < TableSize);
7028 if (!DL.fitsInLegalInteger(TableSize))
7032 if (!shouldBuildLookupTable(SI, TableSize, TTI, DL, ResultTypes))
7041 assert(MaxTableSize >= TableSize &&
7090 TableSize = std::max(UpperBound, TableSize);
7097 const bool GeneratingCoveredLookupTable = (MaxTableSize == TableSize);
7106 TableIndex, ConstantInt::get(MinCaseVal->getType(), TableSize));
7126 uint64_t TableSizePowOf2 = NextPowerOf2(std::max(7ULL, TableSize - 1ULL));
7174 SwitchLookupTable Table(Mod, TableSize, TableIndexOffset, ResultList, DV,