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

Issue 686913005: Turn off dump/emit routines when building minimal subzero. (Closed)

Created:
6 years, 1 month ago by Karl
Modified:
6 years, 1 month ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Turn off dump/emit routines when building minimal subzero. Remove the dump/emit routines when ALLOW_DUMP=0. Also fixes some verbosity messages to not print if ALLOW_DUMP=0. Note: emit routines needed for emitIAS are not turned off. BUG=None R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=b6c96af1e5f019374ab93b2b66fbf79247d24660

Patch Set 1 #

Patch Set 2 : Fix nits and format. #

Total comments: 4

Patch Set 3 : Fix nits. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+497 lines, -38 lines) Patch
M Makefile View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Makefile.standalone View 1 chunk +4 lines, -6 lines 0 comments Download
M src/IceCfg.cpp View 1 3 chunks +5 lines, -0 lines 0 comments Download
M src/IceCfgNode.cpp View 1 2 4 chunks +8 lines, -0 lines 0 comments Download
M src/IceGlobalContext.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/IceGlobalInits.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M src/IceGlobalInits.cpp View 1 7 chunks +22 lines, -0 lines 0 comments Download
M src/IceInst.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceInst.cpp View 1 2 26 chunks +62 lines, -6 lines 0 comments Download
M src/IceInstX8632.h View 1 20 chunks +40 lines, -1 line 0 comments Download
M src/IceInstX8632.cpp View 1 75 chunks +176 lines, -0 lines 0 comments Download
M src/IceOperand.h View 1 2 5 chunks +18 lines, -3 lines 0 comments Download
M src/IceOperand.cpp View 1 2 5 chunks +16 lines, -1 line 0 comments Download
M src/IceRegAlloc.cpp View 1 2 4 chunks +8 lines, -1 line 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 6 chunks +11 lines, -1 line 0 comments Download
M src/IceTimerTree.cpp View 1 3 chunks +6 lines, -0 lines 0 comments Download
M src/IceTranslator.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceTypes.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 4 chunks +15 lines, -1 line 0 comments Download
M src/llvm2ice.cpp View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/arith-opt.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/branch-simple.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/globalinit.pnacl.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/globalrelocs.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/load.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/nop-insertion.ll View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/store.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/alloca.ll View 1 chunk +2 lines, -0 lines 1 comment Download
M tests_lit/reader_tests/binops.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/branch.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/call.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/call-indirect.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/casts.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/compare.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/constants.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/forwardref.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/globalinit.pnacl.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/globalrelocs.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/insertextract.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/insertextract-err.ll View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M tests_lit/reader_tests/load.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/nacl-atomic-intrinsics.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/nacl-fake-intrinsic.ll View 1 2 2 chunks +22 lines, -6 lines 0 comments Download
M tests_lit/reader_tests/nacl-other-intrinsics.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/phi.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/select.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/store.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/switch.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/unnamed.ll View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/unreachable.ll View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Karl
6 years, 1 month ago (2014-11-06 22:49:55 UTC) #2
Jim Stichnoth
Otherwise lgtm. I still would prefer to get rid of the dump/emit functions entirely, not ...
6 years, 1 month ago (2014-11-12 14:34:15 UTC) #3
Karl
Committed patchset #3 (id:40001) manually as b6c96af1e5f019374ab93b2b66fbf79247d24660 (presubmit successful).
6 years, 1 month ago (2014-11-17 18:58:48 UTC) #4
Karl
https://codereview.chromium.org/686913005/diff/20001/src/IceTypes.cpp File src/IceTypes.cpp (right): https://codereview.chromium.org/686913005/diff/20001/src/IceTypes.cpp#newcode254 src/IceTypes.cpp:254: const char *typeString(Type Ty) { On 2014/11/12 14:34:15, stichnot ...
6 years, 1 month ago (2014-11-17 18:59:46 UTC) #5
jvoung (off chromium)
6 years, 1 month ago (2014-11-17 19:15:11 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/686913005/diff/40001/tests_lit/reader_tests/a...
File tests_lit/reader_tests/alloca.ll (right):

https://codereview.chromium.org/686913005/diff/40001/tests_lit/reader_tests/a...
tests_lit/reader_tests/alloca.ll:3: ; REQUIRES: allow_dump
Sorry this is a bit late, but if the whole reader_tests directory requires
allow_dump, you might have been able to just create a lit.local.cfg file with:

features = set(config.root.available_features.split())
if not 'allow_dump' in features:
  config.unsupported = True

or something like that

Powered by Google App Engine
This is Rietveld 408576698