[Openmp-commits] [PATCH] D109728: [OpenMP][DeviceRTL] Add the support for printf in a freestanding way
Johannes Doerfert via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Sep 13 15:57:59 PDT 2021
jdoerfert added a comment.
I think clang will lower printf for nvptx targets to vprintf. Can you check that. Also check what it emits for amdgcn targets.
================
Comment at: openmp/libomptarget/DeviceRTL/src/Debug.cpp:37
+extern "C" {
+inline __attribute__((always_inline)) int printf(const char *format, ...) {
+ return 0;
----------------
no need for these annotations.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109728/new/
https://reviews.llvm.org/D109728
More information about the Openmp-commits
mailing list