[LLVMdev] Some question on LLVM design

Vikram Adve vadve at cs.uiuc.edu
Sun Oct 24 14:16:32 PDT 2004


> The real question is why we give special support for
> malloc/free, which we don't give to other language runtime allocation
> functions (e.g. operator new' in C++, new in Java, etc).
>
> Going forward, it will be interesting to see how we can generalize 
> support
> for other allocators, I don't think that there is anything 
> intrinsically
> hard, but it is something that we eventually want to do.

This is something we probably need to do soon (e.g., for Java), to 
enable our language-independent pointer analyses to work since they 
need to know about 'new'.  We will have to make sure the type behavior 
is correct, but that should not be difficult since there should 
(normally) be an explicit LLVM type for each static source type.

--Vikram
http://www.cs.uiuc.edu/~vadve
http://llvm.cs.uiuc.edu/




More information about the llvm-dev mailing list