MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
log.h File Reference
#include <ostream>
#include <rang.hpp>
#include "mim/flags.h"
#include "mim/util/dbg.h"
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mim::Log
 Facility to log what you are doing. More...
 

Namespaces

namespace  mim
 

Macros

Logging Macros

Macros for different mim::Log::Levels for ease of use.

See also
Formatted Output
#define ELOG(...)
 
#define WLOG(...)
 
#define ILOG(...)
 
#define VLOG(...)
 
#define DLOG(...)
 Vaporizes to nothingness in Debug build.
 
#define TLOG(...)
 

Macro Definition Documentation

◆ DLOG

#define DLOG ( ...)
Value:
log().log(mim::Log::Level::Debug, __FILE__, __LINE__, __VA_ARGS__)

Vaporizes to nothingness in Debug build.

Definition at line 95 of file log.h.

Referenced by mim::BetaRed::analyze(), mim::BetaRed::analyze(), mim::EtaExp::analyze(), mim::EtaExp::analyze(), mim::EtaRed::analyze(), mim::plug::clos::LowerTypedClosPrep::analyze(), mim::plug::mem::pass::CopyProp::analyze(), mim::plug::mem::pass::SSA::analyze(), mim::plug::mem::pass::SSA::analyze(), mim::TailRecElim::analyze(), mim::World::app(), mim::plug::autodiff::Eval::augment_(), mim::plug::autodiff::Eval::augment_app(), mim::plug::autodiff::Eval::augment_extract(), mim::plug::autodiff::Eval::augment_lam(), mim::plug::autodiff::Eval::augment_pack(), mim::plug::autodiff::Eval::augment_tuple(), mim::plug::autodiff::Eval::derive_(), mim::plug::clos::ClosConvPrep::enter(), reg_stages(), mim::BetaRed::rewrite(), mim::EtaExpPhase::rewrite(), mim::EtaRed::rewrite(), mim::LamSpec::rewrite(), mim::plug::autodiff::Eval::rewrite(), mim::plug::clos::BranchClosElim::rewrite(), mim::plug::direct::DS2CPS::rewrite(), mim::plug::mem::pass::CopyProp::rewrite(), mim::plug::mem::pass::SSA::rewrite(), mim::plug::mem::pass::SSA::rewrite(), mim::plug::regex::LowerRegex::rewrite(), mim::RetWrap::rewrite(), mim::Scalarize::rewrite(), mim::plug::matrix::LowerMatrixHighLevelMapRed::rewrite_(), mim::plug::matrix::LowerMatrixMediumLevel::rewrite_(), mim::plug::clos::ClosConvPrep::rewrite_arg(), mim::plug::clos::ClosConvPrep::rewrite_callee(), mim::PrefixCleanup::rewrite_external(), mim::BetaRedPhase::rewrite_imm_App(), mim::plug::affine::phase::LowerFor::rewrite_imm_App(), mim::plug::matrix::LowerMatrixLowLevel::rewrite_imm_App(), mim::BranchNormalizePhase::rewrite_mut_Lam(), mim::PassMan::run(), mim::plug::clos::ClosConv::start(), and mim::plug::clos::LowerTypedClos::start().

◆ ELOG

#define ELOG ( ...)
Value:
log().log(mim::Log::Level::Error, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 89 of file log.h.

Referenced by mim::plug::autodiff::Eval::augment_(), and mim::plug::matrix::LowerMatrixMediumLevel::rewrite_().

◆ ILOG

#define ILOG ( ...)
Value:
log().log(mim::Log::Level::Info, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 91 of file log.h.

Referenced by mim::Driver::load(), mim::PassMan::run(), and mim::ReplManPhase::start().

◆ TLOG

#define TLOG ( ...)
Value:
log().log(mim::Log::Level::Trace, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 96 of file log.h.

Referenced by mim::World::register_annex().

◆ VLOG

#define VLOG ( ...)
Value:
log().log(mim::Log::Level::Verbose, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 92 of file log.h.

Referenced by mim::PassMan::run(), and mim::PhaseMan::start().

◆ WLOG

#define WLOG ( ...)
Value:
log().log(mim::Log::Level::Warn, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 90 of file log.h.

Referenced by mim::World::extract(), and mim::Driver::load().