CIRCT 24.0.0git
Loading...
Searching...
No Matches
HWAggregateToComb.cpp File Reference
#include "circt/Dialect/Comb/CombOps.h"
#include "circt/Dialect/HW/HWOps.h"
#include "circt/Dialect/HW/HWPasses.h"
#include "circt/Dialect/HW/HWTypes.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/DialectConversion.h"
#include "llvm/ADT/APInt.h"
#include "circt/Dialect/HW/Passes.h.inc"
Include dependency graph for HWAggregateToComb.cpp:

Go to the source code of this file.

Namespaces

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

Macros

#define GEN_PASS_DEF_HWAGGREGATETOCOMB

Functions

static SmallVector< int64_t > getStructFieldOffsets (hw::StructType structType)
 Compute the bit offset of each field of a struct, counted from the LSB.
static void populateHWAggregateToCombOpConversionPatterns (RewritePatternSet &patterns, AggregateTypeConverter &typeConverter)

Macro Definition Documentation

◆ GEN_PASS_DEF_HWAGGREGATETOCOMB

#define GEN_PASS_DEF_HWAGGREGATETOCOMB

Definition at line 19 of file HWAggregateToComb.cpp.

Function Documentation

◆ getStructFieldOffsets()

SmallVector< int64_t > getStructFieldOffsets ( hw::StructType structType)
static

Compute the bit offset of each field of a struct, counted from the LSB.

The first field occupies the MSBs.

Definition at line 435 of file HWAggregateToComb.cpp.

References assert(), and circt::hw::getBitWidth().

◆ populateHWAggregateToCombOpConversionPatterns()

void populateHWAggregateToCombOpConversionPatterns ( RewritePatternSet & patterns,
AggregateTypeConverter & typeConverter )
static

Definition at line 559 of file HWAggregateToComb.cpp.