]> granicus.if.org Git - llvm/commit
[AMDGPU] Printf runtime binding pass
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Mon, 12 Aug 2019 17:12:29 +0000 (17:12 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Mon, 12 Aug 2019 17:12:29 +0000 (17:12 +0000)
commitedb506d79d24ff816e1c17c113c3eb5efc35c490
treecd0d02a31b9298c69a3d3512af7fc72c0ebed591
parent28a7869cfd1b2188928f448ef54c47c14a20dbf6
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368592 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/TargetLibraryInfo.cpp
lib/Target/AMDGPU/AMDGPU.h
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp [new file with mode: 0644]
lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
lib/Target/AMDGPU/CMakeLists.txt
test/CodeGen/AMDGPU/opencl-printf.ll [new file with mode: 0644]