CIRCT 20.0.0git
Loading...
Searching...
No Matches
Macros | Functions
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 "llvm/ADT/SmallString.h"
#include "llvm/ADT/TypeSwitch.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, UnpackedTypegetArrayElements (Type type)
 
static std::optional< uint32_t > getStructFieldIndex (Type type, StringAttr name)
 
static ArrayRef< StructLikeMembergetStructMembers (Type type)
 
static UnpackedType getStructFieldType (Type type, StringAttr name)
 
static OpFoldResult powCommonFolding (MLIRContext *ctxt, Attribute lhs, Attribute rhs)
 

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 1196 of file MooreOps.cpp.

Function Documentation

◆ getArrayElements()

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

Definition at line 680 of file MooreOps.cpp.

References assert().

◆ getStructFieldIndex()

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

Definition at line 713 of file MooreOps.cpp.

References assert().

Referenced by getStructFieldType().

◆ getStructFieldType()

static UnpackedType getStructFieldType ( Type  type,
StringAttr  name 
)
static

Definition at line 731 of file MooreOps.cpp.

References getStructFieldIndex(), and getStructMembers().

◆ getStructMembers()

static ArrayRef< StructLikeMember > getStructMembers ( Type  type)
static

Definition at line 722 of file MooreOps.cpp.

References assert().

Referenced by getStructFieldType().

◆ powCommonFolding()

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

Definition at line 1127 of file MooreOps.cpp.