class DIExpressionCursor

Declaration

class DIExpressionCursor { /* full declaration omitted */ };

Description

Holds a DIExpression and keeps track of how many operands have been consumed so far.

Declared at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h:37

Member Variables

private DIExpression::expr_op_iterator Start
private DIExpression::expr_op_iterator End

Method Overview

  • public DIExpressionCursor(const llvm::DIExpression * Expr)
  • public DIExpressionCursor(ArrayRef<uint64_t> Expr)
  • public DIExpressionCursor(const llvm::DIExpressionCursor &)
  • public DIExpression::expr_op_iterator begin() const
  • public void consume(unsigned int N)
  • public DIExpression::expr_op_iterator end() const
  • public Optional<DIExpression::FragmentInfo> getFragmentInfo() const
  • public bool operator bool() const
  • public Optional<DIExpression::ExprOperand> peek() const
  • public Optional<DIExpression::ExprOperand> peekNext() const
  • public Optional<DIExpression::ExprOperand> take()

Methods

DIExpressionCursor(const llvm::DIExpression* Expr)

Declared at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h:41

Parameters

const llvm::DIExpression* Expr

DIExpressionCursor(ArrayRef<uint64_t> Expr)

Declared at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h:50

Parameters

ArrayRef<uint64_t> Expr

DIExpressionCursor(
    const llvm::DIExpressionCursor&)

Declared at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h:53

Parameters

const llvm::DIExpressionCursor&

DIExpression::expr_op_iterator begin() const

Declared at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h:87

void consume(unsigned int N)

Description

Consume N operations.

Declared at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h:63

Parameters

unsigned int N

DIExpression::expr_op_iterator end() const

Declared at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h:88

Optional<DIExpression::FragmentInfo>
getFragmentInfo() const

Description

Retrieve the fragment information, if any.

Declared at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h:91

bool operator bool() const

Description

Determine whether there are any operations left in this expression.

Declared at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h:85

Optional<DIExpression::ExprOperand> peek() const

Description

Return the current operation.

Declared at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h:66

Optional<DIExpression::ExprOperand> peekNext()
    const

Description

Return the next operation.

Declared at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h:73

Optional<DIExpression::ExprOperand> take()

Description

Consume one operation.

Declared at: llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h:56