LLVM 19.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::DIExpression::FragmentInfo Struct Reference

Holds the characteristics of one fragment of a larger variable. More...

#include "llvm/IR/DebugInfoMetadata.h"

Public Member Functions

 FragmentInfo ()=default
 
 FragmentInfo (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 DIExpression::FragmentInfo intersect (DIExpression::FragmentInfo A, DIExpression::FragmentInfo B)
 Returns a zero-sized fragment if A and B don't intersect.
 

Public Attributes

uint64_t SizeInBits
 
uint64_t OffsetInBits
 

Detailed Description

Holds the characteristics of one fragment of a larger variable.

Definition at line 2878 of file DebugInfoMetadata.h.

Constructor & Destructor Documentation

◆ FragmentInfo() [1/2]

llvm::DIExpression::FragmentInfo::FragmentInfo ( )
default

◆ FragmentInfo() [2/2]

llvm::DIExpression::FragmentInfo::FragmentInfo ( uint64_t  SizeInBits,
uint64_t  OffsetInBits 
)
inline

Definition at line 2880 of file DebugInfoMetadata.h.

Member Function Documentation

◆ endInBits()

uint64_t llvm::DIExpression::FragmentInfo::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 2888 of file DebugInfoMetadata.h.

References OffsetInBits, and SizeInBits.

Referenced by removeRedundantDbgLocsUsingBackwardScan().

◆ intersect()

static DIExpression::FragmentInfo llvm::DIExpression::FragmentInfo::intersect ( DIExpression::FragmentInfo  A,
DIExpression::FragmentInfo  B 
)
inlinestatic

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

Definition at line 2891 of file DebugInfoMetadata.h.

References A, and B.

Referenced by calculateFragmentIntersectImpl().

◆ startInBits()

uint64_t llvm::DIExpression::FragmentInfo::startInBits ( ) const
inline

Return the index of the first bit of the fragment.

Definition at line 2885 of file DebugInfoMetadata.h.

References OffsetInBits.

Referenced by removeRedundantDbgLocsUsingBackwardScan().

Member Data Documentation

◆ OffsetInBits

uint64_t llvm::DIExpression::FragmentInfo::OffsetInBits

◆ SizeInBits

uint64_t llvm::DIExpression::FragmentInfo::SizeInBits

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