LLVM 20.0.0git
Public Member Functions | Friends | List of all members
llvm::PBQP::Vector Class Reference

PBQP Vector class. More...

#include "llvm/CodeGen/PBQP/Math.h"

Inheritance diagram for llvm::PBQP::Vector:
Inheritance graph
[legend]

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.
 
PBQPNumoperator[] (unsigned Index)
 Element access.
 
const PBQPNumoperator[] (unsigned Index) const
 Const element access.
 
Vectoroperator+= (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.
 

Detailed Description

PBQP Vector class.

Definition at line 25 of file Math.h.

Constructor & Destructor Documentation

◆ Vector() [1/4]

llvm::PBQP::Vector::Vector ( unsigned  Length)
inlineexplicit

Construct a PBQP vector of the given size.

Definition at line 30 of file Math.h.

References llvm::Length.

◆ Vector() [2/4]

llvm::PBQP::Vector::Vector ( unsigned  Length,
PBQPNum  InitVal 
)
inline

Construct a PBQP vector with initializer.

Definition at line 34 of file Math.h.

References llvm::Length.

◆ Vector() [3/4]

llvm::PBQP::Vector::Vector ( const Vector V)
inline

Copy construct a PBQP vector.

Definition at line 40 of file Math.h.

◆ Vector() [4/4]

llvm::PBQP::Vector::Vector ( Vector &&  V)
inline

Move construct a PBQP vector.

Definition at line 46 of file Math.h.

Member Function Documentation

◆ getLength()

unsigned llvm::PBQP::Vector::getLength ( ) const
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().

◆ minIndex()

unsigned llvm::PBQP::Vector::minIndex ( ) const
inline

Returns the index of the minimum value in this vector.

Definition at line 89 of file Math.h.

References assert().

◆ operator+=()

Vector & llvm::PBQP::Vector::operator+= ( const Vector V)
inline

Add another vector to this one.

Definition at line 80 of file Math.h.

References assert().

◆ operator==()

bool llvm::PBQP::Vector::operator== ( const Vector V) const
inline

Comparison operator.

Definition at line 52 of file Math.h.

References assert().

◆ operator[]() [1/2]

PBQPNum & llvm::PBQP::Vector::operator[] ( unsigned  Index)
inline

Element access.

Definition at line 66 of file Math.h.

References assert().

◆ operator[]() [2/2]

const PBQPNum & llvm::PBQP::Vector::operator[] ( unsigned  Index) const
inline

Const element access.

Definition at line 73 of file Math.h.

References assert().

Friends And Related Function Documentation

◆ hash_value

hash_code hash_value ( const Vector V)
friend

Return a hash_value for the given vector.

Definition at line 100 of file Math.h.


The documentation for this class was generated from the following file: