[Openmp-commits] [openmp] 104f116 - [nfc][openmp] clang-format system.cpp prior to D131401

Jon Chesterfield via Openmp-commits openmp-commits at lists.llvm.org
Mon Aug 8 08:24:45 PDT 2022


Author: Jon Chesterfield
Date: 2022-08-08T16:24:34+01:00
New Revision: 104f11630ae878232a3368605290be185d14d9bc

URL: https://github.com/llvm/llvm-project/commit/104f11630ae878232a3368605290be185d14d9bc
DIFF: https://github.com/llvm/llvm-project/commit/104f11630ae878232a3368605290be185d14d9bc.diff

LOG: [nfc][openmp] clang-format system.cpp prior to D131401

Added: 
    

Modified: 
    openmp/libomptarget/plugins/amdgpu/impl/system.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins/amdgpu/impl/system.cpp b/openmp/libomptarget/plugins/amdgpu/impl/system.cpp
index cc722cba55091..5e44237e936e0 100644
--- a/openmp/libomptarget/plugins/amdgpu/impl/system.cpp
+++ b/openmp/libomptarget/plugins/amdgpu/impl/system.cpp
@@ -63,7 +63,7 @@ class KernelArgMD {
   };
 
   KernelArgMD()
-      : name_(std::string()),  size_(0), offset_(0),
+      : name_(std::string()), size_(0), offset_(0),
         valueKind_(ValueKind::Unknown) {}
 
   // fields
@@ -94,8 +94,7 @@ static const std::map<std::string, KernelArgMD::ValueKind> ArgValueKind = {
     {"hidden_multigrid_sync_arg",
      KernelArgMD::ValueKind::HiddenMultiGridSyncArg},
     {"hidden_hostcall_buffer", KernelArgMD::ValueKind::HiddenHostcallBuffer},
-    {"hidden_heap_v1", KernelArgMD::ValueKind::HiddenHeapV1}
-};
+    {"hidden_heap_v1", KernelArgMD::ValueKind::HiddenHeapV1}};
 
 namespace core {
 
@@ -487,7 +486,7 @@ static hsa_status_t get_code_object_custom_metadata(
       }
     }
 
-    // TODO: Probably don't want this arithmetic 
+    // TODO: Probably don't want this arithmetic
     info.kernel_segment_size =
         (hasHiddenArgs ? kernel_explicit_args_size : kernel_segment_size);
     DP("[%s: kernarg seg size] (%lu --> %u)\n", kernelName.c_str(),


        


More information about the Openmp-commits mailing list