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

Issue 22240002: Rework PNaCl memory ordering (Closed)

Created:
7 years, 4 months ago by JF
Modified:
7 years, 4 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
http://git.chromium.org/native_client/pnacl-llvm.git@master
Visibility:
Public.

Description

Rework PNaCl memory ordering This CL reworks memory ordering as specified by PNaCl. The documentation needed some clarification, and the implementation needs a bit more work around volatile and __sync_synchronize to offer stronger guarantees than what LLVM intends to offer for legacy code. There is a companion patch with Clang changes: https://codereview.chromium.org/22294002 R=eliben@chromium.org TEST= ninja check-all BUG= https://code.google.com/p/nativeclient/issues/detail?id=3475 Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-llvm.git;a=commit;h=77f169c

Patch Set 1 #

Total comments: 15

Patch Set 2 : Clarify documentation as suggested by eliben and jvoung. #

Patch Set 3 : Reorganize documents as suggested by eliben (2). #

Total comments: 2

Patch Set 4 : Add llvm.nacl.atomic.fence.all as discussed with jvoung. #

Total comments: 2

Patch Set 5 : Plural. #

Patch Set 6 : Clarify address-free as discussed with sehr. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -110 lines) Patch
M docs/PNaClDeveloperGuide.rst View 1 2 3 4 5 1 chunk +126 lines, -93 lines 0 comments Download
M docs/PNaClLangRef.rst View 1 2 3 6 chunks +30 lines, -17 lines 0 comments Download
M include/llvm/IR/Intrinsics.td View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
JF
7 years, 4 months ago (2013-08-05 18:20:22 UTC) #1
JF
This first draft of the CL updates the documentation to reflect the discussion that I ...
7 years, 4 months ago (2013-08-05 18:22:47 UTC) #2
eliben
https://codereview.chromium.org/22240002/diff/1/docs/PNaClDeveloperGuide.rst File docs/PNaClDeveloperGuide.rst (right): https://codereview.chromium.org/22240002/diff/1/docs/PNaClDeveloperGuide.rst#newcode39 docs/PNaClDeveloperGuide.rst:39: are discouraged, and aren't present in bitcode. See `Volatile ...
7 years, 4 months ago (2013-08-05 18:35:54 UTC) #3
jvoung (off chromium)
https://codereview.chromium.org/22240002/diff/1/docs/PNaClDeveloperGuide.rst File docs/PNaClDeveloperGuide.rst (right): https://codereview.chromium.org/22240002/diff/1/docs/PNaClDeveloperGuide.rst#newcode39 docs/PNaClDeveloperGuide.rst:39: are discouraged, and aren't present in bitcode. See `Volatile ...
7 years, 4 months ago (2013-08-05 18:59:41 UTC) #4
JF
I updated the documentation with eliben's and jvoung's comments. https://codereview.chromium.org/22240002/diff/1/docs/PNaClDeveloperGuide.rst File docs/PNaClDeveloperGuide.rst (right): https://codereview.chromium.org/22240002/diff/1/docs/PNaClDeveloperGuide.rst#newcode39 docs/PNaClDeveloperGuide.rst:39: ...
7 years, 4 months ago (2013-08-05 20:37:48 UTC) #5
eliben
On 2013/08/05 20:37:48, JF wrote: > I updated the documentation with eliben's and jvoung's comments. ...
7 years, 4 months ago (2013-08-05 21:33:14 UTC) #6
JF
Here is a companion patch with Clang changes: https://codereview.chromium.org/22294002 Note that this patch currently only ...
7 years, 4 months ago (2013-08-05 21:36:20 UTC) #7
JF
See update "Reorganize documents as suggested by eliben (2)". > If IPC is not supported, ...
7 years, 4 months ago (2013-08-05 21:49:22 UTC) #8
jvoung (off chromium)
https://codereview.chromium.org/22240002/diff/14001/include/llvm/IR/NaClAtomicIntrinsics.h File include/llvm/IR/NaClAtomicIntrinsics.h (right): https://codereview.chromium.org/22240002/diff/14001/include/llvm/IR/NaClAtomicIntrinsics.h#newcode110 include/llvm/IR/NaClAtomicIntrinsics.h:110: MemoryOrderSequentiallyConsistentAll, I guess the thing with having this in ...
7 years, 4 months ago (2013-08-05 23:21:22 UTC) #9
JF
https://codereview.chromium.org/22240002/diff/14001/include/llvm/IR/NaClAtomicIntrinsics.h File include/llvm/IR/NaClAtomicIntrinsics.h (right): https://codereview.chromium.org/22240002/diff/14001/include/llvm/IR/NaClAtomicIntrinsics.h#newcode110 include/llvm/IR/NaClAtomicIntrinsics.h:110: MemoryOrderSequentiallyConsistentAll, On 2013/08/05 23:21:22, jvoung (cr) wrote: > I ...
7 years, 4 months ago (2013-08-05 23:25:50 UTC) #10
jvoung (off chromium)
On 2013/08/05 23:25:50, JF wrote: > https://codereview.chromium.org/22240002/diff/14001/include/llvm/IR/NaClAtomicIntrinsics.h > File include/llvm/IR/NaClAtomicIntrinsics.h (right): > > https://codereview.chromium.org/22240002/diff/14001/include/llvm/IR/NaClAtomicIntrinsics.h#newcode110 > ...
7 years, 4 months ago (2013-08-05 23:32:36 UTC) #11
JF
> The old one is llvm.nacl.atomic.fence (no "synchronization") -- how about > llvm.nacl.atomic.fence_all, or something ...
7 years, 4 months ago (2013-08-05 23:38:07 UTC) #12
jvoung (off chromium)
On 2013/08/05 23:38:07, JF wrote: > > The old one is llvm.nacl.atomic.fence (no "synchronization") -- ...
7 years, 4 months ago (2013-08-06 01:02:21 UTC) #13
JF
On 2013/08/06 01:02:21, jvoung (cr) wrote: > On 2013/08/05 23:38:07, JF wrote: > > > ...
7 years, 4 months ago (2013-08-06 15:09:46 UTC) #14
eliben
I still think this document is not the right place to lay out our future ...
7 years, 4 months ago (2013-08-06 16:11:35 UTC) #15
JF
https://codereview.chromium.org/22240002/diff/25001/docs/PNaClDeveloperGuide.rst File docs/PNaClDeveloperGuide.rst (right): https://codereview.chromium.org/22240002/diff/25001/docs/PNaClDeveloperGuide.rst#newcode156 docs/PNaClDeveloperGuide.rst:156: Future Direction On 2013/08/06 16:11:35, eliben wrote: > "Future ...
7 years, 4 months ago (2013-08-06 16:19:33 UTC) #16
sehr (please use chromium)
On 2013/08/06 16:19:33, JF wrote: > https://codereview.chromium.org/22240002/diff/25001/docs/PNaClDeveloperGuide.rst > File docs/PNaClDeveloperGuide.rst (right): > > https://codereview.chromium.org/22240002/diff/25001/docs/PNaClDeveloperGuide.rst#newcode156 > ...
7 years, 4 months ago (2013-08-06 22:50:18 UTC) #17
JF
Committed patchset #6 manually as r77f169c (presubmit successful).
7 years, 4 months ago (2013-08-06 23:14:40 UTC) #18
JF
7 years, 4 months ago (2013-08-07 17:23:00 UTC) #19
Message was sent while issue was closed.
The follow-up CL which implements what this CL documents is:
  https://codereview.chromium.org/22474008

Powered by Google App Engine
This is Rietveld 408576698