LLVM 18.0.0git
|
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 |
Holds the characteristics of one fragment of a larger variable.
Definition at line 2822 of file DebugInfoMetadata.h.
|
default |
|
inline |
Definition at line 2824 of file DebugInfoMetadata.h.
|
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 2832 of file DebugInfoMetadata.h.
References OffsetInBits, and SizeInBits.
Referenced by removeRedundantDbgLocsUsingBackwardScan().
|
inlinestatic |
Returns a zero-sized fragment if A and B don't intersect.
Definition at line 2835 of file DebugInfoMetadata.h.
Referenced by llvm::at::calculateFragmentIntersect().
|
inline |
Return the index of the first bit of the fragment.
Definition at line 2829 of file DebugInfoMetadata.h.
References OffsetInBits.
Referenced by removeRedundantDbgLocsUsingBackwardScan().
uint64_t llvm::DIExpression::FragmentInfo::OffsetInBits |
Definition at line 2827 of file DebugInfoMetadata.h.
Referenced by llvm::at::calculateFragmentIntersect(), llvm::DIExpression::convertToUndefExpression(), endInBits(), llvm::DbgVariableIntrinsic::getFragmentOrEntireVariable(), llvm::DenseMapInfo< DIExpression::FragmentInfo >::getHashValue(), migrateDebugInfo(), and startInBits().
uint64_t llvm::DIExpression::FragmentInfo::SizeInBits |
Definition at line 2826 of file DebugInfoMetadata.h.
Referenced by llvm::at::calculateFragmentIntersect(), llvm::DIExpression::convertToUndefExpression(), endInBits(), llvm::DbgVariableIntrinsic::getFragmentOrEntireVariable(), llvm::DenseMapInfo< DIExpression::FragmentInfo >::getHashValue(), and migrateDebugInfo().