From 4c9c98f36b64f35d271a1dc9d31baa9fa441878c Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Mon, 12 Aug 2019 17:12:29 +0000 Subject: [AMDGPU] Printf runtime binding pass This pass is a port of the according pass from the HSAIL compiler. It parses printf calls and setup runtime printf buffer. After that it copies printf arguments to the buffer and fills in module metadata for runtime. Differential Revision: https://reviews.llvm.org/D24035 llvm-svn: 368592 --- llvm/lib/Analysis/TargetLibraryInfo.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Analysis/TargetLibraryInfo.cpp') diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp index 1d8a5edb4ec..24ca57f3a94 100644 --- a/llvm/lib/Analysis/TargetLibraryInfo.cpp +++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp @@ -114,6 +114,7 @@ static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, TLI.setUnavailable(LibFunc_log10); TLI.setUnavailable(LibFunc_log10f); TLI.setUnavailable(LibFunc_log10l); + TLI.setUnavailable(LibFunc_printf); } // There are no library implementations of memcpy and memset for AMD gpus and -- cgit v1.2.3