CIRCT  20.0.0git
Namespaces | Functions
CalyxHelpers.h File Reference
#include "circt/Dialect/Calyx/CalyxOps.h"
#include "circt/Dialect/Comb/CombOps.h"
#include "circt/Dialect/HW/HWOps.h"
#include "circt/Support/LLVM.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include <memory>
Include dependency graph for CalyxHelpers.h:
This graph shows which files directly or indirectly include this file:

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)
 
template<typename Op >
static void circt::calyx::updateGroupAssignmentGuards (OpBuilder &builder, GroupOp &group, Op &op)
 Updates the guard of each assignment within a group with op. More...