Lines Matching refs:TableSize

4980       Module &M, uint64_t TableSize, ConstantInt *Offset,
4988 /// Return true if a table with TableSize elements of
4990 static bool WouldFitInRegister(const DataLayout &DL, uint64_t TableSize,
5034 Module &M, uint64_t TableSize, ConstantInt *Offset,
5038 assert(TableSize >= Values.size() && "Can't fit values in table!");
5046 SmallVector<Constant *, 64> TableContents(TableSize);
5060 if (Values.size() < TableSize) {
5064 for (uint64_t I = 0; I < TableSize; ++I) {
5086 assert(TableSize >= 2 && "Should be a SingleValue table.");
5088 for (uint64_t I = 0; I < TableSize; ++I) {
5118 if (WouldFitInRegister(DL, TableSize, ValueType)) {
5120 APInt TableInt(TableSize * IT->getBitWidth(), 0);
5121 for (uint64_t I = TableSize; I > 0; --I) {
5137 ArrayType *ArrayTy = ArrayType::get(ValueType, TableSize);
5187 uint64_t TableSize =
5189 if (TableSize > (1ULL << (IT->getBitWidth() - 1)))
5206 uint64_t TableSize,
5215 if (TableSize >= UINT_MAX / IT->getBitWidth())
5217 return DL.fitsInLegalInteger(TableSize * IT->getBitWidth());
5223 ShouldBuildLookupTable(SwitchInst *SI, uint64_t TableSize,
5226 if (SI->getNumCases() > TableSize || TableSize >= UINT64_MAX / 10)
5227 return false; // TableSize overflowed, or mul below might overflow.
5240 SwitchLookupTable::WouldFitInRegister(DL, TableSize, Ty);
5260 return SI->getNumCases() * 10 >= TableSize * 4;
5420 uint64_t TableSize = RangeSpread.getLimitedValue() + 1;
5421 bool TableHasHoles = (NumResults < TableSize);
5435 if (!DL.fitsInLegalInteger(TableSize))
5445 if (!ShouldBuildLookupTable(SI, TableSize, TTI, DL, ResultTypes))
5466 assert(MaxTableSize >= TableSize &&
5475 const bool GeneratingCoveredLookupTable = (MaxTableSize == TableSize);
5484 TableIndex, ConstantInt::get(MinCaseVal->getType(), TableSize));
5502 uint64_t TableSizePowOf2 = NextPowerOf2(std::max(7ULL, TableSize - 1ULL));
5543 SwitchLookupTable Table(Mod, TableSize, MinCaseVal, ResultList, DV, DL,