FreeTensor
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
print_ast.cc File Reference
#include <cctype>
#include <config.h>
#include <container_utils.h>
#include <serialize/print_ast.h>
#include <serialize/stream_utils.h>
#include "../codegen/detail/code_gen.h"
Include dependency graph for print_ast.cc:

Namespaces

namespace  freetensor
 

Macros

#define MAGENTA   "\u001b[35m"s
 
#define CYAN   "\u001b[36m"s
 
#define BLUE   "\u001b[34m"s
 
#define UNDERLINE   "\u001b[4m"s
 
#define RESET   "\u001b[0m"s
 
#define BOLD   "\u001b[1m"s
 
#define SPACE   (compact_ ? "" : " ")
 

Functions

std::ostream & freetensor::operator<< (std::ostream &os, const AST &op)
 
std::string freetensor::toString (const AST &op)
 
std::string freetensor::toString (const AST &op, bool pretty)
 
std::string freetensor::toString (const AST &op, bool pretty, bool printAllId)
 
std::string freetensor::toString (const AST &op, bool pretty, bool printAllId, bool dtypeInLoad, bool hexFloat=false, bool compact=false, bool parenDespitePriority=false)
 
std::string freetensor::toString (const AST &op, bool pretty, bool printAllId, bool dtypeInLoad, bool hexFloat, bool compact, bool parenDespitePriority, bool printSourceLocation)
 
std::function< std::ostream &(std::ostream &)> freetensor::manipNoPrettyAST (bool flag)
 

Macro Definition Documentation

◆ BLUE

#define BLUE   "\u001b[34m"s

◆ BOLD

#define BOLD   "\u001b[1m"s

◆ CYAN

#define CYAN   "\u001b[36m"s

◆ MAGENTA

#define MAGENTA   "\u001b[35m"s

◆ RESET

#define RESET   "\u001b[0m"s

◆ SPACE

#define SPACE   (compact_ ? "" : " ")

◆ UNDERLINE

#define UNDERLINE   "\u001b[4m"s