Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
debug_dump.h
Go to the documentation of this file.
1#pragma once
2
3#include <thorin/config.h>
4
5#include <thorin/pass/pass.h>
6
7using namespace thorin;
8
9/// A pass that just dumps the world.
10class DebugDump : public RWPass<DebugDump, Lam> {
11public:
13 : RWPass(man, "print_wrapper") {}
14
15 void prepare() override { world().debug_dump(); }
16};
A pass that just dumps the world.
Definition debug_dump.h:10
DebugDump(PassMan &man)
Definition debug_dump.h:12
void prepare() override
Invoked once before entering the main rewrite loop.
Definition debug_dump.h:15
An optimizer that combines several optimizations in an optimal way.
Definition pass.h:107
PassMan & man()
Definition pass.h:30
World & world()
Definition pass.h:296
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:458
Definition cfg.h:11