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

Issue 641193002: Introduce the notion of function addresses 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 the notion of function addresses in Subzero. Introduces the notion of a function address, to replace using LLVM IR's Function class. Modifies Ice converter, and Subzero's bitcode reader, to build function addresses. 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=9d98d791123ce157aab73fba210e4d068935011f

Patch Set 1 #

Patch Set 2 : Clean up code and fix nits. #

Total comments: 49

Patch Set 3 : Fix issues in patch set 2. #

Patch Set 4 : Fix nits. #

Total comments: 26

Patch Set 5 : Fix issues from Jan. #

Total comments: 8

Patch Set 6 : Fix nits. #

Patch Set 7 : Fix nit in test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+966 lines, -556 lines) Patch
M crosstest/test_global_main.cpp View 1 1 chunk +10 lines, -0 lines 0 comments Download
M src/IceConverter.h View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download
M src/IceConverter.cpp View 1 2 3 4 5 16 chunks +139 lines, -79 lines 0 comments Download
M src/IceDefs.h View 1 2 3 4 5 3 chunks +3 lines, -1 line 0 comments Download
M src/IceGlobalContext.h View 1 2 4 chunks +14 lines, -0 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 2 3 4 5 3 chunks +21 lines, -1 line 0 comments Download
M src/IceGlobalInits.h View 1 2 3 4 5 7 chunks +148 lines, -88 lines 0 comments Download
M src/IceGlobalInits.cpp View 1 2 3 4 7 chunks +81 lines, -32 lines 0 comments Download
M src/IceTargetLowering.h View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 4 5 6 2 chunks +23 lines, -37 lines 0 comments Download
M src/IceTranslator.h View 1 2 3 chunks +8 lines, -17 lines 0 comments Download
M src/IceTranslator.cpp View 1 2 3 4 3 chunks +12 lines, -37 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 3 4 28 chunks +203 lines, -185 lines 0 comments Download
A tests_lit/llvm2ice_tests/globalrelocs.ll View 1 2 1 chunk +258 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/globalinit.pnacl.ll View 1 2 3 4 5 6 2 chunks +18 lines, -75 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
Karl
6 years, 2 months ago (2014-10-09 22:13:51 UTC) #2
jvoung (off chromium)
some quick scan comments https://codereview.chromium.org/641193002/diff/150001/src/IceConverter.cpp File src/IceConverter.cpp (right): https://codereview.chromium.org/641193002/diff/150001/src/IceConverter.cpp#newcode59 src/IceConverter.cpp:59: public: already in the public: ...
6 years, 2 months ago (2014-10-10 01:47:29 UTC) #3
Jim Stichnoth
Initial comments. https://codereview.chromium.org/641193002/diff/150001/crosstest/test_global_main.cpp File crosstest/test_global_main.cpp (right): https://codereview.chromium.org/641193002/diff/150001/crosstest/test_global_main.cpp#newcode26 crosstest/test_global_main.cpp:26: int ExternName1 = 36363; The code referencing ...
6 years, 2 months ago (2014-10-10 13:15:01 UTC) #4
Karl
https://codereview.chromium.org/641193002/diff/150001/crosstest/test_global_main.cpp File crosstest/test_global_main.cpp (right): https://codereview.chromium.org/641193002/diff/150001/crosstest/test_global_main.cpp#newcode26 crosstest/test_global_main.cpp:26: int ExternName1 = 36363; On 2014/10/10 13:15:00, stichnot wrote: ...
6 years, 2 months ago (2014-10-10 20:17:31 UTC) #5
jvoung (off chromium)
https://codereview.chromium.org/641193002/diff/360001/src/IceConverter.cpp File src/IceConverter.cpp (right): https://codereview.chromium.org/641193002/diff/360001/src/IceConverter.cpp#newcode647 src/IceConverter.cpp:647: /// addresses, for module Mod. Puts corresponding converted global ...
6 years, 2 months ago (2014-10-10 23:01:16 UTC) #6
Karl
https://codereview.chromium.org/641193002/diff/360001/src/IceConverter.cpp File src/IceConverter.cpp (right): https://codereview.chromium.org/641193002/diff/360001/src/IceConverter.cpp#newcode647 src/IceConverter.cpp:647: /// addresses, for module Mod. Puts corresponding converted global ...
6 years, 2 months ago (2014-10-13 17:43:02 UTC) #7
Jim Stichnoth
https://codereview.chromium.org/641193002/diff/490001/src/IceConverter.cpp File src/IceConverter.cpp (right): https://codereview.chromium.org/641193002/diff/490001/src/IceConverter.cpp#newcode726 src/IceConverter.cpp:726: bool HasOffset, Ice::VariableDeclaration::RelocOffsetType Offset) { The NOASSERT=1 builds are ...
6 years, 2 months ago (2014-10-13 19:14:23 UTC) #8
Karl
https://codereview.chromium.org/641193002/diff/490001/src/IceConverter.cpp File src/IceConverter.cpp (right): https://codereview.chromium.org/641193002/diff/490001/src/IceConverter.cpp#newcode726 src/IceConverter.cpp:726: bool HasOffset, Ice::VariableDeclaration::RelocOffsetType Offset) { On 2014/10/13 19:14:22, stichnot ...
6 years, 2 months ago (2014-10-13 20:48:04 UTC) #9
jvoung (off chromium)
lgtm https://codereview.chromium.org/641193002/diff/360001/tests_lit/reader_tests/globalinit.pnacl.ll File tests_lit/reader_tests/globalinit.pnacl.ll (right): https://codereview.chromium.org/641193002/diff/360001/tests_lit/reader_tests/globalinit.pnacl.ll#newcode1 tests_lit/reader_tests/globalinit.pnacl.ll:1: ; Test of global initializers. On 2014/10/13 17:43:02, ...
6 years, 2 months ago (2014-10-13 21:25:43 UTC) #10
Jim Stichnoth
also LGTM
6 years, 2 months ago (2014-10-13 21:29:06 UTC) #11
Karl
Committed patchset #7 (id:920001) manually as 9d98d79 (presubmit successful).
6 years, 2 months ago (2014-10-13 22:01:17 UTC) #12
Karl
6 years, 2 months ago (2014-10-13 22:01:32 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/641193002/diff/360001/tests_lit/reader_tests/...
File tests_lit/reader_tests/globalinit.pnacl.ll (right):

https://codereview.chromium.org/641193002/diff/360001/tests_lit/reader_tests/...
tests_lit/reader_tests/globalinit.pnacl.ll:1: ; Test of global initializers.
On 2014/10/13 21:25:43, jvoung wrote:
> On 2014/10/13 17:43:02, Karl wrote:
> > On 2014/10/10 23:01:16, jvoung wrote:
> > > There was also a copy of this in llvm2ice_tests. Do we need both? Do you
> mind
> > if
> > > I remove one of them?
> > 
> > I agree that these two tests are doing the same thing, but they shouldn't.
> This
> > should only be testing parsing. The other should only be testing
translation.
> > Fixing this file to only test parsing.
> 
> Thanks!
> 
> I think that the " .att_syntax" etc, parts below which are x86-specific can be
> removed too then.
> 
> Undecided about what .section .data parts, but I guess we can revisit that
when
> doing direct-to-object.

Removed the translated code.

Powered by Google App Engine
This is Rietveld 408576698