MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::World::Externals Class Reference

#include <mim/world.h>

Public Member Functions

Get muts
auto muts () const
fe::Vector< Def * > mutate () const
 Returns a copy of muts() in a fe::Vector; this allows you to modify the Externals while iterating.
Def * operator[] (Sym name) const
 Lookup by name.
size_t size () const
externalize/internalize
void externalize (Def *)
void internalize (Def *)
Iterators
auto begin () const
auto end () const

Friends

void swap (Externals &ex1, Externals &ex2) noexcept

Detailed Description

Definition at line 187 of file world.h.

Member Function Documentation

◆ begin()

auto mim::World::Externals::begin ( ) const
inline

Definition at line 207 of file world.h.

◆ end()

auto mim::World::Externals::end ( ) const
inline

Definition at line 208 of file world.h.

◆ externalize()

void mim::World::Externals::externalize ( Def * def)

Definition at line 123 of file world.cpp.

References mim::Def::is_closed(), mim::Def::is_external(), and mim::Def::sym().

Referenced by mim::Def::externalize().

◆ internalize()

void mim::World::Externals::internalize ( Def * def)

Definition at line 130 of file world.cpp.

References mim::Def::is_external(), and mim::Def::sym().

Referenced by mim::Def::internalize().

◆ mutate()

fe::Vector< Def * > mim::World::Externals::mutate ( ) const
inline

Returns a copy of muts() in a fe::Vector; this allows you to modify the Externals while iterating.

Note
The iteration will see all old externals, of course.

Definition at line 194 of file world.h.

References muts().

Referenced by mim::optimize().

◆ muts()

auto mim::World::Externals::muts ( ) const
inline

Definition at line 191 of file world.h.

Referenced by mim::plug::tensor::count_consumers(), and mutate().

◆ operator[]()

Def * mim::World::Externals::operator[] ( Sym name) const
inline

Lookup by name.

Definition at line 195 of file world.h.

References mim::World::name().

◆ size()

size_t mim::World::Externals::size ( ) const
inline

Definition at line 196 of file world.h.

◆ swap

void swap ( Externals & ex1,
Externals & ex2 )
friend

Definition at line 211 of file world.h.

References swap.

Referenced by swap.


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