docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
utils.h File Reference
#include <llvm/IR/CFG.h>
#include <llvm/IR/Constants.h>
#include <llvm/IR/Instructions.h>
#include <llvm/IR/Operator.h>
#include <string>
#include <utility>
#include <vector>
#include <sdfg/builder/sdfg_builder.h>
#include "docc/lifting/exceptions.h"
#include "docc/utils.h"

Go to the source code of this file.

Namespaces

namespace  docc
namespace  docc::lifting
namespace  docc::lifting::utils

Functions

std::string docc::lifting::utils::get_name (const llvm::Value *value)
std::string docc::lifting::utils::normalize_name (const std::string value)
bool docc::lifting::utils::is_literal (const llvm::Value *value)
bool docc::lifting::utils::is_null_pointer (const llvm::Value *value)
bool docc::lifting::utils::is_symbol (const llvm::Value *value)
std::string docc::lifting::utils::as_literal (const llvm::ConstantData *value)
sdfg::symbolic::Expression docc::lifting::utils::as_symbol (const llvm::Constant *value)
std::string docc::lifting::utils::get_initializer (const llvm::GlobalVariable &global)
bool docc::lifting::utils::has_initializer (const llvm::GlobalVariable &global)
std::string docc::lifting::utils::as_initializer (const llvm::Constant *initializer)
std::string docc::lifting::utils::create_const_name_to_sdfg_name (sdfg::builder::SDFGBuilder &builder, std::unordered_map< const llvm::Value *, std::string > &constants_mapping, const llvm::Value *llvm_ptr)
std::string docc::lifting::utils::find_const_name_to_sdfg_name (std::unordered_map< const llvm::Value *, std::string > &constants_mapping, const llvm::Value *llvm_ptr)
std::unique_ptr< sdfg::types::IType > docc::lifting::utils::get_type (sdfg::builder::SDFGBuilder &builder, std::unordered_map< const llvm::Type *, std::string > &anonymous_types_mapping, const llvm::DataLayout &DL, llvm::Type *type, sdfg::types::StorageType storage_type, const std::string &initializer="")
sdfg::types::StorageType docc::lifting::utils::get_storage_type (sdfg::FunctionType target_type, size_t address_space)
std::pair< std::string, sdfg::data_flow::Subset > docc::lifting::utils::get_memlet (std::unordered_map< const llvm::Value *, std::string > &constants_mapping, const llvm::GEPOperator *pointer)
std::vector< llvm::GlobalVariable * > docc::lifting::utils::add_nested_global (const llvm::ConstantExpr *expr)