LSPUtilities class
#include <slang/ast/LSPUtilities.h>
A collection of utility methods for working with LSP expressions.
Public static functions
-
static std::
optional<DriverBitRange> getBounds(const Expression& prefixExpression, EvalContext& evalContext, const Type& rootType) - Computes bounds for a driver given its longest static prefix expression.
-
template<typename TCallback>static void visitLSPs(const Expression& expr, EvalContext& evalContext, TCallback&& func, const Expression* initialLSP = nullptr)
- Visits the longest static prefix expressions for all of the operands in the given expression using the provided callback function.