diff options
author | JF Bastien <jfb@chromium.org> | 2013-08-07 15:50:54 -0700 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2013-08-07 15:50:54 -0700 |
commit | 10c5d2cb2f5611441dae3114e3803526340e4b4b (patch) | |
tree | 4c2738773744746b2d690574e8f7663fc1e6bf10 /tools | |
parent | 0791551c99b041c83413ff78c29cded7730cf601 (diff) |
Add the new @llvm.nacl.atomic.fence.all intrinsic
This is a follow-up to:
https://codereview.chromium.org/22240002/
And requires the Clang changes from:
https://codereview.chromium.org/22294002/
This new intrinsic represents ``asm("":::"~{memory}")`` as well as ``__sync_synchronize()``, and in IR it corresponds to a sequentially-consistent fence surrounded by ``call void asm sideeffect "", "~{memory}"()``.
R=jvoung@chromium.org
TEST= ninja check-all
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3475
Review URL: https://codereview.chromium.org/22474008
Diffstat (limited to 'tools')
-rw-r--r-- | tools/opt/opt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 5682a55909..6386b6b9e3 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -623,10 +623,10 @@ int main(int argc, char **argv) { initializePNaClABIVerifyModulePass(Registry); initializePromoteI1OpsPass(Registry); initializePromoteIntegersPass(Registry); + initializeRemoveAsmMemoryPass(Registry); initializeReplacePtrsWithIntsPass(Registry); initializeResolveAliasesPass(Registry); initializeResolvePNaClIntrinsicsPass(Registry); - initializeRewriteAsmDirectivesPass(Registry); initializeRewriteAtomicsPass(Registry); initializeRewriteLLVMIntrinsicsPass(Registry); initializeRewritePNaClLibraryCallsPass(Registry); |