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

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

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 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
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.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 /// Access all atomic intrinsics, which can then be iterated over. 61 /// Access all atomic intrinsics, which can then be iterated over.
62 View allIntrinsicsAndOverloads() const; 62 View allIntrinsicsAndOverloads() const;
63 /// Access a particular atomic intrinsic. 63 /// Access a particular atomic intrinsic.
64 /// \returns 0 if no intrinsic was found. 64 /// \returns 0 if no intrinsic was found.
65 const AtomicIntrinsic *find(Intrinsic::ID ID, Type *OverloadedType) const; 65 const AtomicIntrinsic *find(Intrinsic::ID ID, Type *OverloadedType) const;
66 66
67 private: 67 private:
68 AtomicIntrinsic I[NumAtomicIntrinsics][NumAtomicIntrinsicOverloadTypes]; 68 AtomicIntrinsic I[NumAtomicIntrinsics][NumAtomicIntrinsicOverloadTypes];
69 69
70 AtomicIntrinsics() LLVM_DELETED_FUNCTION; 70 AtomicIntrinsics() = delete;
71 AtomicIntrinsics(const AtomicIntrinsics &) LLVM_DELETED_FUNCTION; 71 AtomicIntrinsics(const AtomicIntrinsics &) = delete;
72 AtomicIntrinsics &operator=(const AtomicIntrinsics &) LLVM_DELETED_FUNCTION; 72 AtomicIntrinsics &operator=(const AtomicIntrinsics &) = delete;
73 }; 73 };
74 74
75 /// Operations that can be represented by the @llvm.nacl.atomic.rmw 75 /// Operations that can be represented by the @llvm.nacl.atomic.rmw
76 /// intrinsic. 76 /// intrinsic.
77 /// 77 ///
78 /// Do not reorder these values: their order offers forward 78 /// Do not reorder these values: their order offers forward
79 /// compatibility of bitcode targeted to NaCl. 79 /// compatibility of bitcode targeted to NaCl.
80 enum AtomicRMWOperation { 80 enum AtomicRMWOperation {
81 AtomicInvalid = 0, // Invalid, keep first. 81 AtomicInvalid = 0, // Invalid, keep first.
82 AtomicAdd, 82 AtomicAdd,
(...skipping 18 matching lines...) Expand all
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

Powered by Google App Engine
This is Rietveld 408576698