CIRCT  19.0.0git
Namespaces | Functions
CalyxHelpers.cpp File Reference
#include "circt/Dialect/Calyx/CalyxHelpers.h"
#include "circt/Dialect/Calyx/CalyxOps.h"
#include "circt/Dialect/Comb/CombOps.h"
#include "circt/Support/LLVM.h"
#include "mlir/IR/PatternMatch.h"
Include dependency graph for CalyxHelpers.cpp:

Go to the source code of this file.

Namespaces

 circt
 The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
 
 circt::calyx
 

Functions

calyx::RegisterOp circt::calyx::createRegister (Location loc, OpBuilder &builder, ComponentOp component, size_t width, Twine prefix)
 Creates a RegisterOp, with input and output port bit widths defined by width. More...
 
hw::ConstantOp circt::calyx::createConstant (Location loc, OpBuilder &builder, ComponentOp component, size_t width, size_t value)
 A helper function to create constants in the HW dialect. More...
 
calyx::InstanceOp circt::calyx::createInstance (Location loc, OpBuilder &builder, ComponentOp component, SmallVectorImpl< Type > &resultTypes, StringRef instanceName, StringRef componentName)
 A helper function to create calyx.instance operation. More...
 
std::string circt::calyx::getInstanceName (mlir::func::CallOp callOp)
 A helper function to get the instance name. More...
 
bool circt::calyx::isControlLeafNode (Operation *op)
 
DictionaryAttr circt::calyx::getMandatoryPortAttr (MLIRContext *ctx, StringRef name)
 
void circt::calyx::addMandatoryComponentPorts (PatternRewriter &rewriter, SmallVectorImpl< calyx::PortInfo > &ports)
 
unsigned circt::calyx::handleZeroWidth (int64_t dim)