[Mlir-commits] [mlir] [MLIR][GPU] Generalize gpu.printf op lowering to LLVM call pattern. (PR #164297)

Sang Ik Lee llvmlistbot at llvm.org
Wed Oct 22 14:01:31 PDT 2025


================
@@ -142,20 +143,26 @@ struct GPUPrintfOpToHIPLowering : public ConvertOpToLLVMPattern<gpu::PrintfOp> {
 /// This pass will add a declaration of printf() to the GPUModule if needed
 /// and separate out the format strings into global constants. For some
 /// runtimes, such as OpenCL on AMD, this is sufficient setup, as the compiler
-/// will lower printf calls to appropriate device-side code
+/// will lower printf calls to appropriate device-side code.
+/// callingConvention and funcName can be adjusted as needed.
----------------
silee2 wrote:

Updated comment as suggested.

https://github.com/llvm/llvm-project/pull/164297


More information about the Mlir-commits mailing list