LLVM 20.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. | |
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. | |
Friends | |
hash_code | hash_value (const Vector &) |
Return a hash_value for the given vector. | |
|
inlineexplicit |
Construct a PBQP vector of the given size.
Definition at line 30 of file Math.h.
References llvm::Length.
Construct a PBQP vector with initializer.
Definition at line 34 of file Math.h.
References llvm::Length.
|
inline |
|
inline |
Return the length of the vector.
Definition at line 60 of file Math.h.
References assert().
Referenced by llvm::PBQP::applyR2(), llvm::PBQP::RegAlloc::RegAllocSolverImpl::handleAddNode(), and llvm::PBQP::RegAlloc::NodeMetadata::setup().
|
inline |