LLVM 24.0.0git
llvm::FLInlinedCall Struct Reference

#include "llvm/IR/FunctionLocalMetadata.h"

Public Member Functions

 FLInlinedCall ()=default
 FLInlinedCall (FLIndex< FLSrcLoc > SrcLocIdx, FLIndex< FLInlinedCall > InlinedAtIdx, MDFunctionLocalContext *InlineeContext, bool Uniquable, uint16_t MaxAtomGroup=0)
MDFunctionLocalContext * getInlinee () const
uint16_t getNewAtomGroup ()
bool isEquivalent (const FLInlinedCall &Other) const
bool isInlined () const
 Returns true if the location of this FLInlinedCall is inlined.
FLInlinedCall getInlinedAt (const MDFunctionLocalContext *FLCtx) const
 Returns the FLInlinedCall that this call was inlined at; only valid if isInlined().

Public Attributes

FLIndex< FLSrcLoc > SrcLocIdx
FLIndex< FLInlinedCall > InlinedAtIdx
uint16_t MaxAtomGroup: 15
uint16_t Uniquable: 1
MDFunctionLocalContext * InlineeContext

Static Public Attributes

static constexpr uint16_t MaxAllowedAtomGroup = (1 << 13) - 1

Friends

hash_code hash_value (const FLInlinedCall &IC)

Detailed Description

Definition at line 93 of file FunctionLocalMetadata.h.

Constructor & Destructor Documentation

◆ FLInlinedCall() [1/2]

llvm::FLInlinedCall::FLInlinedCall ( )
default

Referenced by hash_value, and isEquivalent().

◆ FLInlinedCall() [2/2]

llvm::FLInlinedCall::FLInlinedCall ( FLIndex< FLSrcLoc > SrcLocIdx,
FLIndex< FLInlinedCall > InlinedAtIdx,
MDFunctionLocalContext * InlineeContext,
bool Uniquable,
uint16_t MaxAtomGroup = 0 )
inline

Member Function Documentation

◆ getInlinedAt()

FLInlinedCall llvm::FLInlinedCall::getInlinedAt ( const MDFunctionLocalContext * FLCtx) const
inline

Returns the FLInlinedCall that this call was inlined at; only valid if isInlined().

Definition at line 403 of file FunctionLocalMetadata.h.

◆ getInlinee()

MDFunctionLocalContext * llvm::FLInlinedCall::getInlinee ( ) const
inline

Definition at line 118 of file FunctionLocalMetadata.h.

References InlineeContext.

◆ getNewAtomGroup()

uint16_t llvm::FLInlinedCall::getNewAtomGroup ( )
inline

Definition at line 119 of file FunctionLocalMetadata.h.

References assert(), MaxAllowedAtomGroup, and MaxAtomGroup.

◆ isEquivalent()

bool llvm::FLInlinedCall::isEquivalent ( const FLInlinedCall & Other) const
inline

◆ isInlined()

bool llvm::FLInlinedCall::isInlined ( ) const
inline

Returns true if the location of this FLInlinedCall is inlined.

Definition at line 139 of file FunctionLocalMetadata.h.

References InlinedAtIdx.

Referenced by llvm::FLIndex< IndexedType >::DenseMapInfo< FLIndex< IndexedType > >.

◆ hash_value

Member Data Documentation

◆ InlinedAtIdx

◆ InlineeContext

MDFunctionLocalContext* llvm::FLInlinedCall::InlineeContext

Definition at line 107 of file FunctionLocalMetadata.h.

Referenced by FLInlinedCall(), getInlinee(), hash_value, and isEquivalent().

◆ MaxAllowedAtomGroup

uint16_t llvm::FLInlinedCall::MaxAllowedAtomGroup = (1 << 13) - 1
staticconstexpr

Definition at line 97 of file FunctionLocalMetadata.h.

Referenced by FLInlinedCall(), and getNewAtomGroup().

◆ MaxAtomGroup

uint16_t llvm::FLInlinedCall::MaxAtomGroup

◆ SrcLocIdx

FLIndex<FLSrcLoc> llvm::FLInlinedCall::SrcLocIdx

Definition at line 98 of file FunctionLocalMetadata.h.

Referenced by FLInlinedCall(), hash_value, and isEquivalent().

◆ Uniquable

uint16_t llvm::FLInlinedCall::Uniquable

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