[LLVMdev] Multiversioning

Chris Lattner sabre at nondot.org
Tue Jul 31 23:46:28 PDT 2007


On Thu, 26 Jul 2007, VJ wrote:
> I am interested in generating two different optimized versions of a
> function into a single binary, so that I can dynamically select the function
> to execute at runtime. Can anyone shed some insight into the difficulties in
> achieving this in the LLVM infrastructure?

It's hard to say without more detail.  LLVM certainly does support 
function cloning and other transformations.  Can you be more specific 
about your goals?

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list