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

Issue 624663002: Introduce model of global initializers in Subzero. (Closed)

Created:
6 years, 2 months ago by Karl
Modified:
6 years, 2 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Introduce model of global initializers in Subzero. Modifies both LLVM to ICE converter, and Subzero's bitcode reader, to build Subzero's global initializers. Modifies target lowering routines for global initializers to use this new model. Also modifies both to now handle relocations in global variable initializers. BUG=None R=jvoung@chromium.org, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=e3f64d0967aa918a151a1d7e9971060c85f4aa1d

Patch Set 1 #

Patch Set 2 : Fix nits. #

Total comments: 56

Patch Set 3 : Fix issues in code. #

Patch Set 4 : add more tests. #

Total comments: 32

Patch Set 5 : Fix issues in patch set 4. #

Total comments: 8

Patch Set 6 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1170 lines, -492 lines) Patch
M Makefile.standalone View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M crosstest/test_global.cpp View 1 2 3 4 1 chunk +49 lines, -37 lines 0 comments Download
M pydir/crosstest.py View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/IceClFlags.h View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M src/IceConverter.h View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M src/IceConverter.cpp View 1 2 3 4 10 chunks +212 lines, -21 lines 0 comments Download
A src/IceGlobalInits.h View 1 2 3 4 1 chunk +258 lines, -0 lines 0 comments Download
A src/IceGlobalInits.cpp View 1 2 3 4 1 chunk +139 lines, -0 lines 0 comments Download
M src/IceTargetLowering.h View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 4 5 3 chunks +74 lines, -50 lines 0 comments Download
M src/IceTranslator.h View 1 2 3 4 3 chunks +21 lines, -7 lines 0 comments Download
M src/IceTranslator.cpp View 1 2 3 4 2 chunks +49 lines, -66 lines 0 comments Download
M src/IceTypeConverter.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/IceTypeConverter.cpp View 1 2 3 4 1 chunk +16 lines, -16 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 3 4 5 33 chunks +188 lines, -219 lines 0 comments Download
M src/llvm2ice.cpp View 1 2 6 chunks +23 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/global.ll View 1 2 2 chunks +1 line, -9 lines 0 comments Download
M tests_lit/llvm2ice_tests/unnamed.ll View 1 1 chunk +0 lines, -50 lines 0 comments Download
A tests_lit/reader_tests/globalrelocs.ll View 1 2 3 4 5 1 chunk +99 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/unnamed.ll View 1 4 chunks +21 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
Karl
6 years, 2 months ago (2014-10-02 20:06:00 UTC) #2
Jim Stichnoth
First round of comments. BTW, I was able to hand-build and run a couple of ...
6 years, 2 months ago (2014-10-03 01:28:09 UTC) #3
jvoung (off chromium)
cool! https://codereview.chromium.org/624663002/diff/20001/src/IceConverter.cpp File src/IceConverter.cpp (right): https://codereview.chromium.org/624663002/diff/20001/src/IceConverter.cpp#newcode58 src/IceConverter.cpp:58: Ice::TypeConverter TypeConverter; Could disallow copy / assign. https://codereview.chromium.org/624663002/diff/20001/src/IceConverter.cpp#newcode660 ...
6 years, 2 months ago (2014-10-03 16:15:30 UTC) #4
Karl
https://codereview.chromium.org/624663002/diff/20001/src/IceConverter.cpp File src/IceConverter.cpp (right): https://codereview.chromium.org/624663002/diff/20001/src/IceConverter.cpp#newcode37 src/IceConverter.cpp:37: using namespace llvm; On 2014/10/03 01:28:08, stichnot wrote: > ...
6 years, 2 months ago (2014-10-04 16:28:34 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/624663002/diff/60001/crosstest/test_global.cpp File crosstest/test_global.cpp (right): https://codereview.chromium.org/624663002/diff/60001/crosstest/test_global.cpp#newcode21 crosstest/test_global.cpp:21: // should have the same relocation value for both ...
6 years, 2 months ago (2014-10-06 18:16:38 UTC) #6
Karl
https://codereview.chromium.org/624663002/diff/60001/crosstest/test_global.cpp File crosstest/test_global.cpp (right): https://codereview.chromium.org/624663002/diff/60001/crosstest/test_global.cpp#newcode21 crosstest/test_global.cpp:21: // should have the same relocation value for both ...
6 years, 2 months ago (2014-10-06 22:44:05 UTC) #7
Jim Stichnoth
lgtm https://codereview.chromium.org/624663002/diff/80001/src/PNaClTranslator.cpp File src/PNaClTranslator.cpp (right): https://codereview.chromium.org/624663002/diff/80001/src/PNaClTranslator.cpp#newcode181 src/PNaClTranslator.cpp:181: C = getTranslator().getContext()->getConstantSym(getIcePointerType(), Offset, 80-col
6 years, 2 months ago (2014-10-06 22:55:01 UTC) #8
jvoung (off chromium)
lgtm https://codereview.chromium.org/624663002/diff/80001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/624663002/diff/80001/src/IceTargetLoweringX8632.cpp#newcode4496 src/IceTargetLoweringX8632.cpp:4496: if (const auto ZeroInit = llvm::dyn_cast<GlobalAddress::ZeroInitializer>(Init)) { 80 ...
6 years, 2 months ago (2014-10-07 15:35:32 UTC) #9
Karl
https://codereview.chromium.org/624663002/diff/80001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/624663002/diff/80001/src/IceTargetLoweringX8632.cpp#newcode4496 src/IceTargetLoweringX8632.cpp:4496: if (const auto ZeroInit = llvm::dyn_cast<GlobalAddress::ZeroInitializer>(Init)) { On 2014/10/07 ...
6 years, 2 months ago (2014-10-07 15:56:22 UTC) #10
Karl
6 years, 2 months ago (2014-10-07 17:38:31 UTC) #11
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as e3f64d0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698