[nfc][openmp] Swap arguments to remove noise from upcoming diff
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Fri, 11 Mar 2022 23:07:11 +0000 (23:07 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Fri, 11 Mar 2022 23:08:37 +0000 (23:08 +0000)
openmp/libomptarget/include/dlwrap.h

index cff747f..fc726c0 100644 (file)
@@ -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,                  \