hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
IRMetadata Struct Reference

#include <IR.h>

Public Member Functions

template<typename T >
T & getMetadata (const yoi::wstr &key)
 
template<typename T >
const T & getMetadata (const yoi::wstr &key) const
 
template<typename T >
void setMetadata (const yoi::wstr &key, const T &value)
 
void eraseMetadata (const yoi::wstr &key)
 
bool hasMetadata (const yoi::wstr &key) const
 
yoi::wstr to_string () const
 

Public Attributes

std::map< yoi::wstr, std::any > metadata
 

Detailed Description

Definition at line 84 of file IR.h.

Member Function Documentation

◆ eraseMetadata()

void eraseMetadata ( const yoi::wstr key)

Definition at line 1578 of file IR.cpp.

◆ getMetadata() [1/2]

template<typename T >
T & getMetadata ( const yoi::wstr key)
inline

Definition at line 87 of file IR.h.

References IRMetadata::metadata.

Referenced by IRFunctionOptimizer::analyzeBlockForInterfaceAllocationReduction().

Here is the caller graph for this function:

◆ getMetadata() [2/2]

template<typename T >
const T & getMetadata ( const yoi::wstr key) const
inline

Definition at line 91 of file IR.h.

References IRMetadata::metadata.

◆ hasMetadata()

bool hasMetadata ( const yoi::wstr key) const

Definition at line 1584 of file IR.cpp.

Referenced by IRFunctionOptimizer::analyzeBlockForInterfaceAllocationReduction().

Here is the caller graph for this function:

◆ setMetadata()

template<typename T >
void setMetadata ( const yoi::wstr key,
const T &  value 
)
inline

Definition at line 95 of file IR.h.

References IRMetadata::metadata.

◆ to_string()

yoi::wstr to_string ( ) const

Definition at line 1588 of file IR.cpp.

Referenced by IRValueType::to_string().

Here is the caller graph for this function:

Member Data Documentation

◆ metadata

std::map<yoi::wstr, std::any> metadata

Definition at line 85 of file IR.h.

Referenced by IRMetadata::getMetadata(), IRMetadata::getMetadata(), and IRMetadata::setMetadata().


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