-
- Downloads
[AMDGPU][OpenCL] Remove "printf and hostcall" diagnostic
The diagnostic is unreliable, and triggers even for dead uses of hostcall that may exist when linking the device-libs at lower optimization levels. Eliminate the diagnostic, and directly document the limitation for OpenCL before code object V5. Make some NFC changes to clarify the related code in the MetadataStreamer. Add a clang test to tie OCL sources containing printf to the backend IR tests for this situation. Reviewed By: sameerds, arsenm, yaxunl Differential Revision: https://reviews.llvm.org/D121951
Showing
- clang/test/CodeGenOpenCL/amdgpu-printf.cl 46 additions, 0 deletionsclang/test/CodeGenOpenCL/amdgpu-printf.cl
- llvm/docs/AMDGPUUsage.rst 14 additions, 4 deletionsllvm/docs/AMDGPUUsage.rst
- llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp 10 additions, 14 deletionsllvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
- llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp 0 additions, 9 deletionsllvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
- llvm/test/CodeGen/AMDGPU/opencl-printf-and-hostcall.ll 19 additions, 0 deletionsllvm/test/CodeGen/AMDGPU/opencl-printf-and-hostcall.ll
clang/test/CodeGenOpenCL/amdgpu-printf.cl
0 → 100644
Please register or sign in to comment