MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
log.h File Reference
#include <ostream>
#include <print>
#include <fe/term.h>
#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.

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

Macro Definition Documentation

◆ DLOG

◆ ELOG

#define ELOG ( ...)

◆ ILOG

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

Definition at line 90 of file log.h.

Referenced by mim::Driver::load().

◆ TLOG

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

Definition at line 95 of file log.h.

◆ VLOG

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

Definition at line 91 of file log.h.

Referenced by mim::Analysis::start(), mim::PhaseMan::start(), and mim::RWPhase::start().

◆ WLOG

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

Definition at line 89 of file log.h.

Referenced by mim::plug::ll_nvptx::DeviceEmitter::convert(), mim::World::extract(), mim::Driver::load(), and mim::plug::ll_nvptx::Emit::start().