LLVM 20.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 2820 of file DebugInfoMetadata.h.
|
default |
Definition at line 2825 of file DebugInfoMetadata.h.
|
inline |
Append the elements of this operand to V
.
Definition at line 2845 of file DebugInfoMetadata.h.
Definition at line 2827 of file DebugInfoMetadata.h.
Referenced by appendToVector().
Get an argument to the operand.
Never returns the operand itself.
Definition at line 2835 of file DebugInfoMetadata.h.
References I.
|
inline |
Definition at line 2837 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 1402 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_extract_bits_sext, llvm::dwarf::DW_OP_LLVM_extract_bits_zext, llvm::dwarf::DW_OP_LLVM_fragment, llvm::dwarf::DW_OP_LLVM_tag_offset, and getOp().
Referenced by appendToVector(), and getNumArgs().