PATCH: implement printf call lowering in the NVPTX backend

Eli Bendersky eliben at
Wed Mar 26 09:51:12 PDT 2014


This patch implements lowering of the printf call to the vprintf syscall in
the NVPTX backend. It is implemented as a target-specific IR pass that runs
before codegen. The pass builds the required data structure from the
varargs to pass to the vprintf calls.

Tests (IR to IR, and IR to PTX) included.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nvptx-vprintf.2.patch
Type: text/x-patch
Size: 13697 bytes
Desc: not available
URL: <>

More information about the llvm-commits mailing list