|
CIRCT 24.0.0git
|
#include "circt/Dialect/OM/OMOps.h"#include "circt/Dialect/HW/HWOps.h"#include "circt/Dialect/OM/OMUtils.h"#include "mlir/IR/Builders.h"#include "mlir/IR/ImplicitLocOpBuilder.h"#include "mlir/IR/SymbolTable.h"#include "llvm/ADT/STLExtras.h"#include "circt/Dialect/OM/OM.cpp.inc"
Go to the source code of this file.
Macros | |
| #define | GET_OP_CLASSES |
Typedefs | |
| using | IntegerBinaryFn = llvm::function_ref< FailureOr< APSInt >(const APSInt &, const APSInt &)> |
Functions | |
| static ParseResult | parseBasePathString (OpAsmParser &parser, PathAttr &path) |
| static void | printBasePathString (OpAsmPrinter &p, Operation *op, PathAttr path) |
| static ParseResult | parsePathString (OpAsmParser &parser, PathAttr &path, StringAttr &module, StringAttr &ref, StringAttr &field) |
| static void | printPathString (OpAsmPrinter &p, Operation *op, PathAttr path, StringAttr module, StringAttr ref, StringAttr field) |
| static ParseResult | parseFieldLocs (OpAsmParser &parser, ArrayAttr &fieldLocs) |
| static void | printFieldLocs (OpAsmPrinter &printer, Operation *op, ArrayAttr fieldLocs) |
| static ParseResult | parseClassFieldsList (OpAsmParser &parser, SmallVectorImpl< Attribute > &fieldNames, SmallVectorImpl< Type > &fieldTypes) |
| static ParseResult | parseClassLike (OpAsmParser &parser, OperationState &state) |
| static void | printClassLike (ClassLike classLike, OpAsmPrinter &printer) |
| LogicalResult | verifyClassLike (ClassLike classLike) |
| void | getClassLikeAsmBlockArgumentNames (ClassLike classLike, Region ®ion, OpAsmSetValueNameFn setNameFn) |
| NamedAttribute | makeFieldType (StringAttr name, Type type) |
| NamedAttribute | makeFieldIdx (MLIRContext *ctx, mlir::StringAttr name, unsigned i) |
| std::optional< Type > | getClassLikeFieldType (ClassLike classLike, StringAttr name) |
| void | replaceClassLikeFieldTypes (ClassLike classLike, AttrTypeReplacer &replacer) |
| static FailureOr< ClassLike > | verifyClassLikeSymbolUser (Operation *op, SymbolTableCollection &symbolTable, ClassType resultType, StringAttr className) |
| static APSInt | getAPSIntForOMIntegerAttr (circt::om::IntegerAttr attr) |
| static OpFoldResult | foldIntegerBinaryArithmetic (Attribute lhsAttr, Attribute rhsAttr, IntegerBinaryFn evaluate) |
| static FailureOr< mlir::Attribute > | evaluateBinaryEquality (mlir::Attribute lhsAttr, mlir::Attribute rhsAttr) |
| static OpFoldResult | foldIntegerBitwise (Attribute lhsAttr, Attribute rhsAttr, IntegerBinaryFn evaluate) |
| static bool | isZeroInt (Attribute a) |
| static bool | isAllOnesInt (Attribute a) |
| using IntegerBinaryFn = llvm::function_ref<FailureOr<APSInt>(const APSInt &, const APSInt &)> |
|
static |
Definition at line 1004 of file OMOps.cpp.
References getAPSIntForOMIntegerAttr().
|
static |
Definition at line 764 of file OMOps.cpp.
References getAPSIntForOMIntegerAttr().
|
static |
|
static |
Definition at line 750 of file OMOps.cpp.
Referenced by evaluateBinaryEquality(), and foldIntegerBinaryArithmetic().
| void getClassLikeAsmBlockArgumentNames | ( | ClassLike | classLike, |
| Region & | region, | ||
| OpAsmSetValueNameFn | setNameFn | ||
| ) |
| std::optional< Type > getClassLikeFieldType | ( | ClassLike | classLike, |
| StringAttr | name | ||
| ) |
| NamedAttribute makeFieldIdx | ( | MLIRContext * | ctx, |
| mlir::StringAttr | name, | ||
| unsigned | i | ||
| ) |
| NamedAttribute makeFieldType | ( | StringAttr | name, |
| Type | type | ||
| ) |
|
static |
Definition at line 28 of file OMOps.cpp.
References context, and circt::om::parseBasePath().
|
static |
Definition at line 102 of file OMOps.cpp.
Referenced by parseClassLike().
|
static |
Definition at line 134 of file OMOps.cpp.
References parseClassFieldsList().
|
static |
|
static |
Definition at line 50 of file OMOps.cpp.
References context, and circt::om::parsePath().
|
static |
Definition at line 39 of file OMOps.cpp.
References circt::om::PathElement::instance.
|
static |
|
static |
|
static |
| void replaceClassLikeFieldTypes | ( | ClassLike | classLike, |
| AttrTypeReplacer & | replacer | ||
| ) |