CIRCT
20.0.0git
|
A Basepath value. More...
#include <Evaluator.h>
Public Member Functions | |
BasePathValue (MLIRContext *context) | |
BasePathValue (om::PathAttr path, Location loc) | |
Create a path value representing a basepath. More... | |
om::PathAttr | getPath () const |
void | setBasepath (const BasePathValue &basepath) |
Set the basepath which this path is relative to. More... | |
LogicalResult | finalizeImpl () |
Finalize the evaluator value. More... | |
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 bool | classof (const EvaluatorValue *e) |
Implement LLVM RTTI. More... | |
Private Attributes | |
om::PathAttr | path |
Additional Inherited Members | |
Public Types inherited from circt::om::evaluator::EvaluatorValue | |
enum class | Kind { Attr , Object , List , Tuple , Map , Reference , BasePath , Path } |
A Basepath value.
Definition at line 348 of file Evaluator.h.
evaluator::BasePathValue::BasePathValue | ( | MLIRContext * | context | ) |
Definition at line 825 of file Evaluator.cpp.
circt::om::evaluator::BasePathValue::BasePathValue | ( | om::PathAttr | path, |
Location | loc | ||
) |
Create a path value representing a basepath.
|
inlinestatic |
Implement LLVM RTTI.
Definition at line 363 of file Evaluator.h.
References circt::om::evaluator::EvaluatorValue::BasePath, and circt::om::evaluator::EvaluatorValue::getKind().
|
inline |
Finalize the evaluator value.
Definition at line 360 of file Evaluator.h.
PathAttr evaluator::BasePathValue::getPath | ( | ) | const |
Definition at line 834 of file Evaluator.cpp.
References assert().
Referenced by circt::om::evaluator::PathValue::setBasepath().
void evaluator::BasePathValue::setBasepath | ( | const BasePathValue & | basepath | ) |
Set the basepath which this path is relative to.
Definition at line 839 of file Evaluator.cpp.
References assert(), circt::calyx::direction::get(), and path.
|
private |
Definition at line 368 of file Evaluator.h.
Referenced by setBasepath().