slang::ast::InstanceSymbolBase class

Common functionality for module, interface, program, and primitive instances.

Base classes

class Symbol

Public functions

auto getArrayName() const -> std::string_view
void getArrayDimensions(SmallVectorBase<ConstantRange>& dimensions) const

Function documentation

std::string_view slang::ast::InstanceSymbolBase::getArrayName() const

If this instance is part of an array, walk upward to find the array's name. Otherwise returns the name of the instance itself.

void slang::ast::InstanceSymbolBase::getArrayDimensions(SmallVectorBase<ConstantRange>& dimensions) const

Gets the set of dimensions describing the instance array that contains this instance. If this instance is not part of an array, does not add any dimensions to the given list.