[Openmp-commits] [openmp] 7577943 - [nfc][openmp] Swap arguments to remove noise from upcoming diff

Jon Chesterfield via Openmp-commits openmp-commits at lists.llvm.org
Fri Mar 11 15:08:44 PST 2022


Author: Jon Chesterfield
Date: 2022-03-11T23:08:37Z
New Revision: 75779435f3fc6f7d492a3da067804610fab37017

URL: https://github.com/llvm/llvm-project/commit/75779435f3fc6f7d492a3da067804610fab37017
DIFF: https://github.com/llvm/llvm-project/commit/75779435f3fc6f7d492a3da067804610fab37017.diff

LOG: [nfc][openmp] Swap arguments to remove noise from upcoming diff

Added: 
    

Modified: 
    openmp/libomptarget/include/dlwrap.h

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/include/dlwrap.h b/openmp/libomptarget/include/dlwrap.h
index cff747f1524bd..fc726c0d22f38 100644
--- a/openmp/libomptarget/include/dlwrap.h
+++ b/openmp/libomptarget/include/dlwrap.h
@@ -137,8 +137,8 @@ template <size_t Requested, size_t Required> constexpr void verboseAssert() {
 
 } // namespace dlwrap
 
-#define DLWRAP_INSTANTIATE(SYM_USE, SYM_DEF, ARITY)                            \
-  DLWRAP_INSTANTIATE_##ARITY(SYM_USE, SYM_DEF,                                 \
+#define DLWRAP_INSTANTIATE(SYM_DEF, SYM_USE, ARITY)                            \
+  DLWRAP_INSTANTIATE_##ARITY(SYM_DEF, SYM_USE,                                 \
                              dlwrap::trait<decltype(&SYM_USE)>)
 
 #define DLWRAP_FINALIZE_IMPL()                                                 \
