CIRCT 24.0.0git
Loading...
Searching...
No Matches
MooreOps.cpp File Reference
#include "circt/Dialect/Moore/MooreOps.h"
#include "circt/Dialect/HW/CustomDirectiveImpl.h"
#include "circt/Dialect/HW/ModuleImplementation.h"
#include "circt/Dialect/Moore/MooreAttributes.h"
#include "circt/Support/CustomDirectiveImpl.h"
#include "mlir/IR/Builders.h"
#include "mlir/Interfaces/FunctionImplementation.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/TypeSwitch.h"
#include <mlir/Dialect/Func/IR/FuncOps.h>
#include "circt/Dialect/Moore/Moore.cpp.inc"
#include "circt/Dialect/Moore/MooreEnums.cpp.inc"
Include dependency graph for MooreOps.cpp:

Go to the source code of this file.

Macros

#define GET_OP_CLASSES

Functions

static std::pair< unsigned, UnpackedType > getArrayElements (Type type)
static std::optional< uint32_t > getStructFieldIndex (Type type, StringAttr name)
static ArrayRef< StructLikeMember > getStructMembers (Type type)
static UnpackedType getStructFieldType (Type type, StringAttr name)
static OpFoldResult powCommonFolding (MLIRContext *ctxt, Attribute lhs, Attribute rhs)
static std::optional< DPIArgDirection > parseDPIArgDirKeyword (StringRef keyword)
 Helper: parse a DPI direction keyword.
static StringRef stringifyDPIArgDir (DPIArgDirection dir)
 Helper: stringify a DPI direction.

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 2196 of file MooreOps.cpp.

Function Documentation

◆ getArrayElements()

std::pair< unsigned, UnpackedType > getArrayElements ( Type type)
static

Definition at line 841 of file MooreOps.cpp.

References assert().

◆ getStructFieldIndex()

std::optional< uint32_t > getStructFieldIndex ( Type type,
StringAttr name )
static

Definition at line 874 of file MooreOps.cpp.

References assert().

Referenced by getStructFieldType().

◆ getStructFieldType()

UnpackedType getStructFieldType ( Type type,
StringAttr name )
static

Definition at line 892 of file MooreOps.cpp.

References getStructFieldIndex(), and getStructMembers().

◆ getStructMembers()

ArrayRef< StructLikeMember > getStructMembers ( Type type)
static

Definition at line 883 of file MooreOps.cpp.

References assert().

Referenced by getStructFieldType().

◆ parseDPIArgDirKeyword()

std::optional< DPIArgDirection > parseDPIArgDirKeyword ( StringRef keyword)
static

Helper: parse a DPI direction keyword.

Definition at line 1895 of file MooreOps.cpp.

◆ powCommonFolding()

OpFoldResult powCommonFolding ( MLIRContext * ctxt,
Attribute lhs,
Attribute rhs )
static

Definition at line 1385 of file MooreOps.cpp.

◆ stringifyDPIArgDir()

StringRef stringifyDPIArgDir ( DPIArgDirection dir)
static

Helper: stringify a DPI direction.

Definition at line 1905 of file MooreOps.cpp.