The AMDGPU NextGen plugin will use this class for counting the references of some device resources.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@jdoerfert @jhuber6 @tianshilei1992 do you think this can be useful for libomptarget at some point? If not, I'll move it to the AMDGPU plugin directly
| openmp/libomptarget/include/Utilities.h | ||
|---|---|---|
| 151 | Maybe memory order can be a template argument as well? | |
Comment Actions
We'll probably need something like this in libomptarget if I ever get around to finishing D131089.
| openmp/libomptarget/include/Utilities.h | ||
|---|---|---|
| 151 | Sure. I'll set std::memory_order_relaxed by default. | |
increase or inc sounds better as it is already the member function of RefCountTy.