CIRCT 21.0.0git
Loading...
Searching...
No Matches
Functions
CalyxEmitter.cpp File Reference
#include "circt/Dialect/Calyx/CalyxEmitter.h"
#include "circt/Dialect/Calyx/CalyxOps.h"
#include "circt/Dialect/Comb/CombOps.h"
#include "circt/Dialect/HW/HWAttributes.h"
#include "circt/Dialect/HW/HWOps.h"
#include "circt/Support/LLVM.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/Tools/mlir-translate/Translation.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/TypeSwitch.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/FormatVariadic.h"
#include <bitset>
#include <string>
Include dependency graph for CalyxEmitter.cpp:

Go to the source code of this file.

Functions

static StringRef removeCalyxPrefix (StringRef s)
 Calling getName() on a calyx operation will return "calyx.${opname}".
 
unsigned getFPBitWidth (CellInterface &cell)
 
unsigned getIntWidth (Operation *op, CellInterface &cell, bool isIntToFp)
 

Function Documentation

◆ getFPBitWidth()

unsigned getFPBitWidth ( CellInterface &  cell)

Definition at line 1014 of file CalyxEmitter.cpp.

References assert().

◆ getIntWidth()

unsigned getIntWidth ( Operation *  op,
CellInterface &  cell,
bool  isIntToFp 
)

Definition at line 1029 of file CalyxEmitter.cpp.

References assert().

◆ removeCalyxPrefix()

static StringRef removeCalyxPrefix ( StringRef  s)
static

Calling getName() on a calyx operation will return "calyx.${opname}".

This function returns whatever is left after the first '.' in the string, removing the 'calyx' prefix.

Definition at line 980 of file CalyxEmitter.cpp.