CIRCT 24.0.0git
Loading...
Searching...
No Matches
IMConstProp.cpp File Reference
#include "circt/Dialect/FIRRTL/FIRRTLAnnotations.h"
#include "circt/Dialect/FIRRTL/FIRRTLAttributes.h"
#include "circt/Dialect/FIRRTL/FIRRTLInstanceGraph.h"
#include "circt/Dialect/FIRRTL/FIRRTLOps.h"
#include "circt/Dialect/FIRRTL/FIRRTLUtils.h"
#include "circt/Dialect/FIRRTL/Passes.h"
#include "circt/Support/APInt.h"
#include "mlir/IR/Iterators.h"
#include "mlir/IR/Threading.h"
#include "mlir/Pass/Pass.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/ADT/TinyPtrVector.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ScopedPrinter.h"
#include "circt/Dialect/FIRRTL/Passes.h.inc"
Include dependency graph for IMConstProp.cpp:

Go to the source code of this file.

Namespaces

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

Macros

#define GEN_PASS_DEF_IMCONSTPROP
#define DEBUG_TYPE   "IMCP"

Functions

static bool isWireOrReg (Operation *op)
 Return true if this is a wire or register.
static bool isAggregate (Operation *op)
 Return true if this is an aggregate indexer.
static bool isNodeLike (Operation *op)
static bool isDeletableWireOrRegOrNode (Operation *op)
 Return true if this is a wire or register we're allowed to delete.
static LLVM_ATTRIBUTE_USED llvm::raw_ostream & operator<< (llvm::raw_ostream &os, const LatticeValue &lattice)
static std::optional< uint64_t > getFieldIDOffset (FieldRef changedFieldRef, Type connectionType, FieldRef connectedValueFieldRef)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "IMCP"

Definition at line 39 of file IMConstProp.cpp.

◆ GEN_PASS_DEF_IMCONSTPROP

#define GEN_PASS_DEF_IMCONSTPROP

Definition at line 31 of file IMConstProp.cpp.

Function Documentation

◆ getFieldIDOffset()

std::optional< uint64_t > getFieldIDOffset ( FieldRef changedFieldRef,
Type connectionType,
FieldRef connectedValueFieldRef )
static

◆ isAggregate()

bool isAggregate ( Operation * op)
static

Return true if this is an aggregate indexer.

Definition at line 47 of file IMConstProp.cpp.

◆ isDeletableWireOrRegOrNode()

bool isDeletableWireOrRegOrNode ( Operation * op)
static

Return true if this is a wire or register we're allowed to delete.

Definition at line 59 of file IMConstProp.cpp.

References circt::firrtl::AnnotationSet::empty(), circt::firrtl::hasDontTouch(), circt::firrtl::hasDroppableName(), isWireOrReg(), and circt::firrtl::type_isa().

◆ isNodeLike()

bool isNodeLike ( Operation * op)
static

Definition at line 54 of file IMConstProp.cpp.

◆ isWireOrReg()

bool isWireOrReg ( Operation * op)
static

Return true if this is a wire or register.

Definition at line 42 of file IMConstProp.cpp.

Referenced by isDeletableWireOrRegOrNode().

◆ operator<<()

LLVM_ATTRIBUTE_USED llvm::raw_ostream & operator<< ( llvm::raw_ostream & os,
const LatticeValue & lattice )
static

Definition at line 175 of file IMConstProp.cpp.