search for: mcencodedfragmentwithfixups

Displaying 4 results from an estimated 4 matches for "mcencodedfragmentwithfixups".

2016 Feb 29
2
Possible Memory Savings for tools emitting large amounts of existing data through MC
...s 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 a newly > created > MCDataFragment. > > Would that work for your use case? > Not quite, unfortunately - the issue is that we're doing a task that is essentially "linking + a bit" - so imagine lin...
2016 Feb 29
0
Possible Memory Savings for tools emitting large amounts of existing data through MC
...nd 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 a newly created MCDataFragment. Would that work for your use case? Peter On Mon, Feb 29, 2016 at 03:18:22PM -0800, David Blaikie via llvm-dev wrote: > Just in case it interests anyone else, I'm playing around with trying...
2016 Mar 01
0
Possible Memory Savings for tools emitting large amounts of existing data through MC
...gining: > > > > 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 a newly > > created > > MCDataFragment. > > > > Would that work for your use case? > > > > Not quite, unfortunately - the issue is that we're doing a task that is > essentially...
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