LLVM 17.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. | |
uint64_t | getArg (unsigned I) const |
Get an argument to the operand. | |
unsigned | getNumArgs () const |
unsigned | getSize () const |
Return the size of the operand. | |
void | appendToVector (SmallVectorImpl< uint64_t > &V) const |
Append the elements of this operand to V . | |
A lightweight wrapper around an expression operand.
TODO: Store arguments directly and change DIExpression to store a range of these.
Definition at line 2668 of file DebugInfoMetadata.h.
|
default |
Definition at line 2673 of file DebugInfoMetadata.h.
|
inline |
Append the elements of this operand to V
.
Definition at line 2693 of file DebugInfoMetadata.h.
References llvm::SmallVectorImpl< T >::append(), get(), and getSize().
Definition at line 2675 of file DebugInfoMetadata.h.
Referenced by appendToVector().
Get an argument to the operand.
Never returns the operand itself.
Definition at line 2683 of file DebugInfoMetadata.h.
References I.
|
inline |
Definition at line 2685 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 1299 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().