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 |
|
inline |
|
inline |
Definition at line 46 of file Math.h.
References llvm::MutableArrayRef< T >::begin().
Definition at line 44 of file Math.h.
References llvm::MutableArrayRef< T >::begin().
Referenced by minIndex(), operator+=(), and Vector().
|
inline |
Definition at line 47 of file Math.h.
References llvm::MutableArrayRef< T >::end().
Definition at line 45 of file Math.h.
References llvm::MutableArrayRef< T >::end().
Referenced by operator+=(), and Vector().
|
inline |
Return the length of the vector.
Definition at line 56 of file Math.h.
References assert(), llvm::ArrayRef< T >::empty(), and llvm::ArrayRef< T >::size().
Referenced by llvm::PBQP::applyR2(), llvm::PBQP::RegAlloc::RegAllocSolverImpl::handleAddNode(), 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(), llvm::ArrayRef< T >::empty(), and llvm::min_element().
Add another vector to this one.
Definition at line 76 of file Math.h.
References assert(), begin(), llvm::ArrayRef< T >::empty(), end(), and llvm::ArrayRef< T >::size().
Comparison operator.
Definition at line 50 of file Math.h.
References assert(), llvm::ArrayRef< T >::empty(), and llvm::equal().
Element access.
Definition at line 62 of file Math.h.
References assert(), llvm::ArrayRef< T >::empty(), Index, and llvm::ArrayRef< T >::size().
Const element access.
Definition at line 69 of file Math.h.
References assert(), llvm::ArrayRef< T >::empty(), Index, and llvm::ArrayRef< T >::size().