LLVM  14.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"

Collaboration diagram for llvm::dwarf::CFIProgram::Instruction:
Collaboration graph
[legend]

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
 
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 411 of file DWARFDebugFrame.h.

Constructor & Destructor Documentation

◆ Instruction()

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

Definition at line 412 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

Optional<DWARFExpression> llvm::dwarf::CFIProgram::Instruction::Expression

Definition at line 417 of file DWARFDebugFrame.h.

◆ Opcode

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

Definition at line 414 of file DWARFDebugFrame.h.

Referenced by getOperandAsUnsigned().

◆ Ops

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

Definition at line 415 of file DWARFDebugFrame.h.

Referenced by getOperandAsUnsigned().


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