LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::DIExpression::expr_op_iterator Class Reference

An iterator for expression operands. More...

#include "llvm/IR/DebugInfoMetadata.h"

Public Types

using iterator_category = std::input_iterator_tag
 
using value_type = ExprOperand
 
using difference_type = std::ptrdiff_t
 
using pointer = value_type *
 
using reference = value_type &
 

Public Member Functions

 expr_op_iterator ()=default
 
 expr_op_iterator (element_iterator I)
 
element_iterator getBase () const
 
const ExprOperandoperator* () const
 
const ExprOperandoperator-> () const
 
expr_op_iteratoroperator++ ()
 
expr_op_iterator operator++ (int)
 
expr_op_iterator getNext () const
 Get the next iterator.
 
bool operator== (const expr_op_iterator &X) const
 
bool operator!= (const expr_op_iterator &X) const
 

Detailed Description

An iterator for expression operands.

Definition at line 2851 of file DebugInfoMetadata.h.

Member Typedef Documentation

◆ difference_type

Definition at line 2857 of file DebugInfoMetadata.h.

◆ iterator_category

Definition at line 2855 of file DebugInfoMetadata.h.

◆ pointer

Definition at line 2858 of file DebugInfoMetadata.h.

◆ reference

Definition at line 2859 of file DebugInfoMetadata.h.

◆ value_type

Definition at line 2856 of file DebugInfoMetadata.h.

Constructor & Destructor Documentation

◆ expr_op_iterator() [1/2]

llvm::DIExpression::expr_op_iterator::expr_op_iterator ( )
default

Referenced by getNext().

◆ expr_op_iterator() [2/2]

llvm::DIExpression::expr_op_iterator::expr_op_iterator ( element_iterator  I)
inlineexplicit

Definition at line 2862 of file DebugInfoMetadata.h.

Member Function Documentation

◆ getBase()

element_iterator llvm::DIExpression::expr_op_iterator::getBase ( ) const
inline

Definition at line 2864 of file DebugInfoMetadata.h.

Referenced by operator!=(), and operator==().

◆ getNext()

expr_op_iterator llvm::DIExpression::expr_op_iterator::getNext ( ) const
inline

Get the next iterator.

std::next() doesn't work because this is technically an input_iterator, but it's a perfectly valid operation. This is an accessor to provide the same functionality.

Definition at line 2883 of file DebugInfoMetadata.h.

References expr_op_iterator().

Referenced by llvm::DIExpressionCursor::peekNextN().

◆ operator!=()

bool llvm::DIExpression::expr_op_iterator::operator!= ( const expr_op_iterator X) const
inline

Definition at line 2888 of file DebugInfoMetadata.h.

References getBase(), and X.

◆ operator*()

const ExprOperand & llvm::DIExpression::expr_op_iterator::operator* ( ) const
inline

Definition at line 2865 of file DebugInfoMetadata.h.

◆ operator++() [1/2]

expr_op_iterator & llvm::DIExpression::expr_op_iterator::operator++ ( )
inline

Definition at line 2868 of file DebugInfoMetadata.h.

◆ operator++() [2/2]

expr_op_iterator llvm::DIExpression::expr_op_iterator::operator++ ( int  )
inline

Definition at line 2872 of file DebugInfoMetadata.h.

References T.

◆ operator->()

const ExprOperand * llvm::DIExpression::expr_op_iterator::operator-> ( ) const
inline

Definition at line 2866 of file DebugInfoMetadata.h.

◆ operator==()

bool llvm::DIExpression::expr_op_iterator::operator== ( const expr_op_iterator X) const
inline

Definition at line 2885 of file DebugInfoMetadata.h.

References getBase(), and X.


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