OpenASIP  2.0
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
TTAProgram::TerminalLaneIDImmediate Class Reference

#include <TerminalLaneIDImmediate.hh>

Inheritance diagram for TTAProgram::TerminalLaneIDImmediate:
Inheritance graph
Collaboration diagram for TTAProgram::TerminalLaneIDImmediate:
Collaboration graph

Public Member Functions

 TerminalLaneIDImmediate (SimValue value)
 
virtual ~TerminalLaneIDImmediate ()
 
virtual SimValue value () const
 
virtual Terminalcopy () const
 
virtual bool equals (const Terminal &other) const
 
virtual TCEString toString () const
 
- Public Member Functions inherited from TTAProgram::TerminalImmediate
 TerminalImmediate (SimValue value)
 
virtual ~TerminalImmediate ()
 
virtual bool isImmediate () const
 
- Public Member Functions inherited from TTAProgram::Terminal
 Terminal ()
 
virtual ~Terminal ()
 
virtual bool isAddress () const
 
virtual bool isInstructionAddress () const
 
virtual bool isImmediateRegister () const
 
virtual bool isGPR () const
 
virtual bool isFUPort () const
 
virtual bool isRA () const
 
virtual bool isBasicBlockReference () const
 
virtual bool isProgramOperationReference () const
 
virtual bool isCodeSymbolReference () const
 
virtual bool isUniversalMachineRegister () const
 
virtual Address address () const
 
virtual const InstructionReferenceinstructionReference () const
 
virtual InstructionReferenceinstructionReference ()
 
virtual const TTAMachine::RegisterFileregisterFile () const
 
virtual const TTAMachine::ImmediateUnitimmediateUnit () const
 
virtual const TTAMachine::FunctionUnitfunctionUnit () const
 
virtual const BasicBlockbasicBlock () const
 
virtual int index () const
 
virtual bool isOpcodeSetting () const
 
virtual bool isTriggering () const
 
virtual Operationoperation () const
 
virtual OperationhintOperation () const
 
virtual int operationIndex () const
 
virtual const TTAMachine::Portport () const
 
virtual void setIndex (int index)
 
virtual void setInstructionReference (InstructionReference ref)
 
bool operator== (const Terminal &other) const
 
- Public Member Functions inherited from TTAProgram::AnnotatedInstructionElement
 AnnotatedInstructionElement ()
 
 ~AnnotatedInstructionElement ()
 
void addAnnotation (const ProgramAnnotation &annotation)
 
void setAnnotation (const ProgramAnnotation &annotation)
 
ProgramAnnotation annotation (int index, ProgramAnnotation::Id id=ProgramAnnotation::ANN_UNDEF_ID) const
 
int annotationCount (ProgramAnnotation::Id id=ProgramAnnotation::ANN_UNDEF_ID) const
 
void removeAnnotations (ProgramAnnotation::Id id=ProgramAnnotation::ANN_UNDEF_ID)
 
bool hasAnnotations (ProgramAnnotation::Id id=ProgramAnnotation::ANN_UNDEF_ID) const
 
bool hasAnnotation (ProgramAnnotation::Id id, const TCEString &data) const
 
void copyAnnotationsFrom (const AnnotatedInstructionElement &other)
 

Protected Attributes

SimValue value_
 Value of the inline immediate. More...
 
- Protected Attributes inherited from TTAProgram::TerminalImmediate
SimValue value_
 Value of the inline immediate. More...
 

Private Member Functions

TerminalLaneIDImmediateoperator= (const TerminalLaneIDImmediate &)
 Assignment not allowed. More...
 

Detailed Description

Represents a special inline immediate that is fixed to the lane id of the scheduled move in a clustered/SMMT machine.

Definition at line 45 of file TerminalLaneIDImmediate.hh.

Constructor & Destructor Documentation

◆ TerminalLaneIDImmediate()

TTAProgram::TerminalLaneIDImmediate::TerminalLaneIDImmediate ( SimValue  lane)

The constructor.

Parameters
valueThe value of the inline immediate.

