CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
circt::om::evaluator::PathValue Class Reference

A Path value. More...

#include <Evaluator.h>

Inheritance diagram for circt::om::evaluator::PathValue:
Inheritance graph
[legend]
Collaboration diagram for circt::om::evaluator::PathValue:
Collaboration graph
[legend]

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)
 
LogicalResult finalizeImpl ()
 
- 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
 
LogicalResult finalize ()
 
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 StringAttr ref
 
StringAttr field
 

Additional Inherited Members

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

Detailed Description

A Path value.

Definition at line 326 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 
)

Create a path value representing a regular path.

Definition at line 875 of file Evaluator.cpp.

Member Function Documentation

◆ classof()

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

Implement LLVM RTTI.

Definition at line 352 of file Evaluator.h.

References circt::om::evaluator::EvaluatorValue::getKind(), and circt::om::evaluator::EvaluatorValue::Path.

◆ finalizeImpl()

LogicalResult circt::om::evaluator::PathValue::finalizeImpl ( )
inline

Definition at line 349 of file Evaluator.h.

◆ getAsString()

StringAttr evaluator::PathValue::getAsString ( ) const

Definition at line 887 of file Evaluator.cpp.

◆ getEmptyPath()

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

◆ getField()

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

Definition at line 342 of file Evaluator.h.

References field.

◆ getModule()

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

Definition at line 338 of file Evaluator.h.

◆ getPath()

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

Definition at line 336 of file Evaluator.h.

References path.

◆ getRef()

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

Definition at line 340 of file Evaluator.h.

References ref.

◆ getTargetKind()

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

Definition at line 334 of file Evaluator.h.

References targetKind.

◆ setBasepath()

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

Definition at line 932 of file Evaluator.cpp.

References assert(), and circt::om::evaluator::BasePathValue::getPath().

Member Data Documentation

◆ field

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

Definition at line 361 of file Evaluator.h.

Referenced by getField().

◆ path

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

Definition at line 358 of file Evaluator.h.

Referenced by getPath().

◆ ref

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

Definition at line 360 of file Evaluator.h.

Referenced by getRef().

◆ targetKind

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

Definition at line 357 of file Evaluator.h.

Referenced by getTargetKind().


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