* Move stub allocation inside the JITEmitter, instead of exposing a
authorJeffrey Yasskin <jyasskin@google.com>
Mon, 23 Nov 2009 23:35:19 +0000 (23:35 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Mon, 23 Nov 2009 23:35:19 +0000 (23:35 +0000)
commit108c838093704650378b194fe9afc5ebb9e91455
treef6a58b2c3951066ba79198ca44ee230de6f632a3
parentdbc3577ea17eb76722cacd1a723a2085e407599b
* Move stub allocation inside the JITEmitter, instead of exposing a
way for each TargetJITInfo subclass to allocate its own stubs. This
means stubs aren't as exactly-sized anymore, but it lets us get rid of
TargetJITInfo::emitFunctionStubAtAddr(), which lets ARM and PPC
support the eager JIT, fixing http://llvm.org/PR4816.

* Rename the JITEmitter's stub creation functions to describe the kind
of stub they create. So far, all of them create lazy-compilation
stubs, but they sometimes get used when far-call stubs are needed.
Fixing http://llvm.org/PR5201 will involve fixing this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89715 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetJITInfo.h
lib/ExecutionEngine/JIT/JITEmitter.cpp
lib/Target/ARM/ARMJITInfo.cpp
lib/Target/ARM/ARMJITInfo.h
lib/Target/Alpha/AlphaJITInfo.cpp
lib/Target/Alpha/AlphaJITInfo.h
lib/Target/PowerPC/PPCJITInfo.cpp
lib/Target/PowerPC/PPCJITInfo.h
lib/Target/X86/X86JITInfo.cpp
lib/Target/X86/X86JITInfo.h
unittests/ExecutionEngine/JIT/JITTest.cpp