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 > > _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits