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

A Basepath value. More...

#include <Evaluator.h>

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

Public Member Functions

 BasePathValue (MLIRContext *context)
 BasePathValue (om::PathAttr path, Location loc)
 Create a path value representing a basepath.
om::PathAttr getPath () const
void setBasepath (const BasePathValue &basepath)
 Set the basepath which this path is relative to.
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::PathAttr path

Additional Inherited Members

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

Detailed Description

A Basepath value.

Definition at line 232 of file Evaluator.h.

Constructor & Destructor Documentation

◆ BasePathValue() [1/2]

evaluator::BasePathValue::BasePathValue ( MLIRContext * context)

Definition at line 940 of file Evaluator.cpp.

References context, circt::om::evaluator::EvaluatorValue::EvaluatorValue(), and path.

Referenced by BasePathValue(), and setBasepath().

◆ BasePathValue() [2/2]

circt::om::evaluator::BasePathValue::BasePathValue ( om::PathAttr path,
Location loc )

Create a path value representing a basepath.

References BasePathValue(), circt::om::evaluator::EvaluatorValue::loc, and path.

Member Function Documentation

◆ classof()

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

◆ getPath()

PathAttr evaluator::BasePathValue::getPath ( ) const

◆ setBasepath()

void evaluator::BasePathValue::setBasepath ( const BasePathValue & basepath)

Set the basepath which this path is relative to.

Definition at line 954 of file Evaluator.cpp.

References assert(), BasePathValue(), circt::om::evaluator::EvaluatorValue::isFullyEvaluated(), circt::om::evaluator::EvaluatorValue::markFullyEvaluated(), and path.

Member Data Documentation

◆ path

om::PathAttr circt::om::evaluator::BasePathValue::path
private

Definition at line 250 of file Evaluator.h.

Referenced by BasePathValue(), BasePathValue(), getPath(), and setBasepath().


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