|
CIRCT 24.0.0git
|
Lowering helper which collects all intrinsic converters. More...
#include <FIRRTLIntrinsics.h>

Public Types | |
| using | ConversionMapTy |
Public Member Functions | |
| IntrinsicLowerings (MLIRContext *context) | |
| template<typename T, typename... Args> | |
| void | add (Args... args) |
| Registers a converter to one or more intrinsic names. | |
| FailureOr< size_t > | lower (FModuleOp mod, bool allowUnknownIntrinsics=false) |
| Lowers all intrinsics in a module. Returns number converted or failure. | |
Private Member Functions | |
| template<typename T> | |
| std::enable_if_t< std::is_base_of_v< IntrinsicConverter, T > > | addConverter (StringRef name) |
Private Attributes | |
| MLIRContext * | context |
| Reference to the MLIR context. | |
| ConversionMapTy | conversions |
| Mapping from intrinsic names to converters. | |
Lowering helper which collects all intrinsic converters.
Definition at line 245 of file FIRRTLIntrinsics.h.
Definition at line 247 of file FIRRTLIntrinsics.h.
|
inline |
Definition at line 258 of file FIRRTLIntrinsics.h.
References context.
|
inline |
Registers a converter to one or more intrinsic names.
Definition at line 262 of file FIRRTLIntrinsics.h.
References addConverter().
|
inlineprivate |
Definition at line 272 of file FIRRTLIntrinsics.h.
References assert(), context, and conversions.
Referenced by add().
| FailureOr< size_t > IntrinsicLowerings::lower | ( | FModuleOp | mod, |
| bool | allowUnknownIntrinsics = false ) |
Lowers all intrinsics in a module. Returns number converted or failure.
Definition at line 153 of file FIRRTLIntrinsics.cpp.
References circt::firrtl::areTypesEquivalent(), context, conversions, circt::firrtl::emitConnect(), failure(), circt::firrtl::isTypeLarger(), and circt::firrtl::type_dyn_cast().
|
private |
Reference to the MLIR context.
Definition at line 252 of file FIRRTLIntrinsics.h.
Referenced by addConverter(), IntrinsicLowerings(), and lower().
|
private |
Mapping from intrinsic names to converters.
Definition at line 255 of file FIRRTLIntrinsics.h.
Referenced by addConverter(), and lower().