[llvm-commits] [patch] Minor X86CodeEmitter Memory Foot Reduction

Aaron Gray aaronngray.lists at googlemail.com
Mon Jul 6 10:57:31 PDT 2009


This patch separates the template instatiations for the
createX86*CodeEmitterPass of [X86]Emiiter<codeEmitter> into separate .cpp
file and thus different object modules in the library. This will result in a
slightly smaller footprint for programs just using one of the
MachineCodeEmitter, ObjectCodeEmitter, or JITCodeEmitter classes.

This should save 2 * 47K each for llc, lli, and LTOCodeGenerator.

Although the MachineCodeEmitter version is not being use anymore at present
I have left it in for now.

It also opens the door for altername MachineCodeEmitters for experimental or
other purposes such as unladen Swallow.

I will be submitting simular patches for Alpha, ARM, and PowerPC if this one
gets accepted.

I have made CMake the necessary CMake changes too in the patch.

This patch needs to be applied relatively quickly as it moves
X86CodeEmitter.cpp code to X86CodeEmitter.h and any chages in SVN inbetween
would be lost.

Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090706/d07eab74/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x86-Memory-Opt.patch
Type: application/octet-stream
Size: 63831 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090706/d07eab74/attachment.obj>


More information about the llvm-commits mailing list