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 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 /// the function name does not have the common "llvm." prefix, nullptr is | 158 /// the function name does not have the common "llvm." prefix, nullptr is |
159 /// returned and Error is set to false. Otherwise, tries to find a reference | 159 /// returned and Error is set to false. Otherwise, tries to find a reference |
160 /// to a FullIntrinsicInfo entry (valid for the lifetime of the map). If | 160 /// to a FullIntrinsicInfo entry (valid for the lifetime of the map). If |
161 /// found, sets Error to false and returns the reference. If not found, sets | 161 /// found, sets Error to false and returns the reference. If not found, sets |
162 /// Error to true and returns nullptr (indicating an unknown "llvm.foo" | 162 /// Error to true and returns nullptr (indicating an unknown "llvm.foo" |
163 /// intrinsic). | 163 /// intrinsic). |
164 const FullIntrinsicInfo *find(const IceString &Name, bool &Error) const; | 164 const FullIntrinsicInfo *find(const IceString &Name, bool &Error) const; |
165 | 165 |
166 private: | 166 private: |
167 // TODO(jvoung): May want to switch to something like LLVM's StringMap. | 167 // TODO(jvoung): May want to switch to something like LLVM's StringMap. |
168 typedef std::map<IceString, FullIntrinsicInfo> IntrinsicMap; | 168 using IntrinsicMap = std::map<IceString, FullIntrinsicInfo>; |
169 IntrinsicMap Map; | 169 IntrinsicMap Map; |
170 }; | 170 }; |
171 | 171 |
172 } // end of namespace Ice | 172 } // end of namespace Ice |
173 | 173 |
174 #endif // SUBZERO_SRC_ICEINTRINSICS_H | 174 #endif // SUBZERO_SRC_ICEINTRINSICS_H |
OLD | NEW |