[LLVMdev] Whole program compile/link

Richard Pennington rich at pennware.com
Mon Jul 27 13:39:08 PDT 2009


Alireza.Moshtaghi at microchip.com wrote:
> This is exactly what we are doing for PIC16 port; 
> Would it make sense that front-end (clang) had a way to know if such
> operations are native or not; if not, it would generate calls to
> appropriate standard intrinsic routine... 
> These intrinsics can be implemented as .bc (to be linked by llvm-ld,
> enabling further lto optimizations because these are standard intrinsics
> and optimizers can know about them) or as target native file (to be
> linked by native linker)

I really want the intrinsic functions to be part of the LTO, so I guess 
that having the front-end use the functions explicitly is the way to go. 
I was hoping I wouldn't have to do that. I'd like to avoid native .a 
files if possible.

-Rich




More information about the llvm-dev mailing list