@@ -175,33 +175,33 @@ template <size_t Requested, size_t Required> constexpr void verboseAssert() {
 
 #define DLWRAP_INTERNAL_IMPL(SYMBOL, ARITY)                                    \
   DLWRAP_COMMON(SYMBOL, ARITY);                                                \
-  static DLWRAP_INSTANTIATE(SYMBOL, dlwrap_##SYMBOL, ARITY)
+  static DLWRAP_INSTANTIATE(dlwrap_##SYMBOL, SYMBOL, ARITY)
 
-#define DLWRAP_INSTANTIATE_0(SYM_USE, SYM_DEF, T)                              \
+#define DLWRAP_INSTANTIATE_0(SYM_DEF, SYM_USE, T)                              \
   T::ReturnType SYM_DEF() { return dlwrap::SYM_USE##_Trait::get()(); }
-#define DLWRAP_INSTANTIATE_1(SYM_USE, SYM_DEF, T)                              \
+#define DLWRAP_INSTANTIATE_1(SYM_DEF, SYM_USE, T)                              \
   T::ReturnType SYM_DEF(typename T::template arg<0>::type x0) {                \
     return dlwrap::SYM_USE##_Trait::get()(x0);                                 \
   }
-#define DLWRAP_INSTANTIATE_2(SYM_USE, SYM_DEF, T)                              \
+#define DLWRAP_INSTANTIATE_2(SYM_DEF, SYM_USE, T)                              \
   T::ReturnType SYM_DEF(typename T::template arg<0>::type x0,                  \
                         typename T::template arg<1>::type x1) {                \
     return dlwrap::SYM_USE##_Trait::get()(x0, x1);                             \
   }
-#define DLWRAP_INSTANTIATE_3(SYM_USE, SYM_DEF, T)                              \
+#define DLWRAP_INSTANTIATE_3(SYM_DEF, SYM_USE, T)                              \
   T::ReturnType SYM_DEF(typename T::template arg<0>::type x0,                  \
                         typename T::template arg<1>::type x1,                  \
                         typename T::template arg<2>::type x2) {                \
     return dlwrap::SYM_USE##_Trait::get()(x0, x1, x2);                         \
   }
-#define DLWRAP_INSTANTIATE_4(SYM_USE, SYM_DEF, T)                              \
+#define DLWRAP_INSTANTIATE_4(SYM_DEF, SYM_USE, T)                              \
   T::ReturnType SYM_DEF(typename T::template arg<0>::type x0,                  \
                         typename T::template arg<1>::type x1,                  \
                         typename T::template arg<2>::type x2,                  \
                         typename T::template arg<3>::type x3) {                \
     return dlwrap::SYM_USE##_Trait::get()(x0, x1, x2, x3);                     \
   }
-#define DLWRAP_INSTANTIATE_5(SYM_USE, SYM_DEF, T)                              \
+#define DLWRAP_INSTANTIATE_5(SYM_DEF, SYM_USE, T)                              \
   T::ReturnType SYM_DEF(typename T::template arg<0>::type x0,                  \
                         typename T::template arg<1>::type x1,                  \
                         typename T::template arg<2>::type x2,                  \
@@ -209,7 +209,7 @@ template <size_t Requested, size_t Required> constexpr void verboseAssert() {
                         typename T::template arg<4>::type x4) {                \
     return dlwrap::SYM_USE##_Trait::get()(x0, x1, x2, x3, x4);                 \
   }
-#define DLWRAP_INSTANTIATE_6(SYM_USE, SYM_DEF, T)                              \
+#define DLWRAP_INSTANTIATE_6(SYM_DEF, SYM_USE, T)                              \
   T::ReturnType SYM_DEF(typename T::template arg<0>::type x0,                  \
                         typename T::template arg<1>::type x1,                  \
                         typename T::template arg<2>::type x2,                  \
@@ -219,7 +219,7 @@ template <size_t Requested, size_t Required> constexpr void verboseAssert() {
     return dlwrap::SYM_USE##_Trait::get()(x0, x1, x2, x3, x4, x5);             \
   }
 
-#define DLWRAP_INSTANTIATE_7(SYM_USE, SYM_DEF, T)                              \
+#define DLWRAP_INSTANTIATE_7(SYM_DEF, SYM_USE, T)                              \
   T::ReturnType SYM_DEF(typename T::template arg<0>::type x0,                  \
                         typename T::template arg<1>::type x1,                  \
                         typename T::template arg<2>::type x2,                  \
@@ -230,7 +230,7 @@ template <size_t Requested, size_t Required> constexpr void verboseAssert() {
     return dlwrap::SYM_USE##_Trait::get()(x0, x1, x2, x3, x4, x5, x6);         \
   }
 
-#define DLWRAP_INSTANTIATE_8(SYM_USE, SYM_DEF, T)                              \
+#define DLWRAP_INSTANTIATE_8(SYM_DEF, SYM_USE, T)                              \
   T::ReturnType SYM_DEF(typename T::template arg<0>::type x0,                  \
                         typename T::template arg<1>::type x1,                  \
                         typename T::template arg<2>::type x2,                  \
@@ -241,7 +241,7 @@ template <size_t Requested, size_t Required> constexpr void verboseAssert() {
                         typename T::template arg<7>::type x7) {                \
     return dlwrap::SYM_USE##_Trait::get()(x0, x1, x2, x3, x4, x5, x6, x7);     \
   }
-#define DLWRAP_INSTANTIATE_9(SYM_USE, SYM_DEF, T)                              \
+#define DLWRAP_INSTANTIATE_9(SYM_DEF, SYM_USE, T)                              \
   T::ReturnType SYM_DEF(typename T::template arg<0>::type x0,                  \
                         typename T::template arg<1>::type x1,                  \
                         typename T::template arg<2>::type x2,                  \
@@ -253,7 +253,7 @@ template <size_t Requested, size_t Required> constexpr void verboseAssert() {
                         typename T::template arg<8>::type x8) {                \
     return dlwrap::SYM_USE##_Trait::get()(x0, x1, x2, x3, x4, x5, x6, x7, x8); \
   }
-#define DLWRAP_INSTANTIATE_10(SYM_USE, SYM_DEF, T)                             \
+#define DLWRAP_INSTANTIATE_10(SYM_DEF, SYM_USE, T)                             \
   T::ReturnType SYM_DEF(typename T::template arg<0>::type x0,                  \
                         typename T::template arg<1>::type x1,                  \
                         typename T::template arg<2>::type x2,                  \
@@ -267,7 +267,7 @@ template <size_t Requested, size_t Required> constexpr void verboseAssert() {
     return dlwrap::SYM_USE##_Trait::get()(x0, x1, x2, x3, x4, x5, x6, x7, x8,  \
                                           x9);                                 \
   }
-#define DLWRAP_INSTANTIATE_11(SYM_USE, SYM_DEF, T)                             \
+#define DLWRAP_INSTANTIATE_11(SYM_DEF, SYM_USE, T)                             \
   T::ReturnType SYM_DEF(typename T::template arg<0>::type x0,                  \
                         typename T::template arg<1>::type x1,                  \
                         typename T::template arg<2>::type x2,                  \


        


More information about the Openmp-commits mailing list