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

Issue 1122423005: Add (unsupported experimental) feature allowing byte aligned bitcode. (Closed)

Created:
5 years, 7 months ago by Karl
Modified:
5 years, 7 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 (unsupported experimental) feature allowing byte aligned bitcode. This is the first step of allowing PNaCl bitcode files to generate and accept byte aligned bitcode records. To write bitcode files with byte alignment, one uses the command-line argument '--align-bitcode-records'. When such bitcode files are written, a corresponding flag is added to the bitcode header so that the reader knows whether it should align bitcode records. This allows old PNaCl bitcode files to continue to work. BUG=https://code.google.com/p/nativeclient/issues/detail?id=4164 R=jvoung@chromium.org Committed: https://chromium.googlesource.com/native_client/pnacl-llvm/+/f46b7247105268eb474eda566076eab0e7766676

Patch Set 1 #

Patch Set 2 : Fix nits. #

Total comments: 22

Patch Set 3 : Fix issues in patch 2. #

Total comments: 7

Patch Set 4 : Fix issues for patch set 3 #

Patch Set 5 : Fix nits. #

Total comments: 4

Patch Set 6 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -84 lines) Patch
M include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h View 1 2 3 7 chunks +34 lines, -6 lines 0 comments Download
M include/llvm/Bitcode/NaCl/NaClBitstreamReader.h View 1 2 3 4 5 4 chunks +39 lines, -11 lines 0 comments Download
M include/llvm/Bitcode/NaCl/NaClBitstreamWriter.h View 1 2 3 6 chunks +22 lines, -0 lines 0 comments Download
M lib/Bitcode/NaCl/Analysis/NaClBitcodeAnalyzer.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M lib/Bitcode/NaCl/Analysis/NaClCompress.cpp View 1 2 3 3 chunks +9 lines, -4 lines 0 comments Download
M lib/Bitcode/NaCl/Analysis/NaClObjDump.cpp View 1 2 3 1 chunk +9 lines, -4 lines 0 comments Download
M lib/Bitcode/NaCl/Reader/NaClBitcodeHeader.cpp View 1 2 3 7 chunks +112 lines, -33 lines 0 comments Download
M lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp View 1 2 3 2 chunks +8 lines, -9 lines 0 comments Download
M lib/Bitcode/NaCl/Reader/NaClBitstreamReader.cpp View 7 chunks +8 lines, -0 lines 0 comments Download
M lib/Bitcode/NaCl/TestUtils/NaClBitcodeMungeReader.cpp View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M test/NaCl/Bitcode/pnacl-bcdis/no-abbreviations.ll View 2 chunks +109 lines, -0 lines 0 comments Download
M unittests/Bitcode/NaClBitstreamReaderTest.cpp View 1 2 3 2 chunks +4 lines, -13 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
Karl
5 years, 7 months ago (2015-05-06 19:30:10 UTC) #2
jvoung (off chromium)
Would probably be a good idea to file a bug to track this since there ...
5 years, 7 months ago (2015-05-07 18:11:17 UTC) #3
Karl
https://codereview.chromium.org/1122423005/diff/20001/include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h File include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h (right): https://codereview.chromium.org/1122423005/diff/20001/include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h#newcode170 include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h:170: // Byte align bitcode records when nonzero. On 2015/05/07 ...
5 years, 7 months ago (2015-05-07 22:18:55 UTC) #4
jvoung (off chromium)
https://codereview.chromium.org/1122423005/diff/20001/include/llvm/Bitcode/NaCl/NaClBitstreamReader.h File include/llvm/Bitcode/NaCl/NaClBitstreamReader.h (right): https://codereview.chromium.org/1122423005/diff/20001/include/llvm/Bitcode/NaCl/NaClBitstreamReader.h#newcode93 include/llvm/Bitcode/NaCl/NaClBitstreamReader.h:93: NaClBitcodeHeader &Header) { On 2015/05/07 22:18:54, Karl wrote: > ...
5 years, 7 months ago (2015-05-08 17:55:01 UTC) #5
Karl
https://codereview.chromium.org/1122423005/diff/20001/include/llvm/Bitcode/NaCl/NaClBitstreamReader.h File include/llvm/Bitcode/NaCl/NaClBitstreamReader.h (right): https://codereview.chromium.org/1122423005/diff/20001/include/llvm/Bitcode/NaCl/NaClBitstreamReader.h#newcode93 include/llvm/Bitcode/NaCl/NaClBitstreamReader.h:93: NaClBitcodeHeader &Header) { On 2015/05/08 17:55:01, jvoung wrote: > ...
5 years, 7 months ago (2015-05-08 21:09:00 UTC) #6
jvoung (off chromium)
lgtm https://codereview.chromium.org/1122423005/diff/40001/lib/Bitcode/NaCl/Analysis/NaClBitcodeAnalyzer.cpp File lib/Bitcode/NaCl/Analysis/NaClBitcodeAnalyzer.cpp (right): https://codereview.chromium.org/1122423005/diff/40001/lib/Bitcode/NaCl/Analysis/NaClBitcodeAnalyzer.cpp#newcode411 lib/Bitcode/NaCl/Analysis/NaClBitcodeAnalyzer.cpp:411: const unsigned char *HeaderPtr = BufPtr; On 2015/05/08 ...
5 years, 7 months ago (2015-05-11 17:51:39 UTC) #7
Karl
Committed patchset #6 (id:90001) manually as f46b7247105268eb474eda566076eab0e7766676 (presubmit successful).
5 years, 7 months ago (2015-05-11 19:40:40 UTC) #8
Karl
5 years, 7 months ago (2015-05-11 19:41:09 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/1122423005/diff/80001/include/llvm/Bitcode/Na...
File include/llvm/Bitcode/NaCl/NaClBitstreamReader.h (right):

https://codereview.chromium.org/1122423005/diff/80001/include/llvm/Bitcode/Na...
include/llvm/Bitcode/NaCl/NaClBitstreamReader.h:97: {
On 2015/05/11 17:51:39, jvoung wrote:
> nit: seems like the other cases put the { on the previous line

Done.

https://codereview.chromium.org/1122423005/diff/80001/include/llvm/Bitcode/Na...
include/llvm/Bitcode/NaCl/NaClBitstreamReader.h:107: // Read stream from Bytes,
starting at the given initial address
On 2015/05/11 17:51:39, jvoung wrote:
> ctor-like comment for non-ctor?

Done.

Powered by Google App Engine
This is Rietveld 408576698