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

Side by Side Diff: include/llvm/IR/NaClAtomicIntrinsics.h

Issue 22474008: Add the new @llvm.nacl.atomic.fence.all intrinsic (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Add note suggested by jvoung. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/llvm/IR/InlineAsm.h ('k') | include/llvm/InitializePasses.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===-- llvm/IR/NaClAtomicIntrinsics.h - NaCl Atomic Intrinsics -*- C++ -*-===// 1 //===-- llvm/IR/NaClAtomicIntrinsics.h - NaCl Atomic Intrinsics -*- C++ -*-===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file describes atomic intrinsic functions that are specific to NaCl. 10 // This file describes atomic intrinsic functions that are specific to NaCl.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #ifndef LLVM_IR_NACL_ATOMIC_INTRINSICS_H 14 #ifndef LLVM_IR_NACL_ATOMIC_INTRINSICS_H
15 #define LLVM_IR_NACL_ATOMIC_INTRINSICS_H 15 #define LLVM_IR_NACL_ATOMIC_INTRINSICS_H
16 16
17 #include "llvm/IR/Intrinsics.h" 17 #include "llvm/IR/Intrinsics.h"
18 #include "llvm/Support/Compiler.h" 18 #include "llvm/Support/Compiler.h"
19 #include <cstddef> 19 #include <cstddef>
20 20
21 namespace llvm { 21 namespace llvm {
22 22
23 namespace NaCl { 23 namespace NaCl {
24 24
25 static const size_t NumAtomicIntrinsics = 5; 25 static const size_t NumAtomicIntrinsics = 6;
26 static const size_t NumAtomicIntrinsicOverloadTypes = 4; 26 static const size_t NumAtomicIntrinsicOverloadTypes = 4;
27 static const size_t MaxAtomicIntrinsicsParameters = 5; 27 static const size_t MaxAtomicIntrinsicsParameters = 5;
28 28
29 /// Describe all the atomic intrinsics and their type signature. Most 29 /// Describe all the atomic intrinsics and their type signature. Most
30 /// can be overloaded on a type. 30 /// can be overloaded on a type.
31 class AtomicIntrinsics { 31 class AtomicIntrinsics {
32 public: 32 public:
33 enum ParamType { 33 enum ParamType {
34 NoP, /// No parameter. 34 NoP, /// No parameter.
35 Int, /// Overloaded. 35 Int, /// Overloaded.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 MemoryOrderAcquireRelease, 101 MemoryOrderAcquireRelease,
102 MemoryOrderSequentiallyConsistent, 102 MemoryOrderSequentiallyConsistent,
103 MemoryOrderNum // Invalid, keep last. 103 MemoryOrderNum // Invalid, keep last.
104 }; 104 };
105 105
106 } // End NaCl namespace 106 } // End NaCl namespace
107 107
108 } // End llvm namespace 108 } // End llvm namespace
109 109
110 #endif 110 #endif
OLDNEW
« no previous file with comments | « include/llvm/IR/InlineAsm.h ('k') | include/llvm/InitializePasses.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698