CIRCT 24.0.0git
Loading...
Searching...
No Matches
SeqOps.cpp File Reference
#include "circt/Dialect/Seq/SeqOps.h"
#include "circt/Dialect/Comb/CombOps.h"
#include "circt/Dialect/HW/HWOps.h"
#include "circt/Support/CustomDirectiveImpl.h"
#include "circt/Support/FoldUtils.h"
#include "mlir/Analysis/TopologicalSortUtils.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/IR/Matchers.h"
#include "mlir/IR/PatternMatch.h"
#include "circt/Dialect/HW/HWTypes.h"
#include "llvm/ADT/SmallString.h"
#include "circt/Dialect/Seq/Seq.cpp.inc"
Include dependency graph for SeqOps.cpp:

Go to the source code of this file.

Macros

#define GET_OP_CLASSES

Functions

static void setNameFromResult (OpAsmParser &parser, OperationState &result)
static bool canElideName (OpAsmPrinter &p, Operation *op)
static ParseResult parseOptionalTypeMatch (OpAsmParser &parser, Type refType, std::optional< OpAsmParser::UnresolvedOperand > operand, Type &type)
static void printOptionalTypeMatch (OpAsmPrinter &p, Operation *op, Type refType, Value operand, Type type)
static ParseResult parseOptionalImmutableTypeMatch (OpAsmParser &parser, Type refType, std::optional< OpAsmParser::UnresolvedOperand > operand, Type &type)
static void printOptionalImmutableTypeMatch (OpAsmPrinter &p, Operation *op, Type refType, Value operand, Type type)
static ParseResult parseFIFOFlagThreshold (OpAsmParser &parser, IntegerAttr &threshold, Type &outputFlagType, StringRef directive)
ParseResult parseFIFOAFThreshold (OpAsmParser &parser, IntegerAttr &threshold, Type &outputFlagType)
ParseResult parseFIFOAEThreshold (OpAsmParser &parser, IntegerAttr &threshold, Type &outputFlagType)
void printFIFOAFThreshold (OpAsmPrinter &p, Operation *op, IntegerAttr threshold, Type outputFlagType)
void printFIFOAEThreshold (OpAsmPrinter &p, Operation *op, IntegerAttr threshold, Type outputFlagType)
template<typename TOp>
LogicalResult verifyResets (TOp op)
template<class Op>
static LogicalResult verifyFirMemMask (Op op)
static bool isConstClock (Value value)
static bool isConstZero (Value value)
static bool isConstAllOnes (Value value)

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 1320 of file SeqOps.cpp.

Function Documentation

◆ canElideName()

bool canElideName ( OpAsmPrinter & p,
Operation * op )
static

Definition at line 61 of file SeqOps.cpp.

◆ isConstAllOnes()

bool isConstAllOnes ( Value value)
static

Definition at line 979 of file SeqOps.cpp.

◆ isConstClock()

bool isConstClock ( Value value)
static

Definition at line 966 of file SeqOps.cpp.

◆ isConstZero()

bool isConstZero ( Value value)
static

Definition at line 972 of file SeqOps.cpp.

◆ parseFIFOAEThreshold()

ParseResult parseFIFOAEThreshold ( OpAsmParser & parser,
IntegerAttr & threshold,
Type & outputFlagType )

Definition at line 262 of file SeqOps.cpp.

References parseFIFOFlagThreshold().

◆ parseFIFOAFThreshold()

ParseResult parseFIFOAFThreshold ( OpAsmParser & parser,
IntegerAttr & threshold,
Type & outputFlagType )

Definition at line 256 of file SeqOps.cpp.

References parseFIFOFlagThreshold().

◆ parseFIFOFlagThreshold()

ParseResult parseFIFOFlagThreshold ( OpAsmParser & parser,
IntegerAttr & threshold,
Type & outputFlagType,
StringRef directive )
static

Definition at line 237 of file SeqOps.cpp.

References success().

Referenced by parseFIFOAEThreshold(), and parseFIFOAFThreshold().

◆ parseOptionalImmutableTypeMatch()

ParseResult parseOptionalImmutableTypeMatch ( OpAsmParser & parser,
Type refType,
std::optional< OpAsmParser::UnresolvedOperand > operand,
Type & type )
static

Definition at line 90 of file SeqOps.cpp.

References success().

◆ parseOptionalTypeMatch()

ParseResult parseOptionalTypeMatch ( OpAsmParser & parser,
Type refType,
std::optional< OpAsmParser::UnresolvedOperand > operand,
Type & type )
static

Definition at line 77 of file SeqOps.cpp.

References success().

◆ printFIFOAEThreshold()

void printFIFOAEThreshold ( OpAsmPrinter & p,
Operation * op,
IntegerAttr threshold,
Type outputFlagType )

Definition at line 275 of file SeqOps.cpp.

◆ printFIFOAFThreshold()

void printFIFOAFThreshold ( OpAsmPrinter & p,
Operation * op,
IntegerAttr threshold,
Type outputFlagType )

Definition at line 268 of file SeqOps.cpp.

◆ printOptionalImmutableTypeMatch()

void printOptionalImmutableTypeMatch ( OpAsmPrinter & p,
Operation * op,
Type refType,
Value operand,
Type type )
static

Definition at line 98 of file SeqOps.cpp.

◆ printOptionalTypeMatch()

void printOptionalTypeMatch ( OpAsmPrinter & p,
Operation * op,
Type refType,
Value operand,
Type type )
static

Definition at line 85 of file SeqOps.cpp.

◆ setNameFromResult()

void setNameFromResult ( OpAsmParser & parser,
OperationState & result )
static

Definition at line 50 of file SeqOps.cpp.

References isdigit.

◆ verifyFirMemMask()

template<class Op>
LogicalResult verifyFirMemMask ( Op op)
static

Definition at line 948 of file SeqOps.cpp.

References success().

◆ verifyResets()

template<typename TOp>
LogicalResult verifyResets ( TOp op)

Definition at line 317 of file SeqOps.cpp.

References success().