LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::dwarf::CFIProgram::Instruction Struct Reference

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_tgetOperandAsUnsigned (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< DWARFExpressionExpression
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Instruction()

llvm::dwarf::CFIProgram::Instruction::Instruction ( uint8_t  Opcode)
inline

Definition at line 416 of file DWARFDebugFrame.h.

Member Function Documentation

◆ getOperandAsSigned()

llvm::Expected< int64_t > CFIProgram::Instruction::getOperandAsSigned ( const CFIProgram CFIP,
uint32_t  OperandIdx 
) const

◆ getOperandAsUnsigned()

llvm::Expected< uint64_t > CFIProgram::Instruction::getOperandAsUnsigned ( const CFIProgram CFIP,
uint32_t  OperandIdx 
) const

Member Data Documentation

◆ Expression

std::optional<DWARFExpression> llvm::dwarf::CFIProgram::Instruction::Expression

Definition at line 421 of file DWARFDebugFrame.h.

◆ Opcode

uint8_t llvm::dwarf::CFIProgram::Instruction::Opcode

Definition at line 418 of file DWARFDebugFrame.h.

Referenced by getOperandAsUnsigned().

◆ Ops

Operands llvm::dwarf::CFIProgram::Instruction::Ops

Definition at line 419 of file DWARFDebugFrame.h.

Referenced by getOperandAsUnsigned().


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