LLVM 23.0.0git
llvm::PBQP::Vector Class Reference

PBQP Vector class. More...

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

Inheritance diagram for llvm::PBQP::Vector:
[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.
const PBQPNumbegin () const
const PBQPNumend () const
PBQPNumbegin ()
PBQPNumend ()
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.

Detailed Description

PBQP Vector class.

Definition at line 28 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 31 of file Math.h.

References llvm::Length.

Referenced by llvm::PBQP::MDVector< Metadata >::MDVector(), llvm::PBQP::MDVector< Metadata >::MDVector(), operator+=(), operator==(), Vector(), and Vector().

◆ 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 begin(), end(), and llvm::Length.

◆ Vector() [3/4]

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

Copy construct a PBQP vector.

Definition at line 39 of file Math.h.

References Vector().

◆ Vector() [4/4]

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

Move construct a PBQP vector.

Definition at line 42 of file Math.h.

References llvm::move(), and Vector().

Member Function Documentation

◆ begin() [1/2]

PBQPNum * llvm::PBQP::Vector::begin ( )
inline

Definition at line 47 of file Math.h.

◆ begin() [2/2]

const PBQPNum * llvm::PBQP::Vector::begin ( ) const
inline

Definition at line 45 of file Math.h.

Referenced by minIndex(), operator+=(), and Vector().

◆ end() [1/2]

PBQPNum * llvm::PBQP::Vector::end ( )
inline

Definition at line 48 of file Math.h.

◆ end() [2/2]

const PBQPNum * llvm::PBQP::Vector::end ( ) const
inline

Definition at line 46 of file Math.h.

Referenced by operator+=(), and Vector().

◆ getLength()

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

Return the length of the vector.

Definition at line 57 of file Math.h.

References assert().

Referenced by llvm::PBQP::applyR2(), 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 85 of file Math.h.

References assert(), begin(), and llvm::min_element().

◆ operator+=()

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

Add another vector to this one.

Definition at line 77 of file Math.h.

References assert(), begin(), end(), and Vector().

◆ operator==()

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

Comparison operator.

Definition at line 51 of file Math.h.

References assert(), llvm::equal(), and Vector().

◆ operator[]() [1/2]

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

Element access.

Definition at line 63 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 70 of file Math.h.

References assert().


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