File tree 2 files changed +11
-15
lines changed
llvm/include/llvm/Support
2 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
// / \file
9
9
// /
10
- // / This file defines the MallocAllocator and BumpPtrAllocator interfaces. Both
11
- // / of these conform to an LLVM "Allocator" concept which consists of an
12
- // / Allocate method accepting a size and alignment, and a Deallocate accepting
13
- // / a pointer and size. Further, the LLVM "Allocator" concept has overloads of
14
- // / Allocate and Deallocate for setting size and alignment based on the final
15
- // / type. These overloads are typically provided by a base class template \c
16
- // / AllocatorBase.
10
+ // / This file defines the BumpPtrAllocator interface. BumpPtrAllocator conforms
11
+ // / to the LLVM "Allocator" concept and is similar to MallocAllocator, but
12
+ // / objects cannot be deallocated. Their lifetime is tied to the lifetime of the
13
+ // / allocator.
17
14
// /
18
15
// ===----------------------------------------------------------------------===//
19
16
Original file line number Diff line number Diff line change 1
- // ===- AllocatorBase.h - Simple memory allocation abstraction ------- *- C++ -*-===//
1
+ // ===- AllocatorBase.h - Simple memory allocation abstraction ---*- C++ -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
7
7
// ===----------------------------------------------------------------------===//
8
8
// / \file
9
9
// /
10
- // / This file defines the MallocAllocator and BumpPtrAllocator interfaces. Both
11
- // / of these conform to an LLVM "Allocator" concept which consists of an
12
- // / Allocate method accepting a size and alignment, and a Deallocate accepting
13
- // / a pointer and size. Further, the LLVM "Allocator" concept has overloads of
14
- // / Allocate and Deallocate for setting size and alignment based on the final
15
- // / type. These overloads are typically provided by a base class template \c
16
- // / AllocatorBase.
10
+ // / This file defines MallocAllocator. MallocAllocator conforms to the LLVM
11
+ // / "Allocator" concept which consists of an Allocate method accepting a size
12
+ // / and alignment, and a Deallocate accepting a pointer and size. Further, the
13
+ // / LLVM "Allocator" concept has overloads of Allocate and Deallocate for
14
+ // / setting size and alignment based on the final type. These overloads are
15
+ // / typically provided by a base class template \c AllocatorBase.
17
16
// /
18
17
// ===----------------------------------------------------------------------===//
19
18
You can’t perform that action at this time.
0 commit comments