Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Issue 1831493003: Add a bitcode parser constructor for parallel parsing. (Closed)

Created:
4 years, 9 months ago by Karl
Modified:
4 years, 9 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add a bitcode parser constructor for parallel parsing. Allows the caller of the constructor to provide the bitstream cursor to use, rather than inheriting from the enclosing parser. This allows each parallel parse (of subblocks) to create thier own bitcode cursor. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4363 R=jpp@chromium.org, stichnot@chromium.org Committed: https://chromium.googlesource.com/native_client/pnacl-llvm/+/ad73601fb508e3754169cf2fd3e3eefc813723a2

Patch Set 1 #

Total comments: 9

Patch Set 2 : Fix nits found in review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M include/llvm/Bitcode/NaCl/NaClBitcodeParser.h View 1 2 chunks +17 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Karl
4 years, 9 months ago (2016-03-23 20:38:11 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/1831493003/diff/1/include/llvm/Bitcode/NaCl/NaClBitcodeParser.h File include/llvm/Bitcode/NaCl/NaClBitcodeParser.h (right): https://codereview.chromium.org/1831493003/diff/1/include/llvm/Bitcode/NaCl/NaClBitcodeParser.h#newcode612 include/llvm/Bitcode/NaCl/NaClBitcodeParser.h:612: // Same as above, but use the given bitstrem ...
4 years, 9 months ago (2016-03-23 21:20:30 UTC) #4
John
lgtm https://codereview.chromium.org/1831493003/diff/1/include/llvm/Bitcode/NaCl/NaClBitcodeParser.h File include/llvm/Bitcode/NaCl/NaClBitcodeParser.h (right): https://codereview.chromium.org/1831493003/diff/1/include/llvm/Bitcode/NaCl/NaClBitcodeParser.h#newcode617 include/llvm/Bitcode/NaCl/NaClBitcodeParser.h:617: NaClBitstreamCursor &Cursor) On 2016/03/23 21:20:29, stichnot wrote: > ...
4 years, 9 months ago (2016-03-24 13:08:16 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/1831493003/diff/1/include/llvm/Bitcode/NaCl/NaClBitcodeParser.h File include/llvm/Bitcode/NaCl/NaClBitcodeParser.h (right): https://codereview.chromium.org/1831493003/diff/1/include/llvm/Bitcode/NaCl/NaClBitcodeParser.h#newcode617 include/llvm/Bitcode/NaCl/NaClBitcodeParser.h:617: NaClBitstreamCursor &Cursor) On 2016/03/24 13:08:16, John wrote: > On ...
4 years, 9 months ago (2016-03-24 13:09:19 UTC) #6
Karl
Committed patchset #2 (id:20001) manually as ad73601fb508e3754169cf2fd3e3eefc813723a2 (presubmit successful).
4 years, 9 months ago (2016-03-24 16:15:58 UTC) #8
Karl
4 years, 9 months ago (2016-03-24 19:29:09 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/1831493003/diff/1/include/llvm/Bitcode/NaCl/N...
File include/llvm/Bitcode/NaCl/NaClBitcodeParser.h (right):

https://codereview.chromium.org/1831493003/diff/1/include/llvm/Bitcode/NaCl/N...
include/llvm/Bitcode/NaCl/NaClBitcodeParser.h:612: // Same as above, but use the
given bitstrem cursor (instead of inheriting
On 2016/03/23 21:20:29, stichnot wrote:
> bitstream

Done.

https://codereview.chromium.org/1831493003/diff/1/include/llvm/Bitcode/NaCl/N...
include/llvm/Bitcode/NaCl/NaClBitcodeParser.h:617: NaClBitstreamCursor &Cursor)
On 2016/03/23 21:20:29, stichnot wrote:
> I'm not familiar with this set of data structures, so I'd just ask you to take
a
> second look at this and make sure passing Cursor by non-const ref is the right
> thing here.

Acknowledged.

https://codereview.chromium.org/1831493003/diff/1/include/llvm/Bitcode/NaCl/N...
include/llvm/Bitcode/NaCl/NaClBitcodeParser.h:621: Listener(0),
On 2016/03/23 21:20:29, stichnot wrote:
> Listener(nullptr)

Actually, it should have been:

   Listener(EnclosingParser->Listener).

Changing.

Powered by Google App Engine
This is Rietveld 408576698