[llvm-commits] [PATCH] auto-upgrade malloc instructions to malloc calls

Török Edwin edwintorok at gmail.com
Thu Sep 24 01:18:50 PDT 2009


On 2009-09-24 03:03, Victor Hernandez wrote:
> This patch:
> 1. Gets malloc instructions to be auto-upgraded to malloc calls in
> LLParser and BitcodeReader.
> 2. Updates Core and BrainF to no longer create malloc instructions.
> 3. Updates testcases that made assumptions that were no longer true
> without malloc instructions.
>
>
>
> After this patch, there are no MallocInsts created by LLVM, and
> MallocInst can be torn out.
>

Hi,

Is it still possible to create a function called 'malloc', that does
something else than a libc malloc?
For example in a freestanding environment, or when -fno-builtin is used.

Best regards,
--Edwin



More information about the llvm-commits mailing list