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

Issue 1661233002: Subzero: Prototype to simplify makereg calls (Closed)

Created:
4 years, 10 months ago by rkotlerimgtec
Modified:
4 years, 10 months ago
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

This would eliminate a lot of repetitive coding in subzero. It's troublesome that we have to type (this) in several places but I don't see a away around it yet and it does not add to the line of code count at all to have to do this; it's just not aesthetic to me. If this idea is okay, I can make all the similar changes in the Mips Subzero port. BUG= Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=953568f83d6933c8175754e3665ec844e14d5b51

Patch Set 1 #

Patch Set 2 : complete prototype of patch #

Patch Set 3 : Another way to solve the (this) problem #

Patch Set 4 : changes suggested by stichnot #

Total comments: 2

Patch Set 5 : changes suggested by stichnot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -18 lines) Patch
M src/IceTargetLoweringMIPS32.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M src/IceTargetLoweringMIPS32.cpp View 1 2 3 4 7 chunks +10 lines, -18 lines 0 comments Download

Messages

Total messages: 28 (4 generated)
rkotlerimgtec
4 years, 10 months ago (2016-02-04 01:21:53 UTC) #3
rkotlerimgtec
On 2016/02/04 01:21:53, rkotlerimgtec wrote: I think if we use c++2011 that we may be ...
4 years, 10 months ago (2016-02-04 04:27:36 UTC) #4
rkotlerimgtec
..those restrictions for NESTED classes were removed.... On Wed, Feb 3, 2016 at 8:27 PM, ...
4 years, 10 months ago (2016-02-04 04:30:36 UTC) #5
Jim Stichnoth
In general, each target gets a fair amount of leeway in creating its patterns for ...
4 years, 10 months ago (2016-02-04 05:45:02 UTC) #6
rkotlerimgtec
There are some other solutions for situations that don't fit this one by using variadic ...
4 years, 10 months ago (2016-02-04 06:37:45 UTC) #7
John
On the need for (this), you could do something like: class TargetMIPS32 { ... class ...
4 years, 10 months ago (2016-02-04 16:04:04 UTC) #8
Jim Stichnoth
On 2016/02/04 16:04:04, John wrote: > On the need for (this), you could do something ...
4 years, 10 months ago (2016-02-04 16:20:51 UTC) #9
rkotlerimgtec
The problem is that the following seems to be illegal even in c++11. I thought ...
4 years, 10 months ago (2016-02-04 23:45:21 UTC) #10
rkotlerimgtec
The idea would be to perhaps follow on with replacing Variable *Reg with something like ...
4 years, 10 months ago (2016-02-05 01:52:11 UTC) #11
rkotlerimgtec
I'm going to look at solving this problem of "this" using auto. I think that's ...
4 years, 10 months ago (2016-02-11 03:54:44 UTC) #12
rkotlerimgtec
4 years, 10 months ago (2016-02-11 05:00:46 UTC) #13
rkotlerimgtec
Unfortunately, I was not able so far to figure out how to eliminate the unpleasant ...
4 years, 10 months ago (2016-02-11 12:51:04 UTC) #14
rkotlerimgtec
http://stackoverflow.com/questions/6198224/how-to-refer-to-enclosing-instance-from-c-inner-class On Thu, Feb 11, 2016 at 4:51 AM, reed kotler <rkotlerimgtec@gmail.com> wrote: > Unfortunately, ...
4 years, 10 months ago (2016-02-11 13:00:01 UTC) #15
Jim Stichnoth
I understand the annoyance here of having to use excess boilerplate, more than should be ...
4 years, 10 months ago (2016-02-12 03:00:19 UTC) #16
rkotlerimgtec
In some places, we will want to allocate floating point registers so making "int" the ...
4 years, 10 months ago (2016-02-12 03:18:28 UTC) #17
Jim Stichnoth
On 2016/02/12 03:18:28, rkotlerimgtec wrote: > In some places, we will want to allocate floating ...
4 years, 10 months ago (2016-02-12 03:31:26 UTC) #18
rkotlerimgtec
On 2016/02/12 03:31:26, stichnot wrote: > On 2016/02/12 03:18:28, rkotlerimgtec wrote: > > In some ...
4 years, 10 months ago (2016-02-15 07:54:30 UTC) #20
rkotlerimgtec
4 years, 10 months ago (2016-02-15 07:54:42 UTC) #21
rkotlerimgtec
I'm willing to make these changes for all the ports, not just Mips if you ...
4 years, 10 months ago (2016-02-15 19:59:44 UTC) #22
Jim Stichnoth
This looks GTM, but I'm pretty sure you didn't "make presubmit" (which would have done ...
4 years, 10 months ago (2016-02-17 03:29:45 UTC) #23
rkotlerimgtec
https://codereview.chromium.org/1661233002/diff/80001/src/IceTargetLoweringMIPS32.cpp File src/IceTargetLoweringMIPS32.cpp (right): https://codereview.chromium.org/1661233002/diff/80001/src/IceTargetLoweringMIPS32.cpp#newcode815 src/IceTargetLoweringMIPS32.cpp:815: ReturnReg = makeReg(IceType_i32, RegMIPS32::Reg_V0); On 2016/02/17 03:29:45, stichnot wrote: ...
4 years, 10 months ago (2016-02-17 04:27:30 UTC) #24
Jim Stichnoth
Committed patchset #5 (id:100001) manually as 953568f83d6933c8175754e3665ec844e14d5b51 (presubmit successful).
4 years, 10 months ago (2016-02-17 13:37:06 UTC) #26
Jim Stichnoth
Whoops, I forgot to edit the Description so that "git log --oneline" looks sensible. Reed, ...
4 years, 10 months ago (2016-02-17 13:41:47 UTC) #27
rkotlerimgtec
4 years, 10 months ago (2016-02-17 14:28:11 UTC) #28
Message was sent while issue was closed.
okay. gotcha.

On Wed, Feb 17, 2016 at 5:41 AM, <stichnot@chromium.org> wrote:

> Whoops, I forgot to edit the Description so that "git log --oneline" looks
> sensible.
>
> Reed, in the future can you please do that prior to the initial "git cl
upload".
>
> Words like "prototype" and future plans for the CL should go in the
> "Publish+Mail Comments" message or in a CL comment attached to a source file,
> rather than the CL Description field.
> https://codereview.chromium.org/1661233002/
>
>

-- 
You received this message because you are subscribed to the Google Groups
"Native-Client-Reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to native-client-reviews+unsubscribe@googlegroups.com.
To post to this group, send email to native-client-reviews@googlegroups.com.
Visit this group at https://groups.google.com/group/native-client-reviews.
For more options, visit https://groups.google.com/d/optout.

Powered by Google App Engine
This is Rietveld 408576698