LLVM 22.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::MDNodeKeyImpl< DILabel > Struct Reference

#include "IR/LLVMContextImpl.h"

Public Member Functions

 MDNodeKeyImpl (Metadata *Scope, MDString *Name, Metadata *File, unsigned Line, unsigned Column, bool IsArtificial, std::optional< unsigned > CoroSuspendIdx)
 
 MDNodeKeyImpl (const DILabel *N)
 
bool isKeyOf (const DILabel *RHS) const
 
unsigned getHashValue () const
 Using name and line to get hash value. It should already be mostly unique.
 

Public Attributes

MetadataScope
 
MDStringName
 
MetadataFile
 
unsigned Line
 
unsigned Column
 
bool IsArtificial
 
std::optional< unsignedCoroSuspendIdx
 

Detailed Description

Definition at line 1316 of file LLVMContextImpl.h.

Constructor & Destructor Documentation

◆ MDNodeKeyImpl() [1/2]

llvm::MDNodeKeyImpl< DILabel >::MDNodeKeyImpl ( Metadata Scope,
MDString Name,
Metadata File,
unsigned  Line,
unsigned  Column,
bool  IsArtificial,
std::optional< unsigned CoroSuspendIdx 
)
inline

Definition at line 1325 of file LLVMContextImpl.h.

◆ MDNodeKeyImpl() [2/2]

llvm::MDNodeKeyImpl< DILabel >::MDNodeKeyImpl ( const DILabel N)
inline

Definition at line 1330 of file LLVMContextImpl.h.

Member Function Documentation

◆ getHashValue()

unsigned llvm::MDNodeKeyImpl< DILabel >::getHashValue ( ) const
inline

Using name and line to get hash value. It should already be mostly unique.

Definition at line 1344 of file LLVMContextImpl.h.

References llvm::hash_combine(), and Name.

◆ isKeyOf()

bool llvm::MDNodeKeyImpl< DILabel >::isKeyOf ( const DILabel RHS) const
inline

Definition at line 1336 of file LLVMContextImpl.h.

References Name, and RHS.

Member Data Documentation

◆ Column

Definition at line 1321 of file LLVMContextImpl.h.

◆ CoroSuspendIdx

std::optional<unsigned> llvm::MDNodeKeyImpl< DILabel >::CoroSuspendIdx

Definition at line 1323 of file LLVMContextImpl.h.

◆ File

Definition at line 1319 of file LLVMContextImpl.h.

◆ IsArtificial

bool llvm::MDNodeKeyImpl< DILabel >::IsArtificial

Definition at line 1322 of file LLVMContextImpl.h.

◆ Line

Definition at line 1320 of file LLVMContextImpl.h.

◆ Name

Definition at line 1318 of file LLVMContextImpl.h.

◆ Scope

Definition at line 1317 of file LLVMContextImpl.h.


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