[llvm-commits] CVS: llvm/lib/Target/X86/X86Subtarget.cpp X86Subtarget.h X86TargetMachine.cpp

Evan Cheng evan.cheng at apple.com
Wed Dec 20 00:25:40 PST 2006


Ok. I see PPC does exactly the same thing. But this seems like a  
temporary solution. Could we add some kind of JIT relocation model  
which are target specific? Or any method that would allow llc to  
codegen (by specifying some command line option?) in the exact same  
way as the JIT would?

Evan
On Dec 19, 2006, at 9:59 PM, Chris Lattner wrote:

> On Dec 19, 2006, at 9:46 PM, Evan Cheng wrote:
>> Let me clarify. It's important for llc and lli to behave exactly the
>> same up to the final code emission pass. With your patch, the two
>> would behave differently and that means we can no longer use llc to
>> reproduce jit codegen bug.
>
> PPC64 has a similar problem.  It wants to do codegen in PIC mode,  
> but it doesn't want the JIT to make dyld stubs.  As such, it does  
> 'JIT PIC' mode, which is like PIC but doesn't do the extra load to  
> go through dyld stubs.
>
> An alternative approach would be to have the JIT synthesize dyld  
> stubs, but that takes work to implement and yields slower programs.
>
> -Chris
>
>




More information about the llvm-commits mailing list