Instruction Struct Reference

Instruction Struct Reference#

Rocprofiler SDK Developer API: rocprofiler::codeobj::disassembly::Instruction Struct Reference
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
rocprofiler::codeobj::disassembly::Instruction Struct Reference

#include "rocprofiler-sdk/amd_detail/rocprofiler-sdk-codeobj/code_printing.hpp"

+ Collaboration diagram for rocprofiler::codeobj::disassembly::Instruction:

Public Member Functions

 Instruction ()=default
 
 Instruction (std::string &&_inst, unsigned long _size)
 

Data Fields

std::string inst {}
 
std::string comment {}
 
uint64_t faddr {0}
 
uint64_t vaddr {0}
 
unsigned long size {0}
 
uint64_t ld_addr {0}
 
marker_id_t codeobj_id {0}
 

Detailed Description

Definition at line 49 of file code_printing.hpp.

Constructor & Destructor Documentation

◆ Instruction() [1/2]

rocprofiler::codeobj::disassembly::Instruction::Instruction ( )
default

◆ Instruction() [2/2]

rocprofiler::codeobj::disassembly::Instruction::Instruction ( std::string &&  _inst,
unsigned long  _size 
)
inline

Definition at line 52 of file code_printing.hpp.

53 : inst(std::move(_inst))
54 , size(_size)
55 {}

Field Documentation

◆ codeobj_id

marker_id_t rocprofiler::codeobj::disassembly::Instruction::codeobj_id {0}

Definition at line 62 of file code_printing.hpp.

62{0}; // Instruction code object load id, if from loaded codeobj

◆ comment

std::string rocprofiler::codeobj::disassembly::Instruction::comment {}

Definition at line 57 of file code_printing.hpp.

57{};

◆ faddr

uint64_t rocprofiler::codeobj::disassembly::Instruction::faddr {0}

Definition at line 58 of file code_printing.hpp.

58{0};

◆ inst

std::string rocprofiler::codeobj::disassembly::Instruction::inst {}

Definition at line 56 of file code_printing.hpp.

56{};

◆ ld_addr

uint64_t rocprofiler::codeobj::disassembly::Instruction::ld_addr {0}

Definition at line 61 of file code_printing.hpp.

61{0}; // Instruction load address, if from loaded codeobj

◆ size

unsigned long rocprofiler::codeobj::disassembly::Instruction::size {0}

Definition at line 60 of file code_printing.hpp.

60{0};

◆ vaddr

uint64_t rocprofiler::codeobj::disassembly::Instruction::vaddr {0}

Definition at line 59 of file code_printing.hpp.

59{0};

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