Lines Matching defs:BumpVectorContext
32 class BumpVectorContext {
36 /// Construct a new BumpVectorContext that creates a new BumpPtrAllocator
37 /// and destroys it when the BumpVectorContext object is destroyed.
38 BumpVectorContext() : Alloc(new llvm::BumpPtrAllocator(), 1) {}
40 BumpVectorContext(BumpVectorContext &&Other) : Alloc(Other.Alloc) {
47 BumpVectorContext &operator=(BumpVectorContext &&) = delete;
51 BumpVectorContext(const BumpVectorContext &) = delete;
52 BumpVectorContext &operator=(const BumpVectorContext &) = delete;
54 /// Construct a new BumpVectorContext that reuses an existing
56 /// BumpVectorContext object is destroyed.
57 BumpVectorContext(llvm::BumpPtrAllocator &A) : Alloc(&A, 0) {}
59 ~BumpVectorContext() {
75 explicit BumpVector(BumpVectorContext &C, unsigned N) {
168 void push_back(const_reference Elt, BumpVectorContext &C) {
182 BumpVectorContext &C) {
197 void reserve(BumpVectorContext &C, unsigned N) {
209 void grow(BumpVectorContext &C, size_type MinSize = 1);
234 void BumpVector<T>::grow(BumpVectorContext &C, size_t MinSize) {
257 // BumpVectorContext.