Fennel: InstructionSignature Class Reference (original) (raw)
#include <[InstructionSignature.h](InstructionSignature%5F8h-source.html)>
| Public Member Functions | |
|---|---|
| InstructionSignature (string const &name) | |
| InstructionSignature (string const &name, vector< StandardTypeDescriptorOrdinal > const &operands) | |
| InstructionSignature (string const &name, vector< RegisterReference * > const &operands) | |
| InstructionSignature (string const &name, TProgramCounter pc, vector< StandardTypeDescriptorOrdinal > const &operands) | |
| InstructionSignature (string const &name, TProgramCounter pc, vector< RegisterReference * > const &operands) | |
| string | compute () const |
| string | getName () const |
| RegisterReference * | operator[] (uint index) const |
| uint | size () const |
| TProgramCounter | getPc () const |
| Static Public Member Functions | |
| static vector< StandardTypeDescriptorOrdinal > | typeVector (bool(*typeFunction)(StandardTypeDescriptorOrdinal)) |
| Returns a vector that contains all types that match a given StandardTypeDescriptor::function(). | |
| Private Member Functions | |
| void | registersToTypes () |
| Private Attributes | |
| string | name |
| vector< StandardTypeDescriptorOrdinal > | types |
| vector< RegisterReference * > | registers |
| bool | hasRegisters |
| TProgramCounter | pc |
| bool | hasPc |
Detailed Description
Definition at line 37 of file InstructionSignature.h.
Constructor & Destructor Documentation
| InstructionSignature::InstructionSignature | ( | string const & | name | ) | [explicit] |
|---|
| InstructionSignature::InstructionSignature | ( | string const & | name, |
|---|---|---|---|
| vector< RegisterReference * > const & | operands | ||
| ) | [explicit] |
Member Function Documentation
| string InstructionSignature::compute | ( | | ) | const | | ------------------------------------ | - | | - | ----- |
| string InstructionSignature::getName | ( | | ) | const | | ------------------------------------ | - | | - | ----- |
| uint InstructionSignature::size | ( | | ) | const | | -------------------------------------------------------------------------------------------- | - | | - | ----- |
Definition at line 121 of file InstructionSignature.cpp.
References types.
Referenced by compute(), RaiseInstruction::create(), ReturnInstruction::create(), PointerToNull< PTR_TYPE >::create(), PointerRef< PTR_TYPE >::create(), PointerMove< PTR_TYPE >::create(), PointerSub< PTR_TYPE >::create(), PointerAdd< PTR_TYPE >::create(), PointerPutSize< PTR_TYPE >::create(), NativeToNull< TMPLT >::create(), NativeRef< TMPLT >::create(), NativeMove< TMPLT >::create(), NativeRound< TMPLT >::create(), NativeNeg< TMPLT >::create(), NativeDiv< TMPLT >::create(), NativeMul< TMPLT >::create(), NativeSub< TMPLT >::create(), NativeAdd< TMPLT >::create(), JumpNotNull::create(), JumpNull::create(), JumpFalse::create(), JumpTrue::create(), Jump::create(), PointerGetMaxSize< PTR_TYPE >::create(), PointerGetSize< PTR_TYPE >::create(), IntegralNativeShiftRight< TMPLT >::create(), IntegralNativeShiftLeft< TMPLT >::create(), IntegralNativeOr< TMPLT >::create(), IntegralNativeAnd< TMPLT >::create(), IntegralNativeMod< TMPLT >::create(), CastCast< RESULT_T, SOURCE_T >::create(), BoolPointerIsNotNull< PTR_TYPE >::create(), BoolPointerIsNull< PTR_TYPE >::create(), BoolPointerLessEqual< PTR_TYPE >::create(), BoolPointerLess< PTR_TYPE >::create(), BoolPointerGreaterEqual< PTR_TYPE >::create(), BoolPointerGreater< PTR_TYPE >::create(), BoolPointerNotEqual< PTR_TYPE >::create(), BoolPointerEqual< PTR_TYPE >::create(), BoolNativeIsNotNull< TMPLT >::create(), BoolNativeIsNull< TMPLT >::create(), BoolNativeLessEqual< TMPLT >::create(), BoolNativeLess< TMPLT >::create(), BoolNativeGreaterEqual< TMPLT >::create(), BoolNativeGreater< TMPLT >::create(), BoolNativeNotEqual< TMPLT >::create(), BoolNativeEqual< TMPLT >::create(), BoolToNull::create(), BoolIsNotNull::create(), BoolIsNull::create(), BoolLessEqual::create(), BoolLess::create(), BoolGreaterEqual::create(), BoolGreater::create(), BoolNotEqual::create(), BoolEqual::create(), BoolIsNot::create(), BoolIs::create(), BoolRef::create(), BoolMove::create(), BoolNot::create(), BoolAnd::create(), and BoolOr::create().
00122 { 00123 return types.size(); 00124 }
Returns a vector that contains all types that match a given StandardTypeDescriptor::function().
Definition at line 134 of file InstructionSignature.cpp.
References STANDARD_TYPE_END_NO_UNICODE, STANDARD_TYPE_INT_8, STANDARD_TYPE_MIN, and STANDARD_TYPE_VARBINARY.
Referenced by PointerPointerInstructionRegister::registerInstructions(), PointerIntegralInstructionRegister::registerInstructions(), NativeNativeInstructionRegister::registerInstructions(), IntegralPointerInstructionRegister::registerInstructions(), IntegralNativeInstructionRegister::registerInstructions(), CastInstructionRegister::registerInstructions(), BoolPointerInstructionRegister::registerInstructions(), and BoolNativeInstructionRegister::registerInstructions().
| void InstructionSignature::registersToTypes | ( | | ) | [private] | | ------------------------------------------- | - | | - | ----------- |
Member Data Documentation
The documentation for this class was generated from the following files:
- /home/pub/open/dev/fennel/calculator/InstructionSignature.h
- /home/pub/open/dev/fennel/calculator/InstructionSignature.cpp
