[llvm-commits] [patch] CodeEmitter Memory Foot Reduction
aaronngray.lists at googlemail.com
Wed Jul 15 11:01:40 CDT 2009
If you/we do not like this code, then the alternatives are :-
1) Leave as is, which I would not suggest.
2) Revert to using MachineCodeEmitter like mechanics with virtual extend()
method to allow rebuffering with ObjectCodeEmitter providing the memory
3) Don't really know of any other alternatives :)
2 maybe the best compromise option. Its easy to code, removes templating
from the CodeEmitters, and is virtually transparent to our other DOE work.
The only thing it does not write via a BinaryObject object, so we loose that
2009/7/14 Aaron Gray <aaronngray.lists at googlemail.com>
> Hi Chris,
> Heres the patch to separate out ObjectCodeEmitter instatiated CodeEmitters
> from JITCodeEmitter ones. It also demotes MachineCodeEmitter to a base class
> of JitCodeEmitter and ObjectCodeEmitter.
> It quite a big patch.
> It removes X86CodeEmitter.cpp
> And adds X86JITCodeEmitter.cpp, X86ObjectCodeEmitter.cpp,
> PPCJITCodeEmitter.cpp, PPCObjectCodeEmitter.cpp, ARMJITCodeEmitter.cpp,
> ARMObjectCodeEmitter.cpp, AlphaJITCodeEmitter.cpp, and
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits