CIRCT
20.0.0git
|
Helper class for checking and extracting information from the generic instrinsic op. More...
#include <FIRRTLIntrinsics.h>
Public Member Functions | |
GenericIntrinsic (GenericIntrinsicOp op) | |
InFlightDiagnostic | emitError () |
ParseResult | hasNInputs (unsigned n, unsigned c=0) |
unsigned | getNumInputs () |
template<typename C > | |
ParseResult | checkInputType (unsigned n, const Twine &msg, C &&call) |
template<typename C > | |
ParseResult | checkInputType (unsigned n, C &&call) |
template<typename T > | |
ParseResult | typedInput (unsigned n) |
ParseResult | hasResetInput (unsigned n) |
template<typename T > | |
ParseResult | sizedInput (unsigned n, int32_t size) |
ParseResult | hasNParam (unsigned n, unsigned c=0) |
ParseResult | namedParam (StringRef paramName, bool optional=false) |
ParseResult | namedIntParam (StringRef paramName, bool optional=false) |
ParamDeclAttr | getParamByName (StringRef name) |
template<typename T > | |
T | getParamValue (StringRef name) |
Get parameter value by name, if present, as requested type. More... | |
ParseResult | hasOutput () |
ParseResult | hasNoOutput () |
template<typename T > | |
ParseResult | typedOutput () |
template<typename T > | |
ParseResult | sizedOutput (int32_t size) |
mlir::TypedValue< BundleType > | getOutputBundle () |
ParseResult | hasNOutputElements (unsigned n) |
template<typename C > | |
ParseResult | checkOutputElement (unsigned n, StringRef name, const Twine &msg, C &&call) |
template<typename C > | |
ParseResult | checkOutputElement (unsigned n, StringRef name, C &&call) |
ParseResult | hasOutputElement (unsigned n, StringRef name) |
template<typename T > | |
ParseResult | typedOutputElement (unsigned n, StringRef name) |
template<typename T > | |
ParseResult | sizedOutputElement (unsigned n, StringRef name, int32_t size) |
Public Attributes | |
GenericIntrinsicOp | op |
Helper class for checking and extracting information from the generic instrinsic op.
Definition at line 26 of file FIRRTLIntrinsics.h.
|
inline |
Definition at line 29 of file FIRRTLIntrinsics.h.
|
inline |
Definition at line 50 of file FIRRTLIntrinsics.h.
References checkInputType().
|
inline |
Definition at line 41 of file FIRRTLIntrinsics.h.
References emitError(), and op.
Referenced by checkInputType(), hasResetInput(), sizedInput(), and typedInput().
|
inline |
Definition at line 163 of file FIRRTLIntrinsics.h.
References checkOutputElement().
|
inline |
Definition at line 144 of file FIRRTLIntrinsics.h.
References emitError(), and getOutputBundle().
Referenced by checkOutputElement(), hasOutputElement(), sizedOutputElement(), and typedOutputElement().
|
inline |
Definition at line 31 of file FIRRTLIntrinsics.h.
References op.
Referenced by checkInputType(), checkOutputElement(), hasNInputs(), hasNoOutput(), hasNOutputElements(), hasNParam(), hasOutput(), namedIntParam(), namedParam(), sizedOutput(), and typedOutput().
unsigned GenericIntrinsic::getNumInputs | ( | ) |
Definition at line 38 of file FIRRTLIntrinsics.cpp.
References op.
|
inline |
Definition at line 137 of file FIRRTLIntrinsics.h.
References op.
Referenced by checkOutputElement(), and hasNOutputElements().
|
inline |
|
inline |
Get parameter value by name, if present, as requested type.
Definition at line 93 of file FIRRTLIntrinsics.h.
References getParamByName().
ParseResult GenericIntrinsic::hasNInputs | ( | unsigned | n, |
unsigned | c = 0 |
||
) |
Definition at line 23 of file FIRRTLIntrinsics.cpp.
References emitError(), and op.
|
inline |
Definition at line 109 of file FIRRTLIntrinsics.h.
References emitError(), and op.
ParseResult GenericIntrinsic::hasNOutputElements | ( | unsigned | n | ) |
Definition at line 40 of file FIRRTLIntrinsics.cpp.
References emitError(), and getOutputBundle().
ParseResult GenericIntrinsic::hasNParam | ( | unsigned | n, |
unsigned | c = 0 |
||
) |
Definition at line 50 of file FIRRTLIntrinsics.cpp.
References emitError(), and op.
|
inline |
Definition at line 104 of file FIRRTLIntrinsics.h.
References emitError(), and op.
Referenced by typedOutput().
|
inline |
Definition at line 168 of file FIRRTLIntrinsics.h.
References checkOutputElement().
|
inline |
Definition at line 59 of file FIRRTLIntrinsics.h.
References checkInputType().
ParseResult GenericIntrinsic::namedIntParam | ( | StringRef | paramName, |
bool | optional = false |
||
) |
Definition at line 81 of file FIRRTLIntrinsics.cpp.
References emitError(), and op.
ParseResult GenericIntrinsic::namedParam | ( | StringRef | paramName, |
bool | optional = false |
||
) |
Definition at line 65 of file FIRRTLIntrinsics.cpp.
References emitError(), and op.
|
inline |
Definition at line 67 of file FIRRTLIntrinsics.h.
References checkInputType().
|
inline |
Definition at line 125 of file FIRRTLIntrinsics.h.
References emitError(), and op.
|
inline |
Definition at line 178 of file FIRRTLIntrinsics.h.
References checkOutputElement().
|
inline |
Definition at line 55 of file FIRRTLIntrinsics.h.
References checkInputType().
|
inline |
Definition at line 116 of file FIRRTLIntrinsics.h.
References emitError(), hasOutput(), and op.
|
inline |
Definition at line 173 of file FIRRTLIntrinsics.h.
References checkOutputElement().
GenericIntrinsicOp circt::firrtl::GenericIntrinsic::op |
Definition at line 27 of file FIRRTLIntrinsics.h.
Referenced by checkInputType(), emitError(), getNumInputs(), getOutputBundle(), getParamByName(), hasNInputs(), hasNoOutput(), hasNParam(), hasOutput(), namedIntParam(), namedParam(), sizedOutput(), and typedOutput().