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

Issue 1674033002: Subzero: Clean up some uses of *_cast<>. (Closed)

Created:
4 years, 10 months ago by Jim Stichnoth
Modified:
4 years, 10 months ago
Reviewers:
Eric Holk, Karl, sehr, John
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

Subzero: Clean up some uses of *_cast<>. Some casts to size_t for use as array indexes are simply unnecessary. Some explicit declaration types are changed to "auto" to avoid redundancy with the static_cast type. A few llvm::dyn_cast<> operations are changed to llvm::cast<>, and vice versa. A few explicit declaration types are changed to "auto" when used with llvm::cast<> and llvm::dynamic_cast<>. Some of these were missed during an earlier cleansing because of multi-line issues. There are still a few opportunities related to Variable register numbers, but they are ignored for now because they are being addressed in another CL. BUG= none R=jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=2d6c82679e9786a924b76023aa30e1f44d0f8cbb

Patch Set 1 #

Patch Set 2 : Cleanup of llvm::cast<> style operations #

Total comments: 24

Patch Set 3 : Code review changes #

Patch Set 4 : More code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -146 lines) Patch
M src/IceAssemblerARM32.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/IceCfg.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/IceInst.cpp View 2 chunks +4 lines, -7 lines 0 comments Download
M src/IceInstARM32.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/IceTargetLoweringARM32.cpp View 8 chunks +12 lines, -13 lines 0 comments Download
M src/IceTargetLoweringMIPS32.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/IceTargetLoweringX8632Traits.h View 1 2 3 chunks +4 lines, -7 lines 0 comments Download
M src/IceTargetLoweringX8664.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/IceTargetLoweringX8664Traits.h View 1 2 3 chunks +4 lines, -7 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 1 2 3 19 chunks +49 lines, -54 lines 0 comments Download
M src/IceTypes.cpp View 3 chunks +34 lines, -51 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (7 generated)
Jim Stichnoth
4 years, 10 months ago (2016-02-07 15:56:52 UTC) #7
John
lgtm https://codereview.chromium.org/1674033002/diff/20001/src/IceAssemblerARM32.cpp File src/IceAssemblerARM32.cpp (right): https://codereview.chromium.org/1674033002/diff/20001/src/IceAssemblerARM32.cpp#newcode709 src/IceAssemblerARM32.cpp:709: auto Offset = static_cast<IOffsetT>((Inst & kBranchOffsetMask) << 8); ...
4 years, 10 months ago (2016-02-07 16:18:33 UTC) #8
John
On 2016/02/07 16:18:33, John wrote: > lgtm > > https://codereview.chromium.org/1674033002/diff/20001/src/IceAssemblerARM32.cpp > File src/IceAssemblerARM32.cpp (right): > ...
4 years, 10 months ago (2016-02-07 16:19:33 UTC) #9
Jim Stichnoth
https://codereview.chromium.org/1674033002/diff/20001/src/IceAssemblerARM32.cpp File src/IceAssemblerARM32.cpp (right): https://codereview.chromium.org/1674033002/diff/20001/src/IceAssemblerARM32.cpp#newcode709 src/IceAssemblerARM32.cpp:709: auto Offset = static_cast<IOffsetT>((Inst & kBranchOffsetMask) << 8); On ...
4 years, 10 months ago (2016-02-07 16:42:42 UTC) #10
John
lgtm Still LGTM https://codereview.chromium.org/1674033002/diff/20001/src/IceAssemblerARM32.cpp File src/IceAssemblerARM32.cpp (right): https://codereview.chromium.org/1674033002/diff/20001/src/IceAssemblerARM32.cpp#newcode709 src/IceAssemblerARM32.cpp:709: auto Offset = static_cast<IOffsetT>((Inst & kBranchOffsetMask) ...
4 years, 10 months ago (2016-02-07 16:59:43 UTC) #11
Jim Stichnoth
https://codereview.chromium.org/1674033002/diff/20001/src/IceAssemblerARM32.cpp File src/IceAssemblerARM32.cpp (right): https://codereview.chromium.org/1674033002/diff/20001/src/IceAssemblerARM32.cpp#newcode709 src/IceAssemblerARM32.cpp:709: auto Offset = static_cast<IOffsetT>((Inst & kBranchOffsetMask) << 8); On ...
4 years, 10 months ago (2016-02-07 17:44:41 UTC) #12
Jim Stichnoth
4 years, 10 months ago (2016-02-07 17:50:32 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
2d6c82679e9786a924b76023aa30e1f44d0f8cbb (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698