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

Issue 1330933002: Implements int2fp, fp2int, and fp2fp conversions for ARM32. (Closed)

Created:
5 years, 3 months ago by John
Modified:
5 years, 3 months ago
Reviewers:
Karl, Jim Stichnoth, ascull
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 : Implements fp2int, int2fp, fp2fp conversions. no 64-bit integer support yet. #

Total comments: 11

Patch Set 2 : Addresses comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -22 lines) Patch
M src/IceConverter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/IceInstARM32.h View 2 chunks +26 lines, -0 lines 0 comments Download
M src/IceInstARM32.cpp View 2 chunks +64 lines, -0 lines 0 comments Download
M src/IceTargetLoweringARM32.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 2 chunks +95 lines, -20 lines 0 comments Download
M tests_lit/llvm2ice_tests/fp.convert.ll View 1 46 chunks +159 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
John
5 years, 3 months ago (2015-09-10 01:33:05 UTC) #3
Karl
Otherwise LGTM. https://codereview.chromium.org/1330933002/diff/20001/src/IceTargetLoweringARM32.h File src/IceTargetLoweringARM32.h (right): https://codereview.chromium.org/1330933002/diff/20001/src/IceTargetLoweringARM32.h#newcode393 src/IceTargetLoweringARM32.h:393: CondARM32::Cond Pred = CondARM32::AL) { Is the ...
5 years, 3 months ago (2015-09-10 16:36:10 UTC) #4
ascull
https://codereview.chromium.org/1330933002/diff/20001/src/IceInstARM32.cpp File src/IceInstARM32.cpp (right): https://codereview.chromium.org/1330933002/diff/20001/src/IceInstARM32.cpp#newcode945 src/IceInstARM32.cpp:945: } // end of anonymous namespace Why an anonymous ...
5 years, 3 months ago (2015-09-10 16:44:09 UTC) #5
Jim Stichnoth
LGTM. Can you modify the Subject and first line of Description to mention ARM? https://codereview.chromium.org/1330933002/diff/20001/src/IceTargetLoweringARM32.cpp ...
5 years, 3 months ago (2015-09-10 17:17:10 UTC) #6
John
https://codereview.chromium.org/1330933002/diff/20001/src/IceInstARM32.cpp File src/IceInstARM32.cpp (right): https://codereview.chromium.org/1330933002/diff/20001/src/IceInstARM32.cpp#newcode945 src/IceInstARM32.cpp:945: } // end of anonymous namespace On 2015/09/10 16:44:09, ...
5 years, 3 months ago (2015-09-11 12:16:48 UTC) #7
John
Committed patchset #2 (id:40001) manually as c31e2ed72ed52bb40e0591dd97b6d6d071631655 (presubmit successful).
5 years, 3 months ago (2015-09-11 12:17:13 UTC) #8
Jim Stichnoth
5 years, 3 months ago (2015-09-11 13:49:40 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/1330933002/diff/20001/src/IceTargetLoweringAR...
File src/IceTargetLoweringARM32.cpp (right):

https://codereview.chromium.org/1330933002/diff/20001/src/IceTargetLoweringAR...
src/IceTargetLoweringARM32.cpp:2111: } else if (Dest->getType() == IceType_i64)
{
On 2015/09/11 12:16:48, John wrote:
> On 2015/09/10 17:17:10, stichnot wrote:
> > Make this a separate "if" statement instead of "else if"?
> 
> I tend to prefer the looks of
> 
> if (Cond1) {
>   Body1;
>   break/return;
> } else if (Cond2) {
>   Body2;
>   break/return;
> }
> 
> versus
> 
> if (Cond1) {
>   Body1;
>   break/return;
> }
> if (Cond2) {
>   Body2;
>   break/return;
> }
> 
> Plus, an "else" helps when first looking at the code -- particularly on IDE
with
> collapsible blocks -- because you know that either Body1 or Body2 will run
> (never both) even before you look at the code.
> 
> It may seem I have a strong opinion on the matter, but I really don't -- I was
> just justifying my choice. Done.

I brought it up because LLVM seems to opine pretty strongly on the matter.
http://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return

Powered by Google App Engine
This is Rietveld 408576698