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

Issue 631383003: Subzero: Fix emission of global initializers. (Closed)

Created:
6 years, 2 months ago by Jim Stichnoth
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

Subzero: Fix emission of global initializers. Also changes the szbuild.py script to add -fdata-sections, and entirely removes the -disable-globals option. The global initializer emission basically copies what llc does, based on 3 properties of the global: constant vs non-constant, internal vs external, and full zero-initializer vs non-trivial initializer. BUG= none R=jvoung@chromium.org, kschimpf@google.com Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=2a063e2b8e38b49cc5ee4aa33841ce39378de567

Patch Set 1 #

Patch Set 2 : Remove the -disable-globals option #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -106 lines) Patch
M pydir/szbuild.py View 2 chunks +2 lines, -1 line 0 comments Download
M src/IceClFlags.h View 1 1 chunk +2 lines, -4 lines 0 comments Download
M src/IceConverter.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 2 chunks +45 lines, -58 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/llvm2ice.cpp View 1 2 chunks +0 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/globalinit.pnacl.ll View 1 chunk +17 lines, -17 lines 1 comment Download
M tests_lit/reader_tests/globalinit.pnacl.ll View 1 chunk +17 lines, -17 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Jim Stichnoth
Karl - I tried to look at your TODO about not mangling uninitialized external global ...
6 years, 2 months ago (2014-10-07 23:43:11 UTC) #2
Karl
lgtm. On the notion with --prefix, this is a known problem (and the reason for ...
6 years, 2 months ago (2014-10-08 15:54:09 UTC) #3
Karl
lgtm. On the notion with --prefix, this is a known problem (and the reason for ...
6 years, 2 months ago (2014-10-08 15:54:09 UTC) #4
jvoung (off chromium)
LGTM too https://codereview.chromium.org/631383003/diff/2/tests_lit/llvm2ice_tests/globalinit.pnacl.ll File tests_lit/llvm2ice_tests/globalinit.pnacl.ll (right): https://codereview.chromium.org/631383003/diff/2/tests_lit/llvm2ice_tests/globalinit.pnacl.ll#newcode18 tests_lit/llvm2ice_tests/globalinit.pnacl.ll:18: ; CHECK-NEXT: .section .rodata,"a",@progbits There are some ...
6 years, 2 months ago (2014-10-08 16:52:06 UTC) #5
Jim Stichnoth
6 years, 2 months ago (2014-10-08 18:24:54 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:2) manually as
2a063e2b8e38b49cc5ee4aa33841ce39378de567 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698