[Openmp-commits] [openmp] 624e9e1 - [openmp] [test] Use stdint.h instead of manual code defining kmp_int*. NFC.

Martin Storsjö via Openmp-commits openmp-commits at lists.llvm.org
Tue Nov 29 13:17:37 PST 2022


Author: Martin Storsjö
Date: 2022-11-29T23:16:11+02:00
New Revision: 624e9e131827162fe186cb40239f753dcff0eb20

URL: https://github.com/llvm/llvm-project/commit/624e9e131827162fe186cb40239f753dcff0eb20
DIFF: https://github.com/llvm/llvm-project/commit/624e9e131827162fe186cb40239f753dcff0eb20.diff

LOG: [openmp] [test] Use stdint.h instead of manual code defining kmp_int*. NFC.

Differential Revision: https://reviews.llvm.org/D138818

Added: 
    

Modified: 
    openmp/runtime/test/tasking/bug_nested_proxy_task.c
    openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/test/tasking/bug_nested_proxy_task.c b/openmp/runtime/test/tasking/bug_nested_proxy_task.c
index b3aa32f95e32..43502bdcd1ab 100644
--- a/openmp/runtime/test/tasking/bug_nested_proxy_task.c
+++ b/openmp/runtime/test/tasking/bug_nested_proxy_task.c
@@ -6,6 +6,7 @@
 // https://bugs.llvm.org/show_bug.cgi?id=45397
 // UNSUPPORTED: linux
 
+#include <stdint.h>
 #include <stdio.h>
 #include <omp.h>
 #include "omp_testsuite.h"
@@ -20,13 +21,9 @@
 */
 
 // Compiler-generated code (emulation)
-#ifdef _WIN64
-typedef long long kmp_intptr_t;
-#else
-typedef long kmp_intptr_t;
-#endif
-typedef int kmp_int32;
-typedef unsigned char kmp_uint8;
+typedef intptr_t kmp_intptr_t;
+typedef int32_t kmp_int32;
+typedef uint8_t kmp_uint8;
 
 typedef char bool;
 

diff  --git a/openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c b/openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c
index 112329a6a117..ff75df51aff0 100644
--- a/openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c
+++ b/openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c
@@ -6,6 +6,7 @@
 // https://bugs.llvm.org/show_bug.cgi?id=45397
 // UNSUPPORTED: linux
 
+#include <stdint.h>
 #include <stdio.h>
 #include <omp.h>
 #include "omp_testsuite.h"
@@ -17,13 +18,9 @@
 */
 
 // Compiler-generated code (emulation)
-#ifdef _WIN64
-typedef long long kmp_intptr_t;
-#else
-typedef long kmp_intptr_t;
-#endif
-typedef int kmp_int32;
-typedef unsigned char kmp_uint8;
+typedef intptr_t kmp_intptr_t;
+typedef int32_t kmp_int32;
+typedef uint8_t kmp_uint8;
 
 typedef char bool;
 


        


More information about the Openmp-commits mailing list