CIRCT
20.0.0git
|
Builds instance for the calyx.invoke and calyx.group in order to initialize the instance. More...
#include <CalyxLoweringUtils.h>
Private Member Functions | |
LogicalResult | partiallyLowerFuncToComp (mlir::func::FuncOp funcOp, PatternRewriter &rewriter) const override |
ComponentOp | getCallComponent (mlir::func::CallOp callOp) const |
FuncOpPartialLoweringPattern (MLIRContext *context, LogicalResult &resRef, PatternApplicationState &patternState, DenseMap< mlir::func::FuncOp, calyx::ComponentOp > &map, calyx::CalyxLoweringState &state) | |
Additional Inherited Members | |
Public Member Functions inherited from circt::calyx::FuncOpPartialLoweringPattern | |
FuncOpPartialLoweringPattern (MLIRContext *context, LogicalResult &resRef, PatternApplicationState &patternState, DenseMap< mlir::func::FuncOp, calyx::ComponentOp > &map, calyx::CalyxLoweringState &state) | |
LogicalResult | partiallyLower (mlir::func::FuncOp funcOp, PatternRewriter &rewriter) const override final |
Entry point to initialize the state of this class and conduct the partial lowering. More... | |
calyx::ComponentOp | getComponent () const |
Returns the component operation associated with the currently executing partial lowering. More... | |
template<typename T = ComponentLoweringStateInterface> | |
T & | getState () const |
CalyxLoweringState & | loweringState () const |
Return the calyx lowering state for this pattern. More... | |
Public Member Functions inherited from circt::calyx::PartialLoweringPattern< mlir::func::FuncOp > | |
PartialLoweringPattern (MLIRContext *ctx, LogicalResult &resRef, PatternApplicationState &patternState) | |
LogicalResult | matchAndRewrite (mlir::func::FuncOp op, PatternRewriter &rewriter) const override |
Protected Attributes inherited from circt::calyx::FuncOpPartialLoweringPattern | |
DenseMap< mlir::func::FuncOp, calyx::ComponentOp > & | functionMapping |
Builds instance for the calyx.invoke and calyx.group in order to initialize the instance.
Definition at line 773 of file CalyxLoweringUtils.h.
|
private |
Definition at line 611 of file CalyxLoweringUtils.cpp.
|
private |
Definition at line 837 of file CalyxLoweringUtils.cpp.
References circt::calyx::FuncOpPartialLoweringPattern::componentOp, and circt::calyx::FuncOpPartialLoweringPattern::functionMapping.
Referenced by partiallyLowerFuncToComp().
|
overrideprivatevirtual |
Implements circt::calyx::FuncOpPartialLoweringPattern.
Definition at line 793 of file CalyxLoweringUtils.cpp.
References circt::calyx::FuncOpPartialLoweringPattern::componentOp, circt::calyx::createConstant(), circt::calyx::createInstance(), circt::calyx::donePort, getBodyBlock(), getCallComponent(), circt::calyx::FuncOpPartialLoweringPattern::getComponent(), circt::calyx::getInstanceName(), circt::calyx::FuncOpPartialLoweringPattern::getState(), circt::calyx::goPort, and circt::calyx::resetPort.