Displaying 4 results from an estimated 4 matches for "moveandemitfrag".
2016 Feb 29
2
Possible Memory Savings for tools emitting large amounts of existing data through MC
...er at pcc.me.uk>
wrote:
> Hi David,
>
> The way I imagined that we might want to extend the MCStreamer API (this
> was motivated by DIEData) is by allowing clients to move bytes and fixups
> into the MC layer.
>
> This is the sort of API that I was imagining:
>
> void MoveAndEmitFragment(SmallVectorImpl<char> &&Data,
> SmallVectorImpl<MCFixup> &&Fixups);
>
> Note that this mirrors the fields
> MCEncodedFragmentWithContents::Contents and
> MCEncodedFragmentWithFixups::Fixups
> and the arguments could be direc...
2016 Feb 29
0
Possible Memory Savings for tools emitting large amounts of existing data through MC
Hi David,
The way I imagined that we might want to extend the MCStreamer API (this
was motivated by DIEData) is by allowing clients to move bytes and fixups
into the MC layer.
This is the sort of API that I was imagining:
void MoveAndEmitFragment(SmallVectorImpl<char> &&Data,
SmallVectorImpl<MCFixup> &&Fixups);
Note that this mirrors the fields
MCEncodedFragmentWithContents::Contents and MCEncodedFragmentWithFixups::Fixups
and the arguments could be directly moved into the fields of...
2016 Mar 01
0
Possible Memory Savings for tools emitting large amounts of existing data through MC
...d,
> >
> > The way I imagined that we might want to extend the MCStreamer API (this
> > was motivated by DIEData) is by allowing clients to move bytes and fixups
> > into the MC layer.
> >
> > This is the sort of API that I was imagining:
> >
> > void MoveAndEmitFragment(SmallVectorImpl<char> &&Data,
> > SmallVectorImpl<MCFixup> &&Fixups);
> >
> > Note that this mirrors the fields
> > MCEncodedFragmentWithContents::Contents and
> > MCEncodedFragmentWithFixups::Fixups
> > an...
2016 Feb 29
5
Possible Memory Savings for tools emitting large amounts of existing data through MC
Just in case it interests anyone else, I'm playing around with trying to
broaden the MCStreamer API to allow for emission of bytes without copying
the contents into a local buffer first (either because you already have a
buffer, or the bytes are already present in another file, etc) in
http://reviews.llvm.org/D17694 . In theory there's some overlap with lld
here (no doubt it already does