MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
debug_dump.h
Go to the documentation of this file.
1#pragma once
2
3#include <mim/config.h>
4#include <mim/pass/pass.h>
5
6using namespace mim;
7
8/// A pass that just dumps the world.
9class DebugDump : public RWPass<DebugDump, Lam> {
10public:
12 : RWPass(man, "print_wrapper") {}
13
14 void prepare() override { world().debug_dump(); }
15};
A pass that just dumps the world.
Definition debug_dump.h:9
DebugDump(PassMan &man)
Definition debug_dump.h:11
void prepare() override
Invoked once before entering the main rewrite loop.
Definition debug_dump.h:14
An optimizer that combines several optimizations in an optimal way.
Definition pass.h:107
World & world()
Definition pass.h:296
PassMan & man()
Definition pass.h:30
Inherit from this class using CRTP, if your Pass does not need state and a fixed-point iteration.
Definition pass.h:220
void debug_dump()
Dump in Debug build if World::log::level is Log::Level::Debug.
Definition dump.cpp:489
Definition cfg.h:11