| OLD | NEW |
| 1 //===- subzero/src/IceIntrinsics.cpp - Functions related to intrinsics ----===// | 1 //===- subzero/src/IceIntrinsics.cpp - Functions related to intrinsics ----===// |
| 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 // This file implements the Intrinsics utilities for matching and | 10 // This file implements the Intrinsics utilities for matching and |
| 11 // then dispatching by name. | 11 // then dispatching by name. |
| 12 // | 12 // |
| 13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
| 14 | 14 |
| 15 #include "IceIntrinsics.h" |
| 16 |
| 15 #include "IceCfg.h" | 17 #include "IceCfg.h" |
| 16 #include "IceCfgNode.h" | 18 #include "IceCfgNode.h" |
| 17 #include "IceInst.h" | 19 #include "IceInst.h" |
| 18 #include "IceIntrinsics.h" | |
| 19 #include "IceLiveness.h" | 20 #include "IceLiveness.h" |
| 20 #include "IceOperand.h" | 21 #include "IceOperand.h" |
| 21 | 22 |
| 22 #include <utility> | 23 #include <utility> |
| 23 | 24 |
| 24 namespace Ice { | 25 namespace Ice { |
| 25 | 26 |
| 26 static_assert(sizeof(Intrinsics::IntrinsicInfo) == 4, | 27 static_assert(sizeof(Intrinsics::IntrinsicInfo) == 4, |
| 27 "Unexpected sizeof(IntrinsicInfo)"); | 28 "Unexpected sizeof(IntrinsicInfo)"); |
| 28 | 29 |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 return Intrinsics::IsValidCall; | 336 return Intrinsics::IsValidCall; |
| 336 } | 337 } |
| 337 | 338 |
| 338 Type Intrinsics::FullIntrinsicInfo::getArgType(SizeT Index) const { | 339 Type Intrinsics::FullIntrinsicInfo::getArgType(SizeT Index) const { |
| 339 assert(NumTypes > 1); | 340 assert(NumTypes > 1); |
| 340 assert(Index + 1 < NumTypes); | 341 assert(Index + 1 < NumTypes); |
| 341 return Signature[Index + 1]; | 342 return Signature[Index + 1]; |
| 342 } | 343 } |
| 343 | 344 |
| 344 } // end of namespace Ice | 345 } // end of namespace Ice |
| OLD | NEW |