CIRCT 24.0.0git
Loading...
Searching...
No Matches
FoldUtils.h File Reference
#include "circt/Support/LLVM.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "llvm/ADT/APInt.h"
Include dependency graph for FoldUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Functions

static std::optional< APInt > circt::getConstantInt (Attribute operand)
 Determine the integer value of a constant operand.
static bool circt::isConstantZero (Attribute operand)
 Determine whether a constant operand is a zero value.
static bool circt::isConstantOne (Attribute operand)
 Determine whether a constant operand is a one value.