llvm-project/openmp/libomptarget/deviceRTLs
Jon Chesterfield d54712ab4d [libomptarget][amdgpu] Mark alloc, free weak to facilitate local experimentation
[libomptarget][amdgpu] Mark alloc, free weak to facilitate local experimentation

There are a lot of different ways we might implement the devicertl local alloc
and free functions. Via host, local buffers (stack or arena), specialising per
kernel etc. It is not yet clear what the right design is. This change makes the
alloc and free functions weak, so one can override them from local tests while
comparing options.

Not strictly necessary, as a comparable patch can be applied locally each time,
but would be convenient for out of tree dev. Plan would be to drop the weak
attribute at the same time as introducing a working allocator to trunk.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D102499
2021-05-21 16:09:22 +01:00
..
amdgcn [libomptarget][amdgpu] Mark alloc, free weak to facilitate local experimentation 2021-05-21 16:09:22 +01:00
common [OpenMP] Avoid reading uninitialized parallel level values 2021-04-23 11:21:58 -05:00
nvptx [OpenMP][CMake] Use in-project clang as CUDA->IR compiler. 2021-04-30 12:45:52 -05:00
CMakeLists.txt [libomptarget] Enable AMDGPU devicertl 2021-04-24 02:24:44 +01:00
interface.h [OpenMP] Simplify offloading parallel call codegen 2021-04-21 18:46:07 -07:00
target_interface.h [libomptarget][nfc] Drop unused DEVICE macro 2021-03-15 20:12:50 +00:00