|
CIRCT 24.0.0git
|
An option whose payload may be unevaluated to support forward references and cycles. More...
#include <Evaluator.h>


Public Member Functions | |
| OptionValue (om::OptionType type, Location loc) | |
| OptionValue (om::OptionType type, EvaluatorValuePtr value, Location loc) | |
| void | setValue (EvaluatorValuePtr newValue) |
| om::OptionType | getOptionType () const |
| bool | hasValue () const |
| const EvaluatorValuePtr & | getValue () const |
| 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 itself is unknown. | |
| 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) |
Private Attributes | |
| om::OptionType | type |
| EvaluatorValuePtr | value |
Additional Inherited Members | |
| Public Types inherited from circt::om::evaluator::EvaluatorValue | |
| enum class | Kind { Attr , Object , List , Option , BasePath , Path } |
An option whose payload may be unevaluated to support forward references and cycles.
Options imported into scratch IR with unknown payloads are canonicalized to unknown options during elaboration.
Definition at line 184 of file Evaluator.h.
|
inline |
Definition at line 187 of file Evaluator.h.
References circt::om::evaluator::EvaluatorValue::EvaluatorValue(), circt::om::evaluator::EvaluatorValue::getContext(), circt::om::evaluator::EvaluatorValue::loc, and type.
|
inline |
|
inlinestatic |
Definition at line 216 of file Evaluator.h.
References circt::om::evaluator::EvaluatorValue::EvaluatorValue(), circt::om::evaluator::EvaluatorValue::getKind(), and circt::om::evaluator::EvaluatorValue::Option.
|
inline |
Definition at line 203 of file Evaluator.h.
References type.
Referenced by circt::om::evaluator::EvaluatorValue::getType().
|
inline |
Definition at line 211 of file Evaluator.h.
References assert(), hasValue(), and value.
|
inline |
Definition at line 205 of file Evaluator.h.
References assert(), circt::om::evaluator::EvaluatorValue::isFullyEvaluated(), circt::om::evaluator::EvaluatorValue::isUnknown(), and value.
Referenced by getValue().
|
inline |
Definition at line 197 of file Evaluator.h.
References assert(), circt::om::evaluator::EvaluatorValue::isFullyEvaluated(), circt::om::evaluator::EvaluatorValue::markFullyEvaluated(), and value.
|
private |
Definition at line 221 of file Evaluator.h.
Referenced by esiaccel.types.WritePort::__serialize_msg(), esiaccel.types.Port::connect(), getOptionType(), hw.HWModuleOp::input_indices(), fsm.MachineOp::instantiate(), OptionValue(), OptionValue(), hw.HWModuleOp::outputs(), and esiaccel.types.ReadPort::read().
|
private |
Definition at line 222 of file Evaluator.h.
Referenced by getValue(), hasValue(), synth.Object::is_output_port(), OptionValue(), setValue(), and Python.support.OpOperand::type().