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

Reid Kleckner rnk at mit.edu
Mon Jul 6 15:45:57 PDT 2009


> Templating allows us to have mutiple types of MachineCodeEmitters, the
> JITCodeEmitter, and the ObjectCodeEmitter, and any other kind of CodeEmitter
> we require in the future, e.g. Reid Kleckner' requirements to combine JIT
> and GDB. It allows these emiiters to be efficient and be inlined functions.
> If you study the code you will see what I mean.

FWIW, I've hacked my way around any awkwardnesses in the current API.
This whole JIT-to-GDB-through-ELF thing is a hack, and I wouldn't
consider my use case too much in designing the API.  Besides, I'm
learning that the right way to do this might be to implement a custom
binary file descriptor for GDB to use so that I don't actually have to
generate ELF.

Reid



More information about the llvm-commits mailing list