[Openmp-commits] [PATCH] D98565: [libomptarget][amdgcn] Drop use of inttypes.h, moving closer to freestanding
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Mar 15 09:55:20 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG156842937f51: [libomptarget][amdgcn] Drop use of inttypes.h, moving closer to freestanding (authored by JonChesterfield).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98565/new/
https://reviews.llvm.org/D98565
Files:
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
openmp/libomptarget/deviceRTLs/common/include/target/shuffle.h
Index: openmp/libomptarget/deviceRTLs/common/include/target/shuffle.h
===================================================================
--- openmp/libomptarget/deviceRTLs/common/include/target/shuffle.h
+++ openmp/libomptarget/deviceRTLs/common/include/target/shuffle.h
@@ -16,7 +16,7 @@
#define LIBOMPTARGET_DEVICERTL_SHUFFLE_H
#include <assert.h>
-#include <inttypes.h>
+#include <stdint.h>
#pragma omp declare target
Index: openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
===================================================================
--- openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
+++ openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
@@ -18,10 +18,13 @@
#include "amdgcn_interface.h"
-#include <inttypes.h>
#include <stddef.h>
#include <stdint.h>
+// subset of inttypes.h
+#define PRId64 "ld"
+#define PRIu64 "lu"
+
#define DEVICE
#define INLINE inline DEVICE
#define NOINLINE __attribute__((noinline)) DEVICE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98565.330702.patch
Type: text/x-patch
Size: 970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210315/8ecbe08f/attachment.bin>
More information about the Openmp-commits
mailing list