LLVM 22.0.0git
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/LowLevel/DWARFCFIProgram.h"

Public Member Functions

 Instruction (uint8_t Opcode)
LLVM_ABI Expected< uint64_tgetOperandAsUnsigned (const CFIProgram &CFIP, uint32_t OperandIdx) const
LLVM_ABI 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 42 of file DWARFCFIProgram.h.

Constructor & Destructor Documentation

◆ Instruction()

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

Definition at line 43 of file DWARFCFIProgram.h.

References Opcode.

Member Function Documentation

◆ getOperandAsSigned()

◆ getOperandAsUnsigned()

Member Data Documentation

◆ Expression

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

Definition at line 48 of file DWARFCFIProgram.h.

◆ Opcode

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

Definition at line 45 of file DWARFCFIProgram.h.

Referenced by getOperandAsSigned(), getOperandAsUnsigned(), and Instruction().

◆ Ops

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

Definition at line 46 of file DWARFCFIProgram.h.

Referenced by getOperandAsSigned(), and getOperandAsUnsigned().


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