Skip to content

Commit e526a7f

Browse files
committed
[Libomptarget][NFC] Clean up warnings and format
1 parent fe12d31 commit e526a7f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

openmp/libomptarget/plugins-nextgen/common/MemoryManager/MemoryManager.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <vector>
2323

2424
#include "Debug.h"
25-
#include "omptargetplugin.h"
2625

2726
/// Base class of per-device allocator.
2827
class DeviceAllocatorTy {

openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ class DeviceImageTy {
239239
struct GenericKernelTy {
240240
/// Construct a kernel with a name and a execution mode.
241241
GenericKernelTy(const char *Name, OMPTgtExecModeFlags ExecutionMode)
242-
: Name(Name), ExecutionMode(ExecutionMode),
243-
PreferredNumThreads(0), MaxNumThreads(0) {}
242+
: Name(Name), ExecutionMode(ExecutionMode), PreferredNumThreads(0),
243+
MaxNumThreads(0) {}
244244

245245
virtual ~GenericKernelTy() {}
246246

@@ -255,8 +255,8 @@ struct GenericKernelTy {
255255
ptrdiff_t *ArgOffsets, KernelArgsTy &KernelArgs,
256256
AsyncInfoWrapperTy &AsyncInfoWrapper) const;
257257
virtual Error launchImpl(GenericDeviceTy &GenericDevice, uint32_t NumThreads,
258-
uint64_t NumBlocks,
259-
KernelArgsTy &KernelArgs, void *Args,
258+
uint64_t NumBlocks, KernelArgsTy &KernelArgs,
259+
void *Args,
260260
AsyncInfoWrapperTy &AsyncInfoWrapper) const = 0;
261261

262262
/// Get the kernel name.

openmp/libomptarget/plugins-nextgen/common/PluginInterface/RPC.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
namespace llvm::omp::target {
2424
namespace plugin {
2525
struct GenericDeviceTy;
26-
struct GenericGlobalHandlerTy;
26+
class GenericGlobalHandlerTy;
2727
class DeviceImageTy;
2828
} // namespace plugin
2929

0 commit comments

Comments
 (0)