LLVM 20.0.0git
|
An instruction consists of a DWARF CFI opcode and an optional sequence of operands. More...
#include "llvm/DebugInfo/DWARF/DWARFDebugFrame.h"
Public Member Functions | |
Instruction (uint8_t Opcode) | |
Expected< uint64_t > | getOperandAsUnsigned (const CFIProgram &CFIP, uint32_t OperandIdx) const |
Expected< int64_t > | getOperandAsSigned (const CFIProgram &CFIP, uint32_t OperandIdx) const |
Public Attributes | |
uint8_t | Opcode |
Operands | Ops |
std::optional< DWARFExpression > | Expression |
An instruction consists of a DWARF CFI opcode and an optional sequence of operands.
If it refers to an expression, then this expression has its own sequence of operations and operands handled separately by DWARFExpression.
Definition at line 415 of file DWARFDebugFrame.h.
|
inline |
Definition at line 416 of file DWARFDebugFrame.h.
llvm::Expected< int64_t > CFIProgram::Instruction::getOperandAsSigned | ( | const CFIProgram & | CFIP, |
uint32_t | OperandIdx | ||
) | const |
Definition at line 462 of file DWARFDebugFrame.cpp.
References llvm::createStringError(), llvm::dwarf::CFIProgram::dataAlign(), llvm::invalid_argument, llvm_unreachable, and llvm::dwarf::CFIProgram::MaxOperands.
llvm::Expected< uint64_t > CFIProgram::Instruction::getOperandAsUnsigned | ( | const CFIProgram & | CFIP, |
uint32_t | OperandIdx | ||
) | const |
Definition at line 417 of file DWARFDebugFrame.cpp.
References llvm::dwarf::CFIProgram::codeAlign(), llvm::createStringError(), llvm::invalid_argument, llvm_unreachable, llvm::dwarf::CFIProgram::MaxOperands, Opcode, and Ops.
std::optional<DWARFExpression> llvm::dwarf::CFIProgram::Instruction::Expression |
Definition at line 421 of file DWARFDebugFrame.h.
uint8_t llvm::dwarf::CFIProgram::Instruction::Opcode |
Definition at line 418 of file DWARFDebugFrame.h.
Referenced by getOperandAsUnsigned().
Operands llvm::dwarf::CFIProgram::Instruction::Ops |
Definition at line 419 of file DWARFDebugFrame.h.
Referenced by getOperandAsUnsigned().