| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |