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

Issue 321993002: Add a few Subzero intrinsics (not the atomic ones yet). (Closed)

Created:
6 years, 6 months ago by jvoung (off chromium)
Modified:
6 years, 6 months ago
Reviewers:
Jim Stichnoth, JF
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Add a few Subzero intrinsics (not the atomic ones yet). Handle: * mem{cpy,move,set} (without optimizations for known lengths) * nacl.read.tp * setjmp, longjmp * trap Mostly see if the dispatching/organization is okay. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3882 R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=3bd9f1a

Patch Set 1 #

Patch Set 2 : doesn't matter if eax or not #

Total comments: 35

Patch Set 3 : address part of codereview #

Patch Set 4 : add a run test #

Total comments: 5

Patch Set 5 : tweak test some #

Total comments: 20

Patch Set 6 : remove workaround #

Patch Set 7 : memset #

Patch Set 8 : add variable length version too #

Total comments: 3

Patch Set 9 : TODO assert #

Patch Set 10 : validate intrinsics signature too #

Patch Set 11 : clang-format #

Patch Set 12 : ws #

Patch Set 13 : more formatting #

Patch Set 14 : bitwise sideeffects #

Total comments: 6

Patch Set 15 : change headers #

Patch Set 16 : make order-dependent #

Patch Set 17 : actually sort #

Patch Set 18 : remove TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+998 lines, -44 lines) Patch
M Makefile.standalone View 1 1 chunk +1 line, -0 lines 0 comments Download
A crosstest/mem_intrin.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +19 lines, -0 lines 0 comments Download
A crosstest/mem_intrin.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +97 lines, -0 lines 0 comments Download
A crosstest/mem_intrin_main.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +69 lines, -0 lines 0 comments Download
M crosstest/runtests.sh View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +16 lines, -8 lines 0 comments Download
M src/IceGlobalContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +4 lines, -0 lines 0 comments Download
M src/IceInst.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +44 lines, -9 lines 0 comments Download
M src/IceInstX8632.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +34 lines, -5 lines 0 comments Download
M src/IceInstX8632.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +45 lines, -6 lines 0 comments Download
M src/IceInstX8632.def View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
A src/IceIntrinsics.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +94 lines, -0 lines 0 comments Download
A src/IceIntrinsics.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +202 lines, -0 lines 0 comments Download
M src/IceTargetLowering.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceTargetLowering.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +111 lines, -10 lines 0 comments Download
M src/llvm2ice.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +53 lines, -2 lines 0 comments Download
M szdiff.py View 1 2 3 4 5 3 chunks +15 lines, -4 lines 0 comments Download
A tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll View 1 2 3 4 5 1 chunk +177 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jvoung (off chromium)
6 years, 6 months ago (2014-06-09 23:58:26 UTC) #1
JF
This CL also seems like the right place to add something about side-effects, what touches ...
6 years, 6 months ago (2014-06-10 03:50:41 UTC) #2
Jim Stichnoth
https://codereview.chromium.org/321993002/diff/50001/src/IceInst.h File src/IceInst.h (right): https://codereview.chromium.org/321993002/diff/50001/src/IceInst.h#newcode423 src/IceInst.h:423: HasSideEffects = Info.HasSideEffects; I think I'd be more comfortable ...
6 years, 6 months ago (2014-06-10 22:58:29 UTC) #3
jvoung (off chromium)
Thanks! Addressed some of the comments and will get to the rest soon. Also need ...
6 years, 6 months ago (2014-06-12 05:48:30 UTC) #4
JF
https://codereview.chromium.org/321993002/diff/50001/src/IceIntrinsics.cpp File src/IceIntrinsics.cpp (right): https://codereview.chromium.org/321993002/diff/50001/src/IceIntrinsics.cpp#newcode75 src/IceIntrinsics.cpp:75: { {Trap, true}, "trap" } On 2014/06/12 05:48:30, jvoung ...
6 years, 6 months ago (2014-06-12 15:43:02 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/321993002/diff/90001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/321993002/diff/90001/src/IceTargetLoweringX8632.cpp#newcode1811 src/IceTargetLoweringX8632.cpp:1811: Call->addArg(Instr->getSrc(2)); On 2014/06/12 05:48:30, jvoung wrote: > Should this ...
6 years, 6 months ago (2014-06-12 17:04:44 UTC) #6
Jim Stichnoth
https://codereview.chromium.org/321993002/diff/50001/src/IceInstX8632.h File src/IceInstX8632.h (right): https://codereview.chromium.org/321993002/diff/50001/src/IceInstX8632.h#newcode87 src/IceInstX8632.h:87: class OperandX8632MemOffSeg : public OperandX8632 { On 2014/06/12 05:48:30, ...
6 years, 6 months ago (2014-06-12 20:52:08 UTC) #7
jvoung (off chromium)
https://codereview.chromium.org/321993002/diff/50001/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/321993002/diff/50001/src/IceGlobalContext.cpp#newcode98 src/IceGlobalContext.cpp:98: BuildIntrinsicMap(&IntrinsicInfos); On 2014/06/10 03:50:41, JF wrote: > Why isn't ...
6 years, 6 months ago (2014-06-16 20:51:59 UTC) #8
Jim Stichnoth
https://codereview.chromium.org/321993002/diff/90001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/321993002/diff/90001/src/IceTargetLoweringX8632.cpp#newcode1811 src/IceTargetLoweringX8632.cpp:1811: Call->addArg(Instr->getSrc(2)); On 2014/06/16 20:51:58, jvoung wrote: > On 2014/06/12 ...
6 years, 6 months ago (2014-06-16 23:05:16 UTC) #9
jvoung (off chromium)
Thanks! https://codereview.chromium.org/321993002/diff/90001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/321993002/diff/90001/src/IceTargetLoweringX8632.cpp#newcode1811 src/IceTargetLoweringX8632.cpp:1811: Call->addArg(Instr->getSrc(2)); On 2014/06/16 23:05:15, stichnot wrote: > On ...
6 years, 6 months ago (2014-06-17 17:36:19 UTC) #10
Jim Stichnoth
lgtm
6 years, 6 months ago (2014-06-17 17:53:49 UTC) #11
jvoung (off chromium)
6 years, 6 months ago (2014-06-18 17:51:03 UTC) #12
Message was sent while issue was closed.
Committed patchset #18 manually as r3bd9f1a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698