CIRCT  20.0.0git
Macros | Functions
SeqOps.cpp File Reference
#include "circt/Dialect/Seq/SeqOps.h"
#include "circt/Dialect/HW/HWOps.h"
#include "circt/Dialect/Sim/SimTypes.h"
#include "circt/Support/CustomDirectiveImpl.h"
#include "circt/Support/FoldUtils.h"
#include "mlir/Analysis/TopologicalSortUtils.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 1193 of file SeqOps.cpp.

Function Documentation

◆ canElideName()

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

Definition at line 60 of file SeqOps.cpp.

◆ isConstAllOnes()

static bool isConstAllOnes ( Value  value)
static

Definition at line 855 of file SeqOps.cpp.

◆ isConstClock()

static bool isConstClock ( Value  value)
static

Definition at line 842 of file SeqOps.cpp.

◆ isConstZero()

static bool isConstZero ( Value  value)
static

Definition at line 848 of file SeqOps.cpp.

◆ parseFIFOAEThreshold()

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

Definition at line 261 of file SeqOps.cpp.

References parseFIFOFlagThreshold().

◆ parseFIFOAFThreshold()

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

Definition at line 255 of file SeqOps.cpp.

References parseFIFOFlagThreshold().

◆ parseFIFOFlagThreshold()

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

Definition at line 236 of file SeqOps.cpp.

Referenced by parseFIFOAEThreshold(), and parseFIFOAFThreshold().

◆ parseOptionalImmutableTypeMatch()

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

Definition at line 89 of file SeqOps.cpp.

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

◆ parseOptionalTypeMatch()

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

Definition at line 76 of file SeqOps.cpp.

◆ printFIFOAEThreshold()

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

Definition at line 274 of file SeqOps.cpp.

◆ printFIFOAFThreshold()

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

Definition at line 267 of file SeqOps.cpp.

◆ printOptionalImmutableTypeMatch()

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

Definition at line 97 of file SeqOps.cpp.

◆ printOptionalTypeMatch()

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

Definition at line 84 of file SeqOps.cpp.

◆ setNameFromResult()

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

Definition at line 49 of file SeqOps.cpp.

References isdigit.

◆ verifyFirMemMask()

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

Definition at line 824 of file SeqOps.cpp.

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

◆ verifyResets()

template<typename TOp >
LogicalResult verifyResets ( TOp  op)

Definition at line 326 of file SeqOps.cpp.