| OLD | NEW |
| 1 //===- subzero/src/IceIntrinsics.h - List of Ice Intrinsics -----*- C++ -*-===// | 1 //===- subzero/src/IceIntrinsics.h - List of Ice Intrinsics -----*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 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 /// \file | 10 /// \file |
| 11 /// This file declares the kinds of intrinsics supported by PNaCl. | 11 /// This file declares the kinds of intrinsics supported by PNaCl. |
| 12 /// | 12 /// |
| 13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
| 14 | 14 |
| 15 #ifndef SUBZERO_SRC_ICEINTRINSICS_H | 15 #ifndef SUBZERO_SRC_ICEINTRINSICS_H |
| 16 #define SUBZERO_SRC_ICEINTRINSICS_H | 16 #define SUBZERO_SRC_ICEINTRINSICS_H |
| 17 | 17 |
| 18 #include "IceDefs.h" | 18 #include "IceDefs.h" |
| 19 #include "IceTypes.h" | 19 #include "IceTypes.h" |
| 20 | 20 |
| 21 namespace Ice { | 21 namespace Ice { |
| 22 | 22 |
| 23 class InstCall; | 23 class InstCall; |
| 24 | 24 |
| 25 static const size_t kMaxIntrinsicParameters = 6; | 25 static constexpr size_t kMaxIntrinsicParameters = 6; |
| 26 | 26 |
| 27 class Intrinsics { | 27 class Intrinsics { |
| 28 Intrinsics(const Intrinsics &) = delete; | 28 Intrinsics(const Intrinsics &) = delete; |
| 29 Intrinsics &operator=(const Intrinsics &) = delete; | 29 Intrinsics &operator=(const Intrinsics &) = delete; |
| 30 | 30 |
| 31 public: | 31 public: |
| 32 Intrinsics(); | 32 Intrinsics(); |
| 33 ~Intrinsics(); | 33 ~Intrinsics(); |
| 34 | 34 |
| 35 /// Some intrinsics allow overloading by type. This enum collapses all | 35 /// Some intrinsics allow overloading by type. This enum collapses all |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 private: | 165 private: |
| 166 // TODO(jvoung): May want to switch to something like LLVM's StringMap. | 166 // TODO(jvoung): May want to switch to something like LLVM's StringMap. |
| 167 using IntrinsicMap = std::map<IceString, FullIntrinsicInfo>; | 167 using IntrinsicMap = std::map<IceString, FullIntrinsicInfo>; |
| 168 IntrinsicMap Map; | 168 IntrinsicMap Map; |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // end of namespace Ice | 171 } // end of namespace Ice |
| 172 | 172 |
| 173 #endif // SUBZERO_SRC_ICEINTRINSICS_H | 173 #endif // SUBZERO_SRC_ICEINTRINSICS_H |
| OLD | NEW |