LLVM  5.0.0
Public Member Functions | List of all members
llvm::DIExpressionCursor Class Reference

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

#include "CodeGen/AsmPrinter/DwarfExpression.h"

Public Member Functions

 DIExpressionCursor (const DIExpression *Expr)
 
 DIExpressionCursor (ArrayRef< uint64_t > Expr)
 
 DIExpressionCursor (const DIExpressionCursor &C)
 
Optional
< DIExpression::ExprOperand > 
take ()
 Consume one operation. More...
 
void consume (unsigned N)
 Consume N operations. More...
 
Optional
< DIExpression::ExprOperand > 
peek () const
 Return the current operation. More...
 
Optional
< DIExpression::ExprOperand > 
peekNext () const
 Return the next operation. More...
 
 operator bool () const
 Determine whether there are any operations left in this expression. More...
 
DIExpression::expr_op_iterator begin () const
 
DIExpression::expr_op_iterator end () const
 
Optional
< DIExpression::FragmentInfo > 
getFragmentInfo () const
 Retrieve the fragment information, if any. More...
 

Detailed Description

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

Definition at line 30 of file DwarfExpression.h.

Constructor & Destructor Documentation

llvm::DIExpressionCursor::DIExpressionCursor ( const DIExpression *  Expr)
inline
llvm::DIExpressionCursor::DIExpressionCursor ( ArrayRef< uint64_t >  Expr)
inline

Definition at line 42 of file DwarfExpression.h.

llvm::DIExpressionCursor::DIExpressionCursor ( const DIExpressionCursor &  C)
inline

Definition at line 45 of file DwarfExpression.h.

Member Function Documentation

DIExpression::expr_op_iterator llvm::DIExpressionCursor::begin ( ) const
inline

Definition at line 78 of file DwarfExpression.h.

Referenced by llvm::DwarfExpression::addMachineRegExpression().

void llvm::DIExpressionCursor::consume ( unsigned  N)
inline

Consume N operations.

Definition at line 56 of file DwarfExpression.h.

Referenced by llvm::DwarfExpression::addMachineRegExpression().

DIExpression::expr_op_iterator llvm::DIExpressionCursor::end ( ) const
inline

Definition at line 79 of file DwarfExpression.h.

Referenced by llvm::DwarfExpression::addMachineRegExpression().

Optional<DIExpression::FragmentInfo> llvm::DIExpressionCursor::getFragmentInfo ( ) const
inline

Retrieve the fragment information, if any.

Definition at line 82 of file DwarfExpression.h.

References llvm::DIExpression::getFragmentInfo().

Referenced by llvm::DwarfExpression::addMachineRegExpression().

llvm::DIExpressionCursor::operator bool ( ) const
inline

Determine whether there are any operations left in this expression.

Definition at line 77 of file DwarfExpression.h.

Optional<DIExpression::ExprOperand> llvm::DIExpressionCursor::peek ( ) const
inline

Return the current operation.

Definition at line 59 of file DwarfExpression.h.

References llvm::None.

Referenced by llvm::DwarfExpression::addMachineRegExpression().

Optional<DIExpression::ExprOperand> llvm::DIExpressionCursor::peekNext ( ) const
inline

Return the next operation.

Definition at line 66 of file DwarfExpression.h.

References llvm::DIExpression::expr_op_iterator::getNext(), and llvm::None.

Referenced by llvm::DwarfExpression::addMachineRegExpression().

Optional<DIExpression::ExprOperand> llvm::DIExpressionCursor::take ( )
inline

Consume one operation.

Definition at line 49 of file DwarfExpression.h.

References llvm::None.

Referenced by llvm::DwarfExpression::addMachineRegExpression(), and isMemoryLocation().


The documentation for this class was generated from the following file: