[Offload][NFC] Rename src/ -> libomptarget/ (#126573)

Summary:
The name `src` is confusing when combined with the plugins and the newly
added `liboffload`.
This commit is contained in:
Joseph Huber 2025-02-10 13:22:10 -06:00 committed by GitHub
parent feb30f25c0
commit a854c266b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 4 additions and 4 deletions

View File

@ -377,7 +377,7 @@ add_subdirectory(DeviceRTL)
add_subdirectory(tools)
# Build target agnostic offloading library.
add_subdirectory(src)
add_subdirectory(libomptarget)
add_subdirectory(tools/offload-tblgen)
add_subdirectory(liboffload)

View File

@ -655,8 +655,8 @@ EXTERN void *omp_get_mapped_ptr(const void *Ptr, int DeviceNum) {
int NumDevices = omp_get_initial_device();
if (DeviceNum == NumDevices) {
DP("Device %d is initial device, returning Ptr " DPxMOD ".\n",
DeviceNum, DPxPTR(Ptr));
DP("Device %d is initial device, returning Ptr " DPxMOD ".\n", DeviceNum,
DPxPTR(Ptr));
return const_cast<void *>(Ptr);
}

View File

@ -294,7 +294,7 @@ static KernelArgsTy *upgradeKernelArgs(KernelArgsTy *KernelArgs,
// FIXME: This is a WA to "calibrate" the bad work done in the front end.
// Delete this ugly code after the front end emits proper values.
auto CorrectMultiDim = [](uint32_t(&Val)[3]) {
auto CorrectMultiDim = [](uint32_t (&Val)[3]) {
if (Val[1] == 0)
Val[1] = 1;
if (Val[2] == 0)