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

Issue 600043002: Clean up run script to use for testing Subzero. (Closed)

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

Description

Clean up run script to use for testing Subzero. Adds the python script run-llvm2ice.py (was llvm2iceinsts.py) that automatically handles conversion of LLVM source to a PEXE file, and then runs llvm2ice on the corresponding PEXE file. Also, defines three paths in tests, based on the executable chosen: %lc2i - Directly reads from LLVM source, and converts to Subzero. %l2i - Parses a PEXE file into LLVM IR, and converts to Subzero. %p2i - Parses a PEXE directly into Subzero. Note that for all three executables, the same arguments can be used, making it easy to change how the input is handled. Also moves tests to use %p2i whenever possible. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3892 R=jvoung@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=2a5324a18d9be65945f5cec7c870319c47ac89a8

Patch Set 1 #

Patch Set 2 : Fix nits. #

Total comments: 18

Patch Set 3 : Fix issues in patch set 2. #

Patch Set 4 : Fixes for rebase from master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -478 lines) Patch
D pydir/llvm2iceinsts.py View 1 chunk +0 lines, -63 lines 0 comments Download
A pydir/run-llvm2ice.py View 1 2 1 chunk +89 lines, -0 lines 0 comments Download
M tests_lit/lit.cfg View 1 2 1 chunk +26 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/64bit.pnacl.ll View 1 chunk +6 lines, -7 lines 0 comments Download
M tests_lit/llvm2ice_tests/addr-opt-multi-def-var.ll View 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/address-mode-opt.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/align-spill-locations.ll View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M tests_lit/llvm2ice_tests/alloc.ll View 1 chunk +5 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/arith-opt.ll View 1 1 chunk +3 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/arithmetic-chain.ll View 1 1 chunk +3 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/bitcast.ll View 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/bool-opt.ll View 1 1 chunk +3 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/branch-opt.ll View 1 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/branch-simple.ll View 1 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/call.ll View 1 1 chunk +3 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/callindirect.pnacl.ll View 1 chunk +5 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/casts.ll View 1 chunk +3 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/cmp-opt.ll View 1 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/convert.ll View 1 chunk +5 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/div_legalization.ll View 1 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/ebp_args.ll View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/empty-func.ll View 1 1 chunk +3 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/fp.pnacl.ll View 1 chunk +6 lines, -7 lines 0 comments Download
M tests_lit/llvm2ice_tests/fpcall.ll View 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/fpconst.pnacl.ll View 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/function_aligned.ll View 1 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/global.ll View 1 chunk +4 lines, -3 lines 0 comments Download
M tests_lit/llvm2ice_tests/globalinit.pnacl.ll View 1 1 chunk +5 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/icmp-simple.ll View 1 1 chunk +3 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/load.ll View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/mangle.ll View 1 chunk +6 lines, -8 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-cmpxchg-optimization.ll View 1 2 3 1 chunk +5 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-errors.ll View 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll View 1 chunk +2 lines, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-intrinsics.ll View 1 2 3 1 chunk +6 lines, -7 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll View 2 chunks +8 lines, -9 lines 0 comments Download
M tests_lit/llvm2ice_tests/nop-insertion.ll View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/phi.ll View 1 chunk +4 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/regalloc_evict_non_overlap.ll View 1 chunk +2 lines, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/return-int-arg.ll View 1 1 chunk +3 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/returns_twice_no_coalesce.ll View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/sdiv.ll View 1 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/select-opt.ll View 1 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/shift.ll View 1 1 chunk +6 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/simple-loop.ll View 1 chunk +5 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/store.ll View 1 chunk +4 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/struct-arith.pnacl.ll View 1 chunk +4 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/switch-opt.ll View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/test_i1.ll View 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/undef.ll View 1 1 chunk +7 lines, -8 lines 0 comments Download
M tests_lit/llvm2ice_tests/unnamed.ll View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M tests_lit/llvm2ice_tests/unreachable.ll View 1 chunk +5 lines, -8 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-arg.ll View 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-arith.ll View 1 chunk +7 lines, -9 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-bitcast.ll View 1 chunk +5 lines, -7 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-cast.ll View 1 chunk +5 lines, -7 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-fcmp.ll View 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-icmp.ll View 1 1 chunk +4 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-ops.ll View 1 2 3 1 chunk +7 lines, -8 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-select.ll View 1 1 chunk +6 lines, -8 lines 0 comments Download
M tests_lit/reader_tests/alloca.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/binops.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/branch.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/call.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/call-indirect.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/casts.ll View 1 chunk +1 line, -4 lines 0 comments Download
M tests_lit/reader_tests/compare.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/constants.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/forwardref.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/globalinit.pnacl.ll View 1 chunk +3 lines, -11 lines 0 comments Download
M tests_lit/reader_tests/insertextract.ll View 1 chunk +1 line, -6 lines 0 comments Download
M tests_lit/reader_tests/load.ll View 1 1 chunk +1 line, -4 lines 0 comments Download
M tests_lit/reader_tests/nacl-atomic-intrinsics.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/nacl-fake-intrinsic.ll View 1 1 chunk +3 lines, -1 line 0 comments Download
M tests_lit/reader_tests/nacl-other-intrinsics.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/phi.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/select.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/store.ll View 1 chunk +1 line, -4 lines 0 comments Download
M tests_lit/reader_tests/switch.ll View 1 chunk +1 line, -5 lines 0 comments Download
M tests_lit/reader_tests/unnamed.ll View 1 1 chunk +5 lines, -10 lines 0 comments Download
M tests_lit/reader_tests/unreachable.ll View 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Karl
6 years, 3 months ago (2014-09-24 19:58:27 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/600043002/diff/20001/pydir/run-llvm2ice.py File pydir/run-llvm2ice.py (right): https://codereview.chromium.org/600043002/diff/20001/pydir/run-llvm2ice.py#newcode26 pydir/run-llvm2ice.py:26: help='Stop afer translating to Subzero instructions') after https://codereview.chromium.org/600043002/diff/20001/tests_lit/lit.cfg File ...
6 years, 3 months ago (2014-09-24 20:35:19 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/600043002/diff/20001/pydir/run-llvm2ice.py File pydir/run-llvm2ice.py (right): https://codereview.chromium.org/600043002/diff/20001/pydir/run-llvm2ice.py#newcode13 pydir/run-llvm2ice.py:13: desc = 'Run the llvm2ice compiler on a llvm ...
6 years, 3 months ago (2014-09-24 20:37:37 UTC) #4
Karl
https://codereview.chromium.org/600043002/diff/20001/pydir/run-llvm2ice.py File pydir/run-llvm2ice.py (right): https://codereview.chromium.org/600043002/diff/20001/pydir/run-llvm2ice.py#newcode13 pydir/run-llvm2ice.py:13: desc = 'Run the llvm2ice compiler on a llvm ...
6 years, 3 months ago (2014-09-24 21:01:22 UTC) #5
jvoung (off chromium)
lgtm
6 years, 3 months ago (2014-09-24 22:29:44 UTC) #6
Karl
6 years, 2 months ago (2014-09-25 16:37:59 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 2a5324a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698