efriedma-quic wrote:

Do we want some sort of optimization for constant printf?  99% of the time, we 
could parse the string at compile-time.  (This sort of optimization is common 
for embedded targets.)

If the format string isn't constant, is parsing the string on the GPU really 
slower than asking the host for the size?  printf format strings aren't that 
complicated, especially if you aren't actually doing the formatting.

Does this support `%n`?

https://github.com/llvm/llvm-project/pull/96369
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to