docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
utils.h File Reference
#include <csignal>
#include <cstdlib>
#include <filesystem>
#include <functional>
#include <regex>
#include <string>
#include <llvm/Analysis/RegionInfo.h>
#include <llvm/BinaryFormat/Dwarf.h>
#include <llvm/Demangle/Demangle.h>
#include <llvm/IR/DebugInfoMetadata.h>
#include <llvm/IR/Function.h>
#include <llvm/IR/Instructions.h>
#include <llvm/IR/IntrinsicInst.h>
#include <llvm/IR/Module.h>
#include <llvm/Support/Debug.h>
#include <sdfg/element.h>

Go to the source code of this file.

Namespaces

namespace  docc
namespace  docc::utils

Macros

#define LLVM_DEBUG_PRINTLN(msg)
#define LLVM_DEBUG_PRINT(msg)

Enumerations

enum  docc::TargetType { docc::HOST , docc::CUDA }

Functions

std::string docc::utils::hash_function_name (const std::string &function_name)
std::string docc::utils::hash_module_name (const llvm::Module &Module)
bool docc::utils::is_mangled_name (const std::string &name)
std::string docc::utils::get_demangled_name (const std::string &name)
std::string docc::utils::get_truncated_demangled_name (const std::string &name)
llvm::dwarf::SourceLanguage docc::utils::source_language (llvm::Module &Module)
bool docc::utils::has_debug (const llvm::Module &Module)
sdfg::DebugInfo docc::utils::get_debug_info (const llvm::Instruction &inst)
sdfg::DebugInfo docc::utils::get_debug_info (llvm::BasicBlock &block)
sdfg::DebugInfo docc::utils::get_debug_info (llvm::Function &function)
sdfg::DebugInfo docc::utils::get_debug_info (llvm::Region &region)
sdfg::DebugInfo docc::utils::bestEffortLoc (const llvm::Value &V)
std::vector< std::string > docc::utils::get_recorded_driver_flags (const llvm::Module &M)
template<typename T>
std::string docc::utils::toIRString (const T &value)

Macro Definition Documentation

◆ LLVM_DEBUG_PRINT

#define LLVM_DEBUG_PRINT ( msg)
Value:
do { \
llvm::errs() << "[DEBUG] " << msg; \
} while (0)

◆ LLVM_DEBUG_PRINTLN

#define LLVM_DEBUG_PRINTLN ( msg)
Value:
do { \
llvm::errs() << "[DEBUG] " << msg << "\n"; \
} while (0)