Skip to content

Commit a854c26

Browse files
authored
[Offload][NFC] Rename src/ -> libomptarget/ (llvm#126573)
Summary: The name `src` is confusing when combined with the plugins and the newly added `liboffload`.
1 parent feb30f2 commit a854c26

16 files changed

+4
-4
lines changed

offload/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ add_subdirectory(DeviceRTL)
377377
add_subdirectory(tools)
378378

379379
# Build target agnostic offloading library.
380-
add_subdirectory(src)
380+
add_subdirectory(libomptarget)
381381

382382
add_subdirectory(tools/offload-tblgen)
383383
add_subdirectory(liboffload)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

offload/src/OpenMP/API.cpp offload/libomptarget/OpenMP/API.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,8 @@ EXTERN void *omp_get_mapped_ptr(const void *Ptr, int DeviceNum) {
655655

656656
int NumDevices = omp_get_initial_device();
657657
if (DeviceNum == NumDevices) {
658-
DP("Device %d is initial device, returning Ptr " DPxMOD ".\n",
659-
DeviceNum, DPxPTR(Ptr));
658+
DP("Device %d is initial device, returning Ptr " DPxMOD ".\n", DeviceNum,
659+
DPxPTR(Ptr));
660660
return const_cast<void *>(Ptr);
661661
}
662662

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

offload/src/interface.cpp offload/libomptarget/interface.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static KernelArgsTy *upgradeKernelArgs(KernelArgsTy *KernelArgs,
294294

295295
// FIXME: This is a WA to "calibrate" the bad work done in the front end.
296296
// Delete this ugly code after the front end emits proper values.
297-
auto CorrectMultiDim = [](uint32_t(&Val)[3]) {
297+
auto CorrectMultiDim = [](uint32_t (&Val)[3]) {
298298
if (Val[1] == 0)
299299
Val[1] = 1;
300300
if (Val[2] == 0)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)