summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenHIP/printf-aggregate.cpp
AgeCommit message (Collapse)Author
2020-01-16Don't dump IR output from this test to stdout.Richard Smith
2020-01-16[HIP][AMDGPU] expand printf when compiling HIP to AMDGPUSameer Sahasrabuddhe
Summary: This change implements the expansion in two parts: - Add a utility function emitAMDGPUPrintfCall() in LLVM. - Invoke the above function from Clang CodeGen, when processing a HIP program for the AMDGPU target. The printf expansion has undefined behaviour if the format string is not a compile-time constant. As a sufficient condition, the HIP ToolChain now emits -Werror=format-nonliteral. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D71365