[clang] [CIR][AMDGPU] Route printf in device code through the OpenCL runtime (PR #226435)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 28 02:53:43 PDT 2026
================
@@ -173,6 +173,7 @@ void registerToLLVMTranslation() {
enableOpenMP);
if (!llvmModule)
return mlir::failure();
+ cir::direct::expandAMDGPUDevicePrintf(*llvmModule);
----------------
skc7 wrote:
Rather than a second call site, could this `expandAMDGPUDevicePrintf` move to the end of `lowerDirectlyFromCIRToLLVMIR` itself? It also lets `expandAMDGPUDevicePrintf` be static instead of exported from `LowerToLLVM.h`.
https://github.com/llvm/llvm-project/pull/226435
More information about the cfe-commits
mailing list