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

A Path value. More...

#include <Evaluator.h>

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

Public Member Functions

 PathValue (om::TargetKindAttr targetKind, om::PathAttr path, StringAttr module, StringAttr ref, StringAttr field, Location loc)
 Create a path value representing a regular path.
om::TargetKindAttr getTargetKind () const
om::PathAttr getPath () const
StringAttr getModule () const
StringAttr getRef () const
StringAttr getField () const
StringAttr getAsString () const
void setBasepath (const BasePathValue &basepath)
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 PathValue getEmptyPath (Location loc)
static bool classof (const EvaluatorValue *e)
 Implement LLVM RTTI.

Private Attributes

om::TargetKindAttr targetKind
om::PathAttr path
StringAttr module
StringAttr ref
StringAttr field

Additional Inherited Members

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

Detailed Description

A Path value.

Definition at line 254 of file Evaluator.h.

Constructor & Destructor Documentation

◆ PathValue()

evaluator::PathValue::PathValue ( om::TargetKindAttr targetKind,
om::PathAttr path,
StringAttr module,
StringAttr ref,
StringAttr field,
Location loc )

Member Function Documentation

◆ classof()

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

◆ getAsString()

StringAttr evaluator::PathValue::getAsString ( ) const

◆ getEmptyPath()

evaluator::PathValue evaluator::PathValue::getEmptyPath ( Location loc)
static

◆ getField()

StringAttr circt::om::evaluator::PathValue::getField ( ) const
inline

Definition at line 270 of file Evaluator.h.

References field.

◆ getModule()

StringAttr circt::om::evaluator::PathValue::getModule ( ) const
inline

Definition at line 266 of file Evaluator.h.

◆ getPath()

om::PathAttr circt::om::evaluator::PathValue::getPath ( ) const
inline

Definition at line 264 of file Evaluator.h.

References path.

◆ getRef()

StringAttr circt::om::evaluator::PathValue::getRef ( ) const
inline

Definition at line 268 of file Evaluator.h.

References ref.

◆ getTargetKind()

om::TargetKindAttr circt::om::evaluator::PathValue::getTargetKind ( ) const
inline

Definition at line 262 of file Evaluator.h.

References targetKind.

◆ setBasepath()

Member Data Documentation

◆ field

StringAttr circt::om::evaluator::PathValue::field
private

Definition at line 286 of file Evaluator.h.

Referenced by getAsString(), getField(), and PathValue().

◆ module

StringAttr circt::om::evaluator::PathValue::module
private

◆ path

om::PathAttr circt::om::evaluator::PathValue::path
private

Definition at line 283 of file Evaluator.h.

Referenced by getAsString(), getEmptyPath(), getPath(), PathValue(), and setBasepath().

◆ ref

StringAttr circt::om::evaluator::PathValue::ref
private

Definition at line 285 of file Evaluator.h.

Referenced by getAsString(), getRef(), and PathValue().

◆ targetKind

om::TargetKindAttr circt::om::evaluator::PathValue::targetKind
private

Definition at line 282 of file Evaluator.h.

Referenced by getAsString(), getTargetKind(), and PathValue().


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