[LLVMdev] API changes (was Antw.: 2.0 Pre-release tarballs online)
sabre at nondot.org
Fri May 18 15:39:56 PDT 2007
On Sat, 19 May 2007, Anton Korobeynikov wrote:
>> * 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
Anton is right. You should be able to use -fno-builtins to disable this.
More information about the llvm-dev