Struct ModuleInstanceType

Struct Documentation

struct sc_ast_matchers::ModuleInstanceType

Public Types

typedef std::tuple<std::size_t, std::size_t, std::size_t> ArrayParamType

Public Functions

inline void add_instance_name(const std::string &name)
inline std::vector<std::string> getInstanceNames()
inline clang::Decl *getInstanceTypeDecl() const
inline clang::Decl *getInstanceDecl() const
inline clang::ValueDecl *getParentDecl() const
inline void setArrayType()

Array handling.

inline void setArrayParameters(ArrayParamType parm)
inline ArrayParamType getArrayParameters()
inline bool isArrayType()
inline unsigned int getArrayDimension() const

Return the array dimension, if the module instance is an array. 0 means a single instance k means kD array with a maximum of k = 3.

inline void addArraySizes(std::vector<llvm::APInt> sizes)
inline std::vector<llvm::APInt> getArraySizes()
inline ModuleInstanceType()
inline ModuleInstanceType(const ModuleInstanceType &rhs)
inline bool operator==(const ModuleInstanceType &rhs)
inline void dump()

Public Members

std::string var_name
std::string var_type_name
std::string instance_name
std::string parent_name
bool is_field_decl
clang::Decl *type_decl
clang::Decl *instance_decl
clang::ValueDecl *parent_decl
bool is_array
std::vector<std::string> instance_names
bool is_array_
std::vector<llvm::APInt> array_sizes_
ArrayParamType array_parameters_