LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::DbgVariableFragmentInfo Struct Reference

#include "llvm/IR/DbgVariableFragmentInfo.h"

Public Member Functions

 DbgVariableFragmentInfo ()=default
 
 DbgVariableFragmentInfo (uint64_t SizeInBits, uint64_t OffsetInBits)
 
uint64_t startInBits () const
 Return the index of the first bit of the fragment.
 
uint64_t endInBits () const
 Return the index of the bit after the end of the fragment, e.g.
 

Static Public Member Functions

static DbgVariableFragmentInfo intersect (DbgVariableFragmentInfo A, DbgVariableFragmentInfo B)
 Returns a zero-sized fragment if A and B don't intersect.
 

Public Attributes

uint64_t SizeInBits
 
uint64_t OffsetInBits
 

Detailed Description

Definition at line 18 of file DbgVariableFragmentInfo.h.

Constructor & Destructor Documentation

◆ DbgVariableFragmentInfo() [1/2]

llvm::DbgVariableFragmentInfo::DbgVariableFragmentInfo ( )
default

Referenced by intersect().

◆ DbgVariableFragmentInfo() [2/2]

llvm::DbgVariableFragmentInfo::DbgVariableFragmentInfo ( uint64_t  SizeInBits,
uint64_t  OffsetInBits 
)
inline

Definition at line 20 of file DbgVariableFragmentInfo.h.

Member Function Documentation

◆ endInBits()

uint64_t llvm::DbgVariableFragmentInfo::endInBits ( ) const
inline

Return the index of the bit after the end of the fragment, e.g.

for fragment offset=16 and size=32 return their sum, 48.

Definition at line 28 of file DbgVariableFragmentInfo.h.

References OffsetInBits, and SizeInBits.

Referenced by removeRedundantDbgLocsUsingBackwardScan().

◆ intersect()

static DbgVariableFragmentInfo llvm::DbgVariableFragmentInfo::intersect ( DbgVariableFragmentInfo  A,
DbgVariableFragmentInfo  B 
)
inlinestatic

Returns a zero-sized fragment if A and B don't intersect.

Definition at line 31 of file DbgVariableFragmentInfo.h.

References A, B, and DbgVariableFragmentInfo().

Referenced by llvm::DIExpression::calculateFragmentIntersect().

◆ startInBits()

uint64_t llvm::DbgVariableFragmentInfo::startInBits ( ) const
inline

Return the index of the first bit of the fragment.

Definition at line 25 of file DbgVariableFragmentInfo.h.

References OffsetInBits.

Referenced by removeRedundantDbgLocsUsingBackwardScan().

Member Data Documentation

◆ OffsetInBits

uint64_t llvm::DbgVariableFragmentInfo::OffsetInBits

◆ SizeInBits

uint64_t llvm::DbgVariableFragmentInfo::SizeInBits

The documentation for this struct was generated from the following file: