MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::VarRewriter Class Reference

#include <mim/rewrite.h>

Inheritance diagram for mim::VarRewriter:
[legend]

Public Member Functions

 VarRewriter (Ref var, Ref arg)
 
Ref rewrite_imm (Ref imm) override
 
Ref rewrite_mut (Def *mut) override
 
- Public Member Functions inherited from mim::Rewriter
 Rewriter (World &world)
 
Worldworld ()
 
Ref map (Ref old_def, Ref new_def)
 Map old_def to new_def and returns new_def;.
 
virtual Ref rewrite (Ref)
 

Detailed Description

Definition at line 31 of file rewrite.h.

Constructor & Destructor Documentation

◆ VarRewriter()

mim::VarRewriter::VarRewriter ( Ref var,
Ref arg )
inline

Definition at line 33 of file rewrite.h.

References mim::Rewriter::map(), mim::World::vars(), and mim::Rewriter::world().

Member Function Documentation

◆ rewrite_imm()

Ref mim::VarRewriter::rewrite_imm ( Ref imm)
inlineoverridevirtual

◆ rewrite_mut()

Ref mim::VarRewriter::rewrite_mut ( Def * mut)
inlineoverridevirtual

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