Lines Matching +full:max +full:- +full:reason

1 //===- llvm/ADT/SmallVector.cpp - 'Normally small' vectors ----------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
22 // Check that no bytes are wasted and everything is well-aligned.
28 #pragma GCC diagnostic ignored "-Waix-compat"
44 "wrong alignment for 16-byte aligned T");
46 "wrong alignment for 32-byte aligned T");
48 "missing padding for 16-byte aligned T");
50 "missing padding for 32-byte aligned T");
57 "1 byte elements have word-sized type for size and capacity");
63 std::string Reason = "SmallVector unable to grow. Requested capacity (" + in report_size_overflow() local
68 throw std::length_error(Reason); in report_size_overflow()
70 report_fatal_error(Twine(Reason)); in report_size_overflow()
78 std::string Reason = in report_at_maximum_capacity() local
82 throw std::length_error(Reason); in report_at_maximum_capacity()
84 report_fatal_error(Twine(Reason)); in report_at_maximum_capacity()
91 constexpr size_t MaxSize = std::numeric_limits<Size_T>::max(); in getNewCapacity()
127 NewCapacity = getNewCapacity<Size_T>(MinSize, TSize, this->capacity()); in mallocForGrow()
140 size_t NewCapacity = getNewCapacity<Size_T>(MinSize, TSize, this->capacity()); in grow_pod()
148 memcpy(NewElts, this->BeginX, size() * TSize); in grow_pod()
151 NewElts = llvm::safe_realloc(this->BeginX, NewCapacity * TSize); in grow_pod()
156 this->set_allocation_range(NewElts, NewCapacity); in grow_pod()
161 // Disable the uint64_t instantiation for 32-bit builds.
162 // Both uint32_t and uint64_t instantiations are needed for 64-bit builds.
163 // This instantiation will never be used in 32-bit builds, and will cause