|
LLVM 24.0.0git
|
Small wrapper class for an FLMD index, which may be "no index". More...
#include "llvm/IR/FunctionLocalMetadata.h"
Public Types | |
| using | IndexType = typename detail::HasFLIndex<IndexedType>::IndexType |
Public Member Functions | |
| FLIndex () | |
| FLIndex (std::nullopt_t) | |
| FLIndex (IndexType InIndex) | |
| operator bool () const | |
| IndexType | get () const |
| bool | operator== (const FLIndex &Other) const |
| bool | operator!= (const FLIndex &Other) const |
| IndexType | asRaw () const |
Static Public Member Functions | |
| static FLIndex | fromRaw (IndexType RawIndex) |
Friends | |
| struct | DenseMapInfo< FLIndex< IndexedType > > |
| hash_code | hash_value (const FLIndex< IndexedType > &Idx) |
Small wrapper class for an FLMD index, which may be "no index".
Should be checked to see if value is present before using, otherwise the implicit/explicit index value will be invalid. Internally uses 0 as the "no index" value, and stores the internal index value as the actual index + 1, subtracting to get the real index.
Definition at line 51 of file FunctionLocalMetadata.h.
| using llvm::FLIndex< IndexedType >::IndexType = typename detail::HasFLIndex<IndexedType>::IndexType |
Definition at line 53 of file FunctionLocalMetadata.h.
|
inline |
Definition at line 60 of file FunctionLocalMetadata.h.
Referenced by fromRaw(), hash_value, operator!=(), and operator==().
|
inline |
Definition at line 61 of file FunctionLocalMetadata.h.
|
inline |
Definition at line 62 of file FunctionLocalMetadata.h.
References assert().
|
inline |
Definition at line 71 of file FunctionLocalMetadata.h.
|
inlinestatic |
Definition at line 72 of file FunctionLocalMetadata.h.
References FLIndex().
|
inline |
Definition at line 67 of file FunctionLocalMetadata.h.
Referenced by llvm::MDFunctionLocalContext::getAtomGroupWaterline(), llvm::MDFunctionLocalContext::getNewAtomGroup(), llvm::MDFunctionLocalContext::getScope(), llvm::MDFunctionLocalContext::getSrcLoc(), and llvm::MDFunctionLocalContext::updateAtomGroupWaterline().
|
inline |
Definition at line 66 of file FunctionLocalMetadata.h.
|
inline |
Definition at line 69 of file FunctionLocalMetadata.h.
References FLIndex(), and llvm::Other.
|
inline |
Definition at line 68 of file FunctionLocalMetadata.h.
References FLIndex(), and llvm::Other.
|
friend |
Definition at line 403 of file FunctionLocalMetadata.h.
References assert(), llvm::MDFunctionLocalContext::getInlinedCall(), llvm::FLInlinedCall::InlinedAtIdx, and llvm::FLInlinedCall::isInlined().
Definition at line 78 of file FunctionLocalMetadata.h.
References FLIndex(), and hash_value.
Referenced by hash_value.