projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73f6646
)
Revert "[Libomptarget] Add `leaf` attribute to `vprintf` declaration"
author
Joseph Huber
<jhuber6@vols.utk.edu>
Tue, 31 May 2022 14:14:51 +0000
(10:14 -0400)
committer
Joseph Huber
<jhuber6@vols.utk.edu>
Tue, 31 May 2022 14:24:04 +0000
(10:24 -0400)
This is preventing users from calling `printf` on NVPTX code. Revert for
now until there is a fix.
This reverts commit
eda4ef3add4d25345e0b29580776f1576040c525
.
openmp/libomptarget/DeviceRTL/src/Debug.cpp
patch
|
blob
|
history
diff --git
a/openmp/libomptarget/DeviceRTL/src/Debug.cpp
b/openmp/libomptarget/DeviceRTL/src/Debug.cpp
index
c6cf507
..
45e08fa
100644
(file)
--- a/
openmp/libomptarget/DeviceRTL/src/Debug.cpp
+++ b/
openmp/libomptarget/DeviceRTL/src/Debug.cpp
@@
-36,7
+36,7
@@
int32_t omp_vprintf(const char *Format, void *Arguments, uint32_t);
#pragma omp begin declare variant match( \
device = {arch(nvptx, nvptx64)}, implementation = {extension(match_any)})
-int32_t
__attribute__((leaf))
vprintf(const char *, void *);
+int32_t vprintf(const char *, void *);
namespace impl {
int32_t omp_vprintf(const char *Format, void *Arguments, uint32_t) {
return vprintf(Format, Arguments);