| 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. |
| 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 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 |