CIRCT 24.0.0git
Loading...
Searching...
No Matches
CHIRRTLDialect.cpp File Reference
#include "circt/Dialect/FIRRTL/CHIRRTLDialect.h"
#include "circt/Dialect/FIRRTL/FIRRTLAttributes.h"
#include "circt/Dialect/FIRRTL/FIRRTLDialect.h"
#include "circt/Dialect/FIRRTL/FIRRTLTypes.h"
#include "circt/Dialect/HW/HWAttributes.h"
#include "circt/Support/LLVM.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/IR/OpDefinition.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/TypeSwitch.h"
#include "circt/Dialect/FIRRTL/CHIRRTL.cpp.inc"
#include "circt/Dialect/FIRRTL/CHIRRTLDialect.cpp.inc"
Include dependency graph for CHIRRTLDialect.cpp:

Go to the source code of this file.

Macros

#define GET_OP_CLASSES
#define GET_OP_LIST

Functions

static ParseResult parseCHIRRTLOp (OpAsmParser &parser, NamedAttrList &resultAttrs)
static void printCHIRRTLOp (OpAsmPrinter &p, Operation *op, DictionaryAttr attr, ArrayRef< StringRef > extraElides={})
static ParseResult parseNameKind (OpAsmParser &parser, firrtl::NameKindEnumAttr &result)
static void printNameKind (OpAsmPrinter &p, Operation *op, firrtl::NameKindEnumAttr attr, ArrayRef< StringRef > extraElides={})
static ParseResult parseMemoryPortOp (OpAsmParser &parser, NamedAttrList &resultAttrs)
static void printMemoryPortOp (OpAsmPrinter &p, Operation *op, DictionaryAttr attr)
 Always elide "direction" and elide "annotations" if it exists or if it is empty.
static ParseResult parseMemoryDebugPortOp (OpAsmParser &parser, NamedAttrList &resultAttrs)
static void printMemoryDebugPortOp (OpAsmPrinter &p, Operation *op, DictionaryAttr attr)
 Always elide "direction" and elide "annotations" if it exists or if it is empty.
static ParseResult parseCombMemOp (OpAsmParser &parser, NamedAttrList &resultAttrs)
static void printCombMemOp (OpAsmPrinter &p, Operation *op, DictionaryAttr attr)
static ParseResult parseSeqMemOp (OpAsmParser &parser, NamedAttrList &resultAttrs)
static void printSeqMemOp (OpAsmPrinter &p, Operation *op, DictionaryAttr attr)
 Always elide "ruw" and elide "annotations" if it exists or if it is empty.

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 326 of file CHIRRTLDialect.cpp.

◆ GET_OP_LIST

#define GET_OP_LIST

Function Documentation

◆ parseCHIRRTLOp()

ParseResult parseCHIRRTLOp ( OpAsmParser & parser,
NamedAttrList & resultAttrs )
static

Definition at line 33 of file CHIRRTLDialect.cpp.

References context, isdigit, and success().

Referenced by parseCombMemOp(), and parseSeqMemOp().

◆ parseCombMemOp()

ParseResult parseCombMemOp ( OpAsmParser & parser,
NamedAttrList & resultAttrs )
static

Definition at line 241 of file CHIRRTLDialect.cpp.

References parseCHIRRTLOp().

◆ parseMemoryDebugPortOp()

ParseResult parseMemoryDebugPortOp ( OpAsmParser & parser,
NamedAttrList & resultAttrs )
static

Definition at line 217 of file CHIRRTLDialect.cpp.

◆ parseMemoryPortOp()

ParseResult parseMemoryPortOp ( OpAsmParser & parser,
NamedAttrList & resultAttrs )
static

Definition at line 161 of file CHIRRTLDialect.cpp.

◆ parseNameKind()

ParseResult parseNameKind ( OpAsmParser & parser,
firrtl::NameKindEnumAttr & result )
static

Definition at line 86 of file CHIRRTLDialect.cpp.

References success().

◆ parseSeqMemOp()

ParseResult parseSeqMemOp ( OpAsmParser & parser,
NamedAttrList & resultAttrs )
static

Definition at line 276 of file CHIRRTLDialect.cpp.

References parseCHIRRTLOp().

◆ printCHIRRTLOp()

void printCHIRRTLOp ( OpAsmPrinter & p,
Operation * op,
DictionaryAttr attr,
ArrayRef< StringRef > extraElides = {} )
static

Definition at line 54 of file CHIRRTLDialect.cpp.

Referenced by printCombMemOp(), and printSeqMemOp().

◆ printCombMemOp()

void printCombMemOp ( OpAsmPrinter & p,
Operation * op,
DictionaryAttr attr )
static

Definition at line 246 of file CHIRRTLDialect.cpp.

References printCHIRRTLOp().

◆ printMemoryDebugPortOp()

void printMemoryDebugPortOp ( OpAsmPrinter & p,
Operation * op,
DictionaryAttr attr )
static

Always elide "direction" and elide "annotations" if it exists or if it is empty.

Definition at line 228 of file CHIRRTLDialect.cpp.

◆ printMemoryPortOp()

void printMemoryPortOp ( OpAsmPrinter & p,
Operation * op,
DictionaryAttr attr )
static

Always elide "direction" and elide "annotations" if it exists or if it is empty.

Definition at line 172 of file CHIRRTLDialect.cpp.

◆ printNameKind()

void printNameKind ( OpAsmPrinter & p,
Operation * op,
firrtl::NameKindEnumAttr attr,
ArrayRef< StringRef > extraElides = {} )
static

Definition at line 103 of file CHIRRTLDialect.cpp.

◆ printSeqMemOp()

void printSeqMemOp ( OpAsmPrinter & p,
Operation * op,
DictionaryAttr attr )
static

Always elide "ruw" and elide "annotations" if it exists or if it is empty.

Definition at line 282 of file CHIRRTLDialect.cpp.

References printCHIRRTLOp().