LLVM 24.0.0git
llvm::DIExpression::ExtractBitsOp Class Reference

A view of the DW_OP_LLVM_extract_bits_[sz]ext operations. More...

#include "llvm/IR/DebugInfoMetadata.h"

Inheritance diagram for llvm::DIExpression::ExtractBitsOp:
[legend]

Public Member Functions

uint64_t getOffsetInBits () const
 Return the extract offset in bits.
uint64_t getSizeInBits () const
 Return the extract size in bits.
LLVM_ABI bool isSigned () const
 Return whether the extracted value is sign-extended.
Public Member Functions inherited from llvm::DIExpression::ExprOperand
 ExprOperand ()=default
 ExprOperand (const uint64_t *Op)
 operator bool () const
const uint64_tget () const
uint64_t getOp () const
 Get the operand code.
bool is (uint64_t Opcode) const
 Return true if this is Opcode.
uint64_t getArg (unsigned I) const
 Get an argument to the operand.
unsigned getNumArgs () const
LLVM_ABI unsigned getSize () const
 Return the size of the operand.
LLVM_ABI bool isNonEmitting () const
 Return true if CodeGen handles this operand without adding bytes to the DWARF expression.
void appendToVector (SmallVectorImpl< uint64_t > &V) const
 Append the elements of this operand to V.

Static Public Member Functions

static LLVM_ABI bool classof (const ExprOperand *Op)

Friends

template<typename To, typename From, typename Enable>
struct llvm::CastInfo

Detailed Description

A view of the DW_OP_LLVM_extract_bits_[sz]ext operations.

Definition at line 3624 of file DebugInfoMetadata.h.

Member Function Documentation

◆ classof()

◆ getOffsetInBits()

uint64_t llvm::DIExpression::ExtractBitsOp::getOffsetInBits ( ) const
inline

Return the extract offset in bits.

Definition at line 3632 of file DebugInfoMetadata.h.

References llvm::DIExpression::ExprOperand::getArg().

◆ getSizeInBits()

uint64_t llvm::DIExpression::ExtractBitsOp::getSizeInBits ( ) const
inline

Return the extract size in bits.

Definition at line 3635 of file DebugInfoMetadata.h.

References llvm::DIExpression::ExprOperand::getArg().

◆ isSigned()

bool DIExpression::ExtractBitsOp::isSigned ( ) const

Return whether the extracted value is sign-extended.

Definition at line 1777 of file DebugInfoMetadata.cpp.

References llvm::dwarf::DW_OP_LLVM_extract_bits_sext, and llvm::DIExpression::ExprOperand::is().

◆ llvm::CastInfo

template<typename To, typename From, typename Enable>
friend struct llvm::CastInfo
friend

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