aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorValentin Clement (バレンタイン クレメン) <clementval@gmail.com>2024-08-01 09:39:53 -0700
committerGitHub <noreply@github.com>2024-08-01 09:39:53 -0700
commit6df4e7c25ffb15ed8cba8ccb9cf9fa18b082013d (patch)
treead4270873460f7de09d9d272061a0a81df314124 /llvm/lib/Object/MachOObjectFile.cpp
parent2177a1767b88d684830b83ac7f06d0f9f15102e2 (diff)
downloadllvm-6df4e7c25ffb15ed8cba8ccb9cf9fa18b082013d.zip
llvm-6df4e7c25ffb15ed8cba8ccb9cf9fa18b082013d.tar.gz
llvm-6df4e7c25ffb15ed8cba8ccb9cf9fa18b082013d.tar.bz2
[flang] Add ability to have special allocator for descriptor data (#100690)
This patch enhances the descriptor with the ability to have specialized allocator. The allocators are registered in a dedicated registry and the index of the desired allocator is stored in the descriptor. The default allocator, std::malloc, is registered at index 0. In order to have this allocator index in the descriptor, the f18Addendum field is repurposed to be able to hold the presence flag for the addendum (lsb) and the allocator index. Since this is a change in the semantic and name of the 7th field of the descriptor, the CFI_VERSION is bumped to the date of the initial change. This patch only adds the ability to have this features as part of the descriptor but does not add specific allocator yet. CUDA fortran will be the first user of this feature to allocate descriptor data in the different type of device memory base on the CUDA attribute. --------- Co-authored-by: Slava Zakharin <szakharin@nvidia.com>
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions