Class HDLType

Class Documentation

class HDLType

Public Functions

inline HDLType()
inline ~HDLType()
void SCtype2hcode(string prefix, Tree<TemplateType> *template_argtp, std::vector<llvm::APInt> *arr_sizes, hNode::hdlopsEnum h_op, hNodep &h_info)

Resolve types of systemc variables, signals, and ports including templated types and generate primitive type declarations Relies on TemplateTree matcher provided by front end and can handle structured types.

void generatetype(systemc_clang::TreeNode<systemc_clang::TemplateType> *const &node, systemc_clang::Tree<systemc_clang::TemplateType> *const &treehead, hNodep &h_info)
hNodep addtype(string typname, QualType qtyp, ASTContext &astcontext)
void addfieldtype(const FieldDecl *fld, hNodep &h_typdef)

Public Members

std::unordered_map<string, QualType> usertypes