This unifies the API of target relative to targetUpdateData and
such.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks for this. A general trend towards passing structs instead of int and void* is a good thing.
openmp/libomptarget/src/omptarget.cpp | ||
---|---|---|
18 | ^looks like an overenthusiastic editor. stdint.h? | |
1244 | Changes from int64 to int32 here. Either is presumably fine, probably good to use the same width across the library. | |
openmp/libomptarget/src/private.h | ||
16 | Yes, but let's optimise for the compiler finding our mistakes (via include) instead of for compile time for now. |
openmp/libomptarget/src/omptarget.cpp | ||
---|---|---|
1244 | Originally, the device ID argument of __tgt_* functions was a 32-bit integer. At some point it was extended to 64 bits in order to store more information like sub-device ID etc.. Internally, however, the library still uses the 32-bit representation. This is not an issue right now because none of the extra information is generated by clang or used by libomptarget yet, but certainly something to watch out for in the future. Nothing to be addressed in the scope of this patch though. |
openmp/libomptarget/src/omptarget.cpp | ||
---|---|---|
1244 | We have quite a few of those mismatches we can clean up as we go. As u said, shouldn't break anything right now. |
A bit of noise here