CIRCT 22.0.0git
Loading...
Searching...
No Matches
Classes | Functions
DatapathFolds.cpp File Reference
#include "circt/Dialect/Comb/CombOps.h"
#include "circt/Dialect/Datapath/DatapathOps.h"
#include "circt/Dialect/HW/HWOps.h"
#include "mlir/IR/Matchers.h"
#include "mlir/IR/PatternMatch.h"
#include "llvm/Support/KnownBits.h"
#include <algorithm>
Include dependency graph for DatapathFolds.cpp:

Go to the source code of this file.

Classes

struct  FoldCompressIntoCompress
 
struct  FoldAddIntoCompress
 
struct  ConstantFoldCompress
 
struct  ReduceNumPartialProducts
 
struct  PosPartialProducts
 
struct  ReduceNumPosPartialProducts
 

Functions

static FailureOr< size_t > calculateNonZeroBits (Value operand, size_t numResults)
 
static bool areAllCompressorResultsSummed (ValueRange compressResults, ValueRange operands)
 

Function Documentation

◆ areAllCompressorResultsSummed()

static bool areAllCompressorResultsSummed ( ValueRange  compressResults,
ValueRange  operands 
)
static

◆ calculateNonZeroBits()

static FailureOr< size_t > calculateNonZeroBits ( Value  operand,
size_t  numResults 
)
static