CIRCT  19.0.0git
Macros | Functions
SeqOps.cpp File Reference
#include "circt/Dialect/Seq/SeqOps.h"
#include "circt/Dialect/HW/HWOps.h"
#include "circt/Support/CustomDirectiveImpl.h"
#include "circt/Support/FoldUtils.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 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 993 of file SeqOps.cpp.

Function Documentation

◆ canElideName()

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

Definition at line 58 of file SeqOps.cpp.

◆ isConstAllOnes()

static bool isConstAllOnes ( Value  value)
static

Definition at line 820 of file SeqOps.cpp.

◆ isConstClock()

static bool isConstClock ( Value  value)
static

Definition at line 807 of file SeqOps.cpp.

◆ isConstZero()

static bool isConstZero ( Value  value)
static

Definition at line 813 of file SeqOps.cpp.

◆ parseFIFOAEThreshold()

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

Definition at line 245 of file SeqOps.cpp.

References parseFIFOFlagThreshold().

◆ parseFIFOAFThreshold()

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

Definition at line 239 of file SeqOps.cpp.

References parseFIFOFlagThreshold().

◆ parseFIFOFlagThreshold()

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

Definition at line 220 of file SeqOps.cpp.

Referenced by parseFIFOAEThreshold(), and parseFIFOAFThreshold().

◆ parseOptionalTypeMatch()

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

Definition at line 74 of file SeqOps.cpp.

◆ printFIFOAEThreshold()

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

Definition at line 259 of file SeqOps.cpp.

◆ printFIFOAFThreshold()

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

Definition at line 251 of file SeqOps.cpp.

◆ printOptionalTypeMatch()

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

Definition at line 82 of file SeqOps.cpp.

◆ setNameFromResult()

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

Definition at line 47 of file SeqOps.cpp.

References isdigit.

◆ verifyFirMemMask()

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

Definition at line 789 of file SeqOps.cpp.

References circt::calyx::direction::get().

◆ verifyResets()

template<typename TOp >
LogicalResult verifyResets ( TOp  op)

Definition at line 312 of file SeqOps.cpp.