1#ifndef _MODULE_INSTANCE_TYPE_
2#define _MODULE_INSTANCE_TYPE_
12#define DEBUG_TYPE "Dump"
116 llvm::outs() <<
"ModuleInstanceMap -- type_decl: " <<
type_decl
126 llvm::outs() <<
"Array sizes: " <<
array_sizes_.size() <<
" -- ";
128 llvm::outs() << size <<
" ";
132 llvm::outs() <<
"instance_names: ";
136 llvm::outs() << name;
138 llvm::outs() <<
"\n";
Clang forward declarations.
std::string getVarName() const
clang::Decl * getInstanceTypeDecl() const
unsigned int getArrayDimension() const
Return the array dimension, if the module instance is an array. 0 means a single instance k means kD ...
void add_instance_name(const std::string &name)
std::vector< std::string > getInstanceNames()
ArrayParamType array_parameters_
void setArrayParameters(ArrayParamType parm)
std::string var_type_name
ArrayParamType getArrayParameters()
clang::Decl * instance_decl
std::vector< llvm::APInt > getArraySizes()
clang::ValueDecl * getParentDecl() const
clang::ValueDecl * parent_decl
std::tuple< std::size_t, std::size_t, std::size_t > ArrayParamType
clang::Decl * getInstanceDecl() const
std::string instance_name
ModuleInstanceType(const ModuleInstanceType &rhs)
std::vector< std::string > instance_names
std::vector< llvm::APInt > array_sizes_
void addArraySizes(std::vector< llvm::APInt > sizes)
ModuleInstanceType & operator=(const ModuleInstanceType &rhs)
bool operator==(const ModuleInstanceType &rhs)
void setArrayType()
Array handling.