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

Issue 905463003: Adds accessor methods to class ClFlags. (Closed)

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

Adds accessor methods to class ClFlags. Allows one to define explicit overrides in get accessors, based on compilation features. To show usage, modified SubConstantCalls to never be enabled if building a minimal llvm2ice. BUG=None R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=df80eb862a6e44a4ee0a4e868f5ef1543f368020

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix issues raised in last patch. #

Total comments: 4

Patch Set 3 : Fix nits in patchset 2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -111 lines) Patch
M Makefile.standalone View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/IceCfg.cpp View 7 chunks +10 lines, -9 lines 0 comments Download
M src/IceCfgNode.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M src/IceClFlags.h View 1 2 1 chunk +140 lines, -24 lines 0 comments Download
M src/IceConverter.cpp View 1 4 chunks +4 lines, -5 lines 0 comments Download
M src/IceELFObjectWriter.cpp View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M src/IceGlobalContext.h View 1 3 chunks +7 lines, -7 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 7 chunks +14 lines, -11 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 6 chunks +7 lines, -7 lines 0 comments Download
M src/IceTranslator.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 7 chunks +11 lines, -12 lines 0 comments Download
M src/llvm2ice.cpp View 1 2 chunks +24 lines, -23 lines 0 comments Download
M unittest/BitcodeMunge.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Karl
5 years, 10 months ago (2015-02-05 22:01:43 UTC) #2
Jim Stichnoth
https://codereview.chromium.org/905463003/diff/1/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/905463003/diff/1/Makefile.standalone#newcode57 Makefile.standalone:57: -DALLOW_LLVM_IR_AS_INPUT=0 -DALLOW_DISABLE_IR_GEN=0 -DIS_MINIMAL_BUILD=1 In the interest of bikeshedding, can ...
5 years, 10 months ago (2015-02-05 22:30:09 UTC) #3
Karl
https://codereview.chromium.org/905463003/diff/1/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/905463003/diff/1/Makefile.standalone#newcode57 Makefile.standalone:57: -DALLOW_LLVM_IR_AS_INPUT=0 -DALLOW_DISABLE_IR_GEN=0 -DIS_MINIMAL_BUILD=1 On 2015/02/05 22:30:09, stichnot wrote: > ...
5 years, 10 months ago (2015-02-05 23:57:39 UTC) #4
Jim Stichnoth
Otherwise LGTM. Thanks! https://codereview.chromium.org/905463003/diff/20001/src/IceClFlags.h File src/IceClFlags.h (right): https://codereview.chromium.org/905463003/diff/20001/src/IceClFlags.h#newcode171 src/IceClFlags.h:171: IceString DefaultFunctionPrefix; Put DefaultFunctionPrefix before DefaultGlobalPrefix ...
5 years, 10 months ago (2015-02-06 13:16:08 UTC) #5
Karl
Committed patchset #3 (id:40001) manually as df80eb862a6e44a4ee0a4e868f5ef1543f368020 (presubmit successful).
5 years, 10 months ago (2015-02-09 22:20:31 UTC) #7
Karl
5 years, 10 months ago (2015-02-09 22:20:44 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/905463003/diff/20001/src/IceClFlags.h
File src/IceClFlags.h (right):

https://codereview.chromium.org/905463003/diff/20001/src/IceClFlags.h#newcode171
src/IceClFlags.h:171: IceString DefaultFunctionPrefix;
On 2015/02/06 13:16:08, stichnot wrote:
> Put DefaultFunctionPrefix before DefaultGlobalPrefix

Done.

https://codereview.chromium.org/905463003/diff/20001/src/PNaClTranslator.cpp
File src/PNaClTranslator.cpp (right):

https://codereview.chromium.org/905463003/diff/20001/src/PNaClTranslator.cpp#...
src/PNaClTranslator.cpp:633: if (!getFlags().getGenerateUnitTestMessages()) {
On 2015/02/06 13:16:08, stichnot wrote:
> Change "if (!c) a; else b;" pattern to "if (c) b; else a;"

Done.

Powered by Google App Engine
This is Rietveld 408576698