aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorTimm Baeder <tbaeder@redhat.com>2024-07-14 19:58:17 +0200
committerGitHub <noreply@github.com>2024-07-14 19:58:17 +0200
commitfa133d3151b5e428b1c5819d29b0ad28a90882a2 (patch)
tree99d4988370c28cb4b385114f0d0ee33ea4dc3122 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parenta72eed7a238b0087789229bf635d3c517f8e7ff1 (diff)
downloadllvm-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