CGRA-ME
Public Member Functions | Public Attributes | Friends | List of all members
OpGraphOp Class Reference

#include <OpGraph.h>

Inheritance diagram for OpGraphOp:
OpGraphNode

Public Member Functions

 OpGraphOp (std::string name, int bitwidth)
 
 OpGraphOp (std::string name, int bitwidth, OpGraphOpCode opcode)
 
 OpGraphOp (std::string name, int bitwidth, OpGraphOpCode opcode, BitConfig *bitConfig)
 
 OpGraphOp (std::string name, int bitwidth, OpGraphOpCode opcode, std::int64_t constVal)
 
 OpGraphOp (std::string name, int bitwidth, OpGraphOpCode opcode, std::string cmpMode, bool cmp)
 
 ~OpGraphOp ()
 
 OpGraphOp (const OpGraphOp &)=delete
 
 OpGraphOp (OpGraphOp &&)=default
 
OpGraphOpoperator= (const OpGraphOp &)=delete
 
OpGraphOpoperator= (OpGraphOp &)=default
 
OpGraphOp propertyClone () const
 
OpGraphOp propertyClone (std::string new_name) const
 
std::int64_t getConstValue () const
 
std::string getCmpMode () const
 
std::string getMemName () const
 
auto getOpCode () const
 
bool operator== (const OpGraphOp &rhs) const
 
bool operator!= (const OpGraphOp &rhs) const
 
- Public Member Functions inherited from OpGraphNode
 OpGraphNode (std::string name)
 
virtual ~OpGraphNode ()
 
const std::string & getName () const
 
bool operator== (const OpGraphNode &rhs) const
 
bool operator!= (const OpGraphNode &rhs) const
 

Public Attributes

OpGraphOpCode opcode
 
int bitwidth = 32
 
std::int64_t constVal = 0
 
std::string cmpMode = ""
 
std::string memName = ""
 
std::vector< OpGraphVal * > input
 
OpGraphValoutput
 
BitConfigbitConfig = nullptr
 
- Public Attributes inherited from OpGraphNode
std::string name
 

Friends

std::ostream & operator<< (std::ostream &output, const OpGraphOp &op)
 
std::ostream & operator<< (std::ostream &os, const OpGraphOpCode &opcode)
 
std::istream & operator>> (std::istream &is, OpGraphOpCode &opcode)
 

Detailed Description

Definition at line 131 of file OpGraph.h.

Constructor & Destructor Documentation

◆ OpGraphOp() [1/7]

OpGraphOp::OpGraphOp ( std::string  name,
int  bitwidth 
)

◆ OpGraphOp() [2/7]

OpGraphOp::OpGraphOp ( std::string  name,
int  bitwidth,
OpGraphOpCode  opcode 
)

Definition at line 154 of file OpGraph.cpp.

◆ OpGraphOp() [3/7]

OpGraphOp::OpGraphOp ( std::string  name,
int  bitwidth,
OpGraphOpCode  opcode,
BitConfig bitConfig 
)

Definition at line 172 of file OpGraph.cpp.

◆ OpGraphOp() [4/7]

OpGraphOp::OpGraphOp ( std::string  name,
int  bitwidth,
OpGraphOpCode  opcode,
std::int64_t  constVal 
)

Definition at line 191 of file OpGraph.cpp.

◆ OpGraphOp() [5/7]

OpGraphOp::OpGraphOp ( std::string  name,
int  bitwidth,
OpGraphOpCode  opcode,
std::string  cmpMode,
bool  cmp 
)

Definition at line 205 of file OpGraph.cpp.

◆ ~OpGraphOp()

OpGraphOp::~OpGraphOp ( )

Definition at line 250 of file OpGraph.cpp.

◆ OpGraphOp() [6/7]

OpGraphOp::OpGraphOp ( const OpGraphOp )
delete

◆ OpGraphOp() [7/7]

OpGraphOp::OpGraphOp ( OpGraphOp &&  )
default

Member Function Documentation

◆ getCmpMode()

std::string OpGraphOp::getCmpMode ( ) const
inline

Definition at line 153 of file OpGraph.h.

◆ getConstValue()

std::int64_t OpGraphOp::getConstValue ( ) const
inline

Definition at line 152 of file OpGraph.h.

◆ getMemName()

std::string OpGraphOp::getMemName ( ) const
inline

Definition at line 154 of file OpGraph.h.

◆ getOpCode()

auto OpGraphOp::getOpCode ( ) const
inline

Definition at line 156 of file OpGraph.h.

◆ operator!=()

bool OpGraphOp::operator!= ( const OpGraphOp rhs) const
inline

Definition at line 170 of file OpGraph.h.

◆ operator=() [1/2]

OpGraphOp& OpGraphOp::operator= ( const OpGraphOp )
delete

◆ operator=() [2/2]

OpGraphOp& OpGraphOp::operator= ( OpGraphOp )
default

◆ operator==()

bool OpGraphOp::operator== ( const OpGraphOp rhs) const

Definition at line 235 of file OpGraph.cpp.

◆ propertyClone() [1/2]

OpGraphOp OpGraphOp::propertyClone ( ) const
inline

Make a copy that is the same, but with no connections

Definition at line 149 of file OpGraph.h.

◆ propertyClone() [2/2]

OpGraphOp OpGraphOp::propertyClone ( std::string  new_name) const

Definition at line 223 of file OpGraph.cpp.

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream& operator<< ( std::ostream &  os,
const OpGraphOpCode opcode 
)
friend

Definition at line 100 of file OpGraph.cpp.

◆ operator<< [2/2]

std::ostream& operator<< ( std::ostream &  output,
const OpGraphOp op 
)
friend

Definition at line 559 of file OpGraph.cpp.

◆ operator>>

std::istream& operator>> ( std::istream &  is,
OpGraphOpCode opcode 
)
friend

Definition at line 140 of file OpGraph.cpp.

Member Data Documentation

◆ bitConfig

BitConfig* OpGraphOp::bitConfig = nullptr

Definition at line 167 of file OpGraph.h.

◆ bitwidth

int OpGraphOp::bitwidth = 32

Definition at line 159 of file OpGraph.h.

◆ cmpMode

std::string OpGraphOp::cmpMode = ""

Definition at line 161 of file OpGraph.h.

◆ constVal

std::int64_t OpGraphOp::constVal = 0

Definition at line 160 of file OpGraph.h.

◆ input

std::vector<OpGraphVal*> OpGraphOp::input

Definition at line 164 of file OpGraph.h.

◆ memName

std::string OpGraphOp::memName = ""

Definition at line 162 of file OpGraph.h.

◆ opcode

OpGraphOpCode OpGraphOp::opcode

Definition at line 158 of file OpGraph.h.

◆ output

OpGraphVal* OpGraphOp::output

Definition at line 166 of file OpGraph.h.


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