diff options
author | Timm Baeder <tbaeder@redhat.com> | 2024-07-14 19:58:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-14 19:58:17 +0200 |
commit | fa133d3151b5e428b1c5819d29b0ad28a90882a2 (patch) | |
tree | 99d4988370c28cb4b385114f0d0ee33ea4dc3122 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | a72eed7a238b0087789229bf635d3c517f8e7ff1 (diff) | |
download | llvm-fa133d3151b5e428b1c5819d29b0ad28a90882a2.zip llvm-fa133d3151b5e428b1c5819d29b0ad28a90882a2.tar.gz llvm-fa133d3151b5e428b1c5819d29b0ad28a90882a2.tar.bz2 |
[clang][Interp] Implement dynamic memory allocation handling (#70306)
Implement handling for new/delete/new[]/delete[] expressions via a new
`DynamicAllocator` class.
This introduces four new opcodes:
- `Alloc` - Allocates one element (`new int(14)`)
- `AllocN` - Allocates N elements of the given primitive (`new
int[100]`)
- `AllocCN` - Allocates N elements of the given (composite) descriptor
(`new S[100]`)
- `Free` - de-allocates memory allocates using any of the above.
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions