LLVM  8.0.1
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. More...
 
 Vector (unsigned Length, PBQPNum InitVal)
 Construct a PBQP vector with initializer. More...
 
 Vector (const Vector &V)
 Copy construct a PBQP vector. More...
 
 Vector (Vector &&V)
 Move construct a PBQP vector. More...
 
bool operator== (const Vector &V) const
 Comparison operator. More...
 
unsigned getLength () const
 Return the length of the vector. More...
 
PBQPNumoperator[] (unsigned Index)
 Element access. More...
 
const PBQPNumoperator[] (unsigned Index) const
 Const element access. More...
 
Vectoroperator+= (const Vector &V)
 Add another vector to this one. More...
 
unsigned minIndex () const
 Returns the index of the minimum value in this vector. More...
 

Friends

hash_code hash_value (const Vector &)
 Return a hash_value for the given vector. More...
 

Detailed Description

PBQP Vector class.

Definition at line 26 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.

◆ Vector() [2/4]

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

Construct a PBQP vector with initializer.

Definition at line 35 of file Math.h.

◆ Vector() [3/4]

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

Copy construct a PBQP vector.

Definition at line 41 of file Math.h.

References llvm::copy().

◆ Vector() [4/4]

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

Move construct a PBQP vector.

Definition at line 47 of file Math.h.

Member Function Documentation

◆ getLength()

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

Return the length of the vector.

Definition at line 61 of file Math.h.

References assert().

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

References assert(), and llvm::transform().

◆ operator==()

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

Comparison operator.

Definition at line 53 of file Math.h.

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

◆ operator[]() [1/2]

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

Element access.

Definition at line 67 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 74 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 101 of file Math.h.

Referenced by llvm::PBQP::hash_value().


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