CIRCT
20.0.0git
|
A Path value. More...
#include <Evaluator.h>
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. More... | |
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 () |
MLIRContext * | getContext () |
Return the associated MLIR context. More... | |
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. More... | |
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 , Tuple , Map , Reference , BasePath , Path } |
A Path value.
Definition at line 372 of file Evaluator.h.
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 852 of file Evaluator.cpp.
|
inlinestatic |
Implement LLVM RTTI.
Definition at line 397 of file Evaluator.h.
References circt::om::evaluator::EvaluatorValue::getKind(), and circt::om::evaluator::EvaluatorValue::Path.
|
inline |
Definition at line 394 of file Evaluator.h.
StringAttr evaluator::PathValue::getAsString | ( | ) | const |
Definition at line 864 of file Evaluator.cpp.
References circt::calyx::direction::get().
|
static |
Definition at line 858 of file Evaluator.cpp.
References circt::om::evaluator::EvaluatorValue::markFullyEvaluated().
Referenced by circt::om::Evaluator::getOrCreateValue().
|
inline |
Definition at line 387 of file Evaluator.h.
References field.
|
inline |
Definition at line 383 of file Evaluator.h.
References module.
|
inline |
Definition at line 381 of file Evaluator.h.
References path.
|
inline |
Definition at line 385 of file Evaluator.h.
References ref.
|
inline |
Definition at line 379 of file Evaluator.h.
References targetKind.
void evaluator::PathValue::setBasepath | ( | const BasePathValue & | basepath | ) |
Definition at line 909 of file Evaluator.cpp.
References assert(), circt::calyx::direction::get(), and circt::om::evaluator::BasePathValue::getPath().
|
private |
Definition at line 406 of file Evaluator.h.
Referenced by getField().
|
private |
Definition at line 404 of file Evaluator.h.
Referenced by hw.InstanceBuilder::create_default_value(), getModule(), om.Evaluator::instantiate(), hw.InstanceBuilder::operand_names(), and hw.InstanceBuilder::result_names().
|
private |
Definition at line 403 of file Evaluator.h.
Referenced by getPath().
|
private |
Definition at line 405 of file Evaluator.h.
Referenced by getRef().
|
private |
Definition at line 402 of file Evaluator.h.
Referenced by getTargetKind().