CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::om::evaluator::ListValue Class Reference

A List which contains variadic length of elements with the same type. More...

#include <Evaluator.h>

Inheritance diagram for circt::om::evaluator::ListValue:
Collaboration diagram for circt::om::evaluator::ListValue:

Public Member Functions

 ListValue (om::ListType type, SmallVector< EvaluatorValuePtr > elements, Location loc)
void setElements (SmallVector< EvaluatorValuePtr > newElements)
 ListValue (om::ListType type, Location loc)
const auto & getElements () const
om::ListType getListType () const
 Return the type of the value, which is a ListType.
Public Member Functions inherited from circt::om::evaluator::EvaluatorValue
 EvaluatorValue (MLIRContext *ctx, Kind kind, Location loc)
Kind getKind () const
MLIRContext * getContext () const
bool isFullyEvaluated () const
void markFullyEvaluated ()
bool isUnknown () const
 Return true if the value is unknown (has unknown in its fan-in).
void markUnknown ()
 Mark this value as unknown.
MLIRContext * getContext ()
 Return the associated MLIR context.
Type getType () const
Location getLoc () const
void setLoc (Location l)
void setLocIfUnknown (Location l)

Static Public Member Functions

static bool classof (const EvaluatorValue *e)
 Implement LLVM RTTI.

Private Attributes

om::ListType type
SmallVector< EvaluatorValuePtr > elements

Additional Inherited Members

Public Types inherited from circt::om::evaluator::EvaluatorValue
enum class  Kind {
  Attr , Object , List , BasePath ,
  Path
}

Detailed Description

A List which contains variadic length of elements with the same type.

Definition at line 149 of file Evaluator.h.

Constructor & Destructor Documentation

◆ ListValue() [1/2]

circt::om::evaluator::ListValue::ListValue ( om::ListType type,
SmallVector< EvaluatorValuePtr > elements,
Location loc )
inline

◆ ListValue() [2/2]

circt::om::evaluator::ListValue::ListValue ( om::ListType type,
Location loc )
inline

Member Function Documentation

◆ classof()

bool circt::om::evaluator::ListValue::classof ( const EvaluatorValue * e)
inlinestatic

◆ getElements()

const auto & circt::om::evaluator::ListValue::getElements ( ) const
inline

Definition at line 167 of file Evaluator.h.

References elements.

◆ getListType()

om::ListType circt::om::evaluator::ListValue::getListType ( ) const
inline

Return the type of the value, which is a ListType.

Definition at line 170 of file Evaluator.h.

References type.

◆ setElements()

void circt::om::evaluator::ListValue::setElements ( SmallVector< EvaluatorValuePtr > newElements)
inline

Member Data Documentation

◆ elements

SmallVector<EvaluatorValuePtr> circt::om::evaluator::ListValue::elements
private

Definition at line 179 of file Evaluator.h.

Referenced by getElements(), ListValue(), and setElements().

◆ type


The documentation for this class was generated from the following file: