LLVM
15.0.0git
|
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... | |
void | appendToVector (SmallVectorImpl< uint64_t > &V) const |
Append the elements of this operand to V . More... | |
A lightweight wrapper around an expression operand.
TODO: Store arguments directly and change DIExpression to store a range of these.
Definition at line 2605 of file DebugInfoMetadata.h.
|
default |
Definition at line 2610 of file DebugInfoMetadata.h.
|
inline |
Append the elements of this operand to V
.
Definition at line 2630 of file DebugInfoMetadata.h.
References llvm::SmallVectorImpl< T >::append(), get(), and getSize().
Definition at line 2612 of file DebugInfoMetadata.h.
Referenced by appendToVector(), and llvm::DIExpression::isValid().
|
inline |
Get an argument to the operand.
Never returns the operand itself.
Definition at line 2620 of file DebugInfoMetadata.h.
References I.
Referenced by llvm::DwarfExpression::addExpression().
|
inline |
Definition at line 2622 of file DebugInfoMetadata.h.
References getSize().
|
inline |
unsigned DIExpression::ExprOperand::getSize | ( | ) | const |
Return the size of the operand.
Return the number of elements in the operand (1 + args).
Definition at line 1225 of file DebugInfoMetadata.cpp.
References llvm::dwarf::DW_OP_LLVM_arg, llvm::dwarf::DW_OP_LLVM_convert, llvm::dwarf::DW_OP_LLVM_entry_value, llvm::dwarf::DW_OP_LLVM_fragment, llvm::dwarf::DW_OP_LLVM_tag_offset, and getOp().
Referenced by appendToVector(), and getNumArgs().