LLVM  7.0.0svn
Public Member Functions | List of all members
llvm::DIExpression::ExprOperand Class Reference

A lightweight wrapper around an expression operand. More...

#include "llvm/IR/DebugInfoMetadata.h"

Public Member Functions

 ExprOperand ()=default
 ExprOperand (const uint64_t *Op)
const uint64_t * get () const
uint64_t getOp () const
 Get the operand code. More...
uint64_t getArg (unsigned I) const
 Get an argument to the operand. More...
unsigned getNumArgs () const
unsigned getSize () const
 Return the size of the operand. More...

Detailed Description

A lightweight wrapper around an expression operand.

TODO: Store arguments directly and change DIExpression to store a range of these.

Definition at line 2283 of file DebugInfoMetadata.h.

Constructor & Destructor Documentation

◆ ExprOperand() [1/2]

llvm::DIExpression::ExprOperand::ExprOperand ( )

◆ ExprOperand() [2/2]

llvm::DIExpression::ExprOperand::ExprOperand ( const uint64_t *  Op)

Definition at line 2288 of file DebugInfoMetadata.h.

Member Function Documentation

◆ get()

const uint64_t* llvm::DIExpression::ExprOperand::get ( ) const

Definition at line 2290 of file DebugInfoMetadata.h.

Referenced by llvm::DIExpression::expr_op_iterator::getBase().

◆ getArg()

uint64_t llvm::DIExpression::ExprOperand::getArg ( unsigned  I) const

Get an argument to the operand.

Never returns the operand itself.

Definition at line 2298 of file DebugInfoMetadata.h.

◆ getNumArgs()

unsigned llvm::DIExpression::ExprOperand::getNumArgs ( ) const

Definition at line 2300 of file DebugInfoMetadata.h.

◆ getOp()

uint64_t llvm::DIExpression::ExprOperand::getOp ( ) const

Get the operand code.

Definition at line 2293 of file DebugInfoMetadata.h.

◆ getSize()

unsigned DIExpression::ExprOperand::getSize ( ) const

Return the size of the operand.

Return the number of elements in the operand (1 + args).

Definition at line 675 of file DebugInfoMetadata.cpp.

References llvm::dwarf::DW_OP_LLVM_fragment.

Referenced by llvm::DIExpression::expr_op_iterator::operator!=().

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