Definition at line 46 of file TerminalLaneIDImmediate.cc.

46  :
47  TerminalImmediate(lane) {
48 }

Referenced by copy().

◆ ~TerminalLaneIDImmediate()

TTAProgram::TerminalLaneIDImmediate::~TerminalLaneIDImmediate ( )
virtual

The destructor.

Definition at line 53 of file TerminalLaneIDImmediate.cc.

53  {
54 }

Member Function Documentation

◆ copy()

Terminal * TTAProgram::TerminalLaneIDImmediate::copy ( ) const
virtual

Creates an exact copy of the terminal and returns it.

Returns
A copy of the terminal.

Reimplemented from TTAProgram::TerminalImmediate.

Definition at line 73 of file TerminalLaneIDImmediate.cc.

73  {
74  return new TerminalLaneIDImmediate(value_);
75 }

References TerminalLaneIDImmediate(), and value_.

Here is the call graph for this function:

◆ equals()

bool TTAProgram::TerminalLaneIDImmediate::equals ( const Terminal other) const
virtual

Checks if terminals are equal.

Parameters
otherTerminal to compare.
Returns
true if terminals are equal.

Reimplemented from TTAProgram::TerminalImmediate.

Definition at line 84 of file TerminalLaneIDImmediate.cc.

84  {
85 
86  if (dynamic_cast<const TerminalLaneIDImmediate*>(&other) ==
87  NULL) {
88  return false;
89  }
90  return value() == other.value();
91 }

References value(), and TTAProgram::Terminal::value().

Here is the call graph for this function:

◆ operator=()

TerminalLaneIDImmediate& TTAProgram::TerminalLaneIDImmediate::operator= ( const TerminalLaneIDImmediate )
private

Assignment not allowed.

◆ toString()

TCEString TTAProgram::TerminalLaneIDImmediate::toString ( ) const
virtual

Reimplemented from TTAProgram::TerminalImmediate.

Definition at line 94 of file TerminalLaneIDImmediate.cc.

94  {
95  DisassemblyImmediate* disasm =
97  TCEString dis = disasm->toString();
98  delete disasm;
99  return dis;
100 }

References POMDisassembler::createInlineImmediate(), and DisassemblyImmediate::toString().

Here is the call graph for this function:

◆ value()

SimValue TTAProgram::TerminalLaneIDImmediate::value ( ) const
virtual

Returns the value of the inline immediate.

Returns
The value of the inline immediate.
Exceptions
WrongSubclassnever.

Reimplemented from TTAProgram::TerminalImmediate.

Definition at line 63 of file TerminalLaneIDImmediate.cc.

63  {
64  return value_;
65 }

References value_.

Referenced by equals().

Member Data Documentation

◆ value_

SimValue TTAProgram::TerminalLaneIDImmediate::value_
protected

Value of the inline immediate.

Definition at line 63 of file TerminalLaneIDImmediate.hh.

Referenced by copy(), and value().


The documentation for this class was generated from the following files:
DisassemblyImmediate::toString
virtual std::string toString() const
Definition: DisassemblyImmediate.cc:61
TTAProgram::TerminalLaneIDImmediate::value_
SimValue value_
Value of the inline immediate.
Definition: TerminalLaneIDImmediate.hh:63
TTAProgram::TerminalImmediate::TerminalImmediate
TerminalImmediate(SimValue value)
Definition: TerminalImmediate.cc:48
POMDisassembler::createInlineImmediate
static DisassemblyImmediate * createInlineImmediate(const TTAProgram::Terminal &terminal, bool signExtend)
Definition: POMDisassembler.cc:296
TTAProgram::TerminalLaneIDImmediate::TerminalLaneIDImmediate
TerminalLaneIDImmediate(SimValue value)
Definition: TerminalLaneIDImmediate.cc:46
DisassemblyImmediate
Definition: DisassemblyImmediate.hh:42
TTAProgram::TerminalLaneIDImmediate::value
virtual SimValue value() const
Definition: TerminalLaneIDImmediate.cc:63
TCEString
Definition: TCEString.hh:53