slang::InstanceSymbolBase class

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


Base classes

class Symbol

Public functions

auto getArrayName() const -> string_view
void getArrayDimensions(SmallVector<ConstantRange>& dimensions) const

Function documentation

string_view slang::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::InstanceSymbolBase::getArrayDimensions(SmallVector<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.