|
LLVM 22.0.0git
|
#include "llvm/CodeGen/PBQP/Math.h"
Public Member Functions | |
| Vector (unsigned Length) | |
| Construct a PBQP vector of the given size. | |
| Vector (unsigned Length, PBQPNum InitVal) | |
| Construct a PBQP vector with initializer. | |
| Vector (const Vector &V) | |
| Copy construct a PBQP vector. | |
| Vector (Vector &&V) | |
| Move construct a PBQP vector. | |
| const PBQPNum * | begin () const |
| const PBQPNum * | end () const |
| PBQPNum * | begin () |
| PBQPNum * | end () |
| bool | operator== (const Vector &V) const |
| Comparison operator. | |
| unsigned | getLength () const |
| Return the length of the vector. | |
| PBQPNum & | operator[] (unsigned Index) |
| Element access. | |
| const PBQPNum & | operator[] (unsigned Index) const |
| Const element access. | |
| Vector & | operator+= (const Vector &V) |
| Add another vector to this one. | |
| unsigned | minIndex () const |
| Returns the index of the minimum value in this vector. | |
|
inlineexplicit |
Construct a PBQP vector of the given size.
Definition at line 30 of file Math.h.
References llvm::Length.
Referenced by llvm::PBQP::MDVector< Metadata >::MDVector(), llvm::PBQP::MDVector< Metadata >::MDVector(), operator+=(), operator==(), Vector(), and Vector().
|
inline |
Move construct a PBQP vector.
Definition at line 41 of file Math.h.
References llvm::move(), and Vector().
Definition at line 44 of file Math.h.
Referenced by minIndex(), operator+=(), and Vector().
Definition at line 45 of file Math.h.
Referenced by operator+=(), and Vector().
|
inline |
Return the length of the vector.
Definition at line 56 of file Math.h.
References assert().
Referenced by llvm::PBQP::applyR2(), and llvm::PBQP::RegAlloc::NodeMetadata::setup().
|
inline |
Returns the index of the minimum value in this vector.
Definition at line 84 of file Math.h.
References assert(), begin(), and llvm::min_element().
Comparison operator.
Definition at line 50 of file Math.h.
References assert(), llvm::equal(), and Vector().