diff options
author | Joseph Huber <huberjn@outlook.com> | 2024-07-26 16:03:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-26 16:03:36 -0500 |
commit | 069e8bcd82c4420239f95c7e6a09e1f756317cfc (patch) | |
tree | 5d37d313311e17446e15fcb5c13b9b49716b70a0 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 26d92826a5ed7894fb6d604c8e0e755daa50cdf7 (diff) | |
download | llvm-069e8bcd82c4420239f95c7e6a09e1f756317cfc.zip llvm-069e8bcd82c4420239f95c7e6a09e1f756317cfc.tar.gz llvm-069e8bcd82c4420239f95c7e6a09e1f756317cfc.tar.bz2 |
[OpenMP][libc] Remove special handling for OpenMP printf (#98940)
Summary:
Currently there are several layers to handle `printf`. Since we now have
varargs and an implementation of `printf` this can be heavily
simplified.
1. The frontend renames `printf` into `omp_vprintf` and gives it an
argument buffer.
Removing 1. triggered some code in the AMDGPU backend menat for HIP /
OpenCL, so I hadded an exception to it.
2. Forward this to CUDA vprintf or ignore it.
We no longer need special handling for it since we have varargs. So now
we just forward this to CUDA vprintf if we have libc, otherwise just
leave `printf` as an external function and expect that `libc` will be
linked in.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index bd62c65..89cc819 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -4536,7 +4536,6 @@ public: RValue EmitNVPTXDevicePrintfCallExpr(const CallExpr *E); RValue EmitAMDGPUDevicePrintfCallExpr(const CallExpr *E); - RValue EmitOpenMPDevicePrintfCallExpr(const CallExpr *E); RValue EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, const CallExpr *E, ReturnValueSlot ReturnValue); |