MimIR
0.4-dev
MimIR is my Intermediate Representation
Toggle main menu visibility
Loading...
Searching...
No Matches
lower_get_set.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
mim/phase.h
>
4
5
namespace
mim::plug::tensor::phase
{
6
7
/// Lowers the tensor axioms (`get`, `set`)
8
/// to their underlying primitives (`extract`, `insert`).
9
class
LowerGetSet
:
public
RWPhase
{
10
public
:
11
LowerGetSet
(
World
&
world
,
flags_t
annex
)
12
:
RWPhase
(
world
,
annex
) {}
13
14
private
:
15
const
Def
*
rewrite_imm_App
(
const
App
*)
final
;
16
17
const
Def
* lower_get(
const
App
*);
18
const
Def
* lower_set(
const
App
*);
19
};
20
21
}
// namespace mim::plug::tensor::phase
mim::App
Definition
lam.h:224
mim::Def
Base class for all Defs.
Definition
def.h:273
mim::Phase::annex
flags_t annex() const
Definition
phase.h:81
mim::RWPhase::RWPhase
RWPhase(World &world, std::string name, Analysis *analysis=nullptr)
Definition
phase.h:431
mim::RWPhase::world
World & world()=delete
Hides both and forbids direct access.
mim::World
The World represents the whole program and manages creation of MimIR nodes (Defs).
Definition
world.h:40
mim::plug::tensor::phase::LowerGetSet::rewrite_imm_App
const Def * rewrite_imm_App(const App *) final
Definition
lower_get_set.cpp:55
mim::plug::tensor::phase::LowerGetSet::LowerGetSet
LowerGetSet(World &world, flags_t annex)
Definition
lower_get_set.h:11
mim::plug::tensor::phase
Definition
constraints.h:5
mim::flags_t
u64 flags_t
Definition
types.h:39
phase.h
include
mim
plug
tensor
phase
lower_get_set.h
Generated by
1.18.0