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

Issue 2301303003: [SubZero] Implement load and store for MIPS (Closed)

Created:
4 years, 3 months ago by jaydeep.patil
Modified:
4 years, 3 months ago
Reviewers:
Karl, John, mohit.bhakkad, Jim Stichnoth, srdjan.obucina, Eric Holk
CC:
native-client-reviews_googlegroups.com, rich.fuhler_imgtec.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[SubZero] Implement load and store for MIPS This patch implements lowerLoad and extends existing lowerStore for byte, short and floating-point types. The patch also modifies PostLoweringLegalizer for conversion of mov to load or store. R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=1d0690bc3c62c025a43e5f7cb2f3a916ec48e556

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -118 lines) Patch
M src/IceInstMIPS32.h View 1 6 chunks +84 lines, -13 lines 2 comments Download
M src/IceInstMIPS32.cpp View 1 4 chunks +3 lines, -64 lines 0 comments Download
M src/IceTargetLoweringMIPS32.h View 2 chunks +2 lines, -3 lines 0 comments Download
M src/IceTargetLoweringMIPS32.cpp View 1 11 chunks +160 lines, -36 lines 0 comments Download
M tests_lit/llvm2ice_tests/fp.load_store.ll View 7 chunks +30 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/load.ll View 5 chunks +20 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/store.ll View 2 chunks +32 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
jaydeep.patil
4 years, 3 months ago (2016-09-02 11:39:34 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/2301303003/diff/1/src/IceInstMIPS32.h File src/IceInstMIPS32.h (right): https://codereview.chromium.org/2301303003/diff/1/src/IceInstMIPS32.h#newcode532 src/IceInstMIPS32.h:532: if (Ty == IceType_i8 || Ty == IceType_i1) { ...
4 years, 3 months ago (2016-09-03 13:47:13 UTC) #4
jaydeep.patil
https://codereview.chromium.org/2301303003/diff/1/src/IceInstMIPS32.h File src/IceInstMIPS32.h (right): https://codereview.chromium.org/2301303003/diff/1/src/IceInstMIPS32.h#newcode532 src/IceInstMIPS32.h:532: if (Ty == IceType_i8 || Ty == IceType_i1) { ...
4 years, 3 months ago (2016-09-04 06:24:30 UTC) #5
jaydeep.patil
4 years, 3 months ago (2016-09-04 10:42:22 UTC) #6
Jim Stichnoth
lgtm https://codereview.chromium.org/2301303003/diff/20001/src/IceInstMIPS32.h File src/IceInstMIPS32.h (right): https://codereview.chromium.org/2301303003/diff/20001/src/IceInstMIPS32.h#newcode535 src/IceInstMIPS32.h:535: Str << "\t" A few suggestions/possibilities for future ...
4 years, 3 months ago (2016-09-04 14:19:00 UTC) #7
Jim Stichnoth
Committed patchset #2 (id:20001) manually as 1d0690bc3c62c025a43e5f7cb2f3a916ec48e556 (presubmit successful).
4 years, 3 months ago (2016-09-04 14:19:14 UTC) #9
jaydeep.patil
4 years, 3 months ago (2016-09-05 04:51:48 UTC) #10
Message was sent while issue was closed.
Thanks for the review.

https://codereview.chromium.org/2301303003/diff/20001/src/IceInstMIPS32.h
File src/IceInstMIPS32.h (right):

https://codereview.chromium.org/2301303003/diff/20001/src/IceInstMIPS32.h#new...
src/IceInstMIPS32.h:535: Str << "\t"
On 2016/09/04 14:19:00, stichnot wrote:
> A few suggestions/possibilities for future CLs.
> 
> 1. Instead of this:
>   Str << "\t" << "xxx" << "\t"
> you can do this:
>   Str << "\t" "xxx" "\t"
> which preserves the ability to find such text via "git grep -w xxx" but also
> results in a smaller, faster pnacl-sz binary.  We try to use this pattern in
> general, but I'm sure there are other places where this has slipped through.
> 
> 2. You could simplify this by moving the two instances of "\t" outside the
> switch statement.
> 
> 3. This is a pattern where a string is modified according to some Type value. 
> In Subzero, this is usually handled through static tables defined by x-macros.

> See for example the various string constants in ICETYPEARM32_TABLE or
> ICETYPEX8664_TABLE.

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698