LLVM 22.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/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.

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 48 of file DWARFCFIProgram.h.

◆ Opcode

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

Definition at line 45 of file DWARFCFIProgram.h.

Referenced by getOperandAsUnsigned().

◆ Ops

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

Definition at line 46 of file DWARFCFIProgram.h.

Referenced by getOperandAsUnsigned().


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