OpenASIP
2.0
|
#include <InstructionElement.hh>
Public Member Functions | |
InstructionAnnotation (Word anId, const std::vector< Byte > &payload) | |
InstructionAnnotation (Word anId) | |
~InstructionAnnotation () | |
Word | id () const |
Byte | byte (Byte index) const |
const std::vector< Byte > & | payload () const |
void | addByte (Byte aByte) |
Byte | size () const |
Static Public Attributes | |
static const size_t | MAX_ANNOTATION_BYTES = 127 |
Maximum number of bytes that annotation may contain. More... | |
Private Attributes | |
Word | id_ |
Identifcation code of annotation. More... | |
std::vector< Byte > | payLoad_ |
Data of annotation. More... | |
Instruction annotation.
Inline annotations allow to argument an instruction element with additional application-dependent information without disrupting the normal work of application.
Definition at line 49 of file InstructionElement.hh.
TPEF::InstructionAnnotation::InstructionAnnotation | ( | Word | id, |
const std::vector< Byte > & | payload | ||
) |
Constructor.
id | The id of the annotation. |
payload | The payload data as a char vector. |
Definition at line 51 of file InstructionElement.cc.
TPEF::InstructionAnnotation::InstructionAnnotation | ( | Word | anId | ) |
TPEF::InstructionAnnotation::~InstructionAnnotation | ( | ) |
void TPEF::InstructionAnnotation::addByte | ( | Byte | aByte | ) |
Referenced by TPEF::TPEFCodeSectionReader::readAnnotations().
Referenced by TPEF::TPEFCodeSectionWriter::writeAnnotations().
Word TPEF::InstructionAnnotation::id | ( | ) | const |
const std::vector<Byte>& TPEF::InstructionAnnotation::payload | ( | ) | const |
Byte TPEF::InstructionAnnotation::size | ( | ) | const |
Referenced by TPEF::TPEFCodeSectionWriter::writeAnnotations().
|
private |
Identifcation code of annotation.
Definition at line 69 of file InstructionElement.hh.
|
static |
Maximum number of bytes that annotation may contain.
Maximum number of bytes in annotation.
Definition at line 65 of file InstructionElement.hh.
Referenced by InlineAsmParser::addDebugInfoToInlineAsmBB(), llvm::LLVMTCEBuilder::debugDataToAnnotations(), and TTAProgram::ProgramAnnotation::ProgramAnnotation().
|
private |
Data of annotation.
Definition at line 71 of file InstructionElement.hh.