[LLVMdev] API changes (was Antw.: 2.0 Pre-release tarballs online)

Anton Korobeynikov asl at math.spbu.ru
Fri May 18 14:35:40 PDT 2007

Hello, Bram

>   * It seems that a C-call like printf("---\n") is transformed to puts 
> ("---") in the LLVM IR instead of keeping it a printf. What are the  
> circumstances in which this happens? Do other similar conversions  
> occur? Can this be turned off (lower optimisation level?)? Manually  
> replacing the puts-calls by a printf-call is not straightforward, as  
> the argument should be appended a '\n' (implicit with puts).
This transformation is performed via simplify-libcalls optimization
pass. You can look into corresponding source to check for list of

With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.

More information about the llvm-dev mailing list