CIRCT
20.0.0git
|
Values which can be directly representable by MLIR attributes. More...
#include <Evaluator.h>
Public Member Functions | |
AttributeValue (Attribute attr) | |
AttributeValue (Attribute attr, Location loc) | |
AttributeValue (Type type) | |
AttributeValue (Type type, Location loc) | |
Attribute | getAttr () const |
template<typename AttrTy > | |
AttrTy | getAs () const |
LogicalResult | setAttr (Attribute attr) |
LogicalResult | finalizeImpl () |
Type | getType () 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 () |
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) |
Private Attributes | |
Attribute | attr = {} |
Type | type |
Additional Inherited Members | |
Public Types inherited from circt::om::evaluator::EvaluatorValue | |
enum class | Kind { Attr , Object , List , Tuple , Map , Reference , BasePath , Path } |
Values which can be directly representable by MLIR attributes.
Definition at line 132 of file Evaluator.h.
|
inline |
Definition at line 133 of file Evaluator.h.
|
inline |
Definition at line 135 of file Evaluator.h.
References circt::om::evaluator::EvaluatorValue::markFullyEvaluated().
|
inline |
Definition at line 142 of file Evaluator.h.
|
inline |
Definition at line 144 of file Evaluator.h.
|
inlinestatic |
Definition at line 152 of file Evaluator.h.
References circt::om::evaluator::EvaluatorValue::Attr, and circt::om::evaluator::EvaluatorValue::getKind().
LogicalResult circt::om::evaluator::AttributeValue::finalizeImpl | ( | ) |
Definition at line 932 of file Evaluator.cpp.
|
inline |
Definition at line 149 of file Evaluator.h.
References attr.
Referenced by circt::om::Evaluator::evaluateIntegerBinaryArithmetic().
|
inline |
Definition at line 147 of file Evaluator.h.
References attr.
|
inline |
Definition at line 162 of file Evaluator.h.
References type.
LogicalResult circt::om::evaluator::AttributeValue::setAttr | ( | Attribute | attr | ) |
Definition at line 919 of file Evaluator.cpp.
|
private |
Definition at line 165 of file Evaluator.h.
|
private |
Definition at line 166 of file Evaluator.h.
Referenced by fsm.MachineOp::__init__(), esiaccel.types.WritePort::__serialize_msg(), hw.HWModuleOp::add_entry_block(), esiaccel.types.Port::connect(), getType(), hw.HWModuleOp::input_indices(), fsm.MachineOp::instantiate(), hw.HWModuleOp::outputs(), and esiaccel.types.ReadPort::read().