CIRCT  19.0.0git
Functions
Moore.cpp File Reference
#include "circt-c/Dialect/Moore.h"
#include "circt/Dialect/Moore/MooreDialect.h"
#include "circt/Dialect/Moore/MooreTypes.h"
#include "mlir/CAPI/IR.h"
#include "mlir/CAPI/Registration.h"
#include "mlir/CAPI/Support.h"
Include dependency graph for Moore.cpp:

Go to the source code of this file.

Functions

MlirType mooreVoidTypeGet (MlirContext ctx)
 Create a void type. More...
 
MlirType mooreStringTypeGet (MlirContext ctx)
 Create a string type. More...
 
MlirType mooreChandleTypeGet (MlirContext ctx)
 Create a chandle type. More...
 
MlirType mooreEventTypeGet (MlirContext ctx)
 Create a event type. More...
 
MlirType mooreIntTypeGetInt (MlirContext ctx, unsigned width)
 Create a two-valued simple bit vector type. More...
 
MlirType mooreIntTypeGetLogic (MlirContext ctx, unsigned width)
 Create a four-valued simple bit vector type. More...
 
MlirType mooreRealTypeGet (MlirContext ctx)
 Create a real type. More...
 
MlirType moorePackedUnsizedDimTypeGet (MlirType inner)
 Create a packed unsized dimension type. More...
 
MlirType moorePackedRangeDimTypeGet (MlirType inner, unsigned size, bool upDir, int offset)
 Create a packed range dimension type. More...
 
MlirType mooreUnpackedUnsizedDimTypeGet (MlirType inner)
 Create a unpacked unsized dimension type. More...
 
MlirType mooreUnpackedArrayDimTypeGet (MlirType inner, unsigned size)
 Create a unpacked array dimension type. More...
 
MlirType mooreUnpackedRangeDimTypeGet (MlirType inner, unsigned size, bool upDir, int offset)
 Create a unpacked range dimension type. More...
 
MlirType mooreUnpackedAssocDimTypeGet (MlirType inner)
 Create a unpacked assoc dimension type without index. More...
 
MlirType mooreUnpackedAssocDimTypeGetWithIndex (MlirType inner, MlirType indexType)
 Create a unpacked assoc dimension type with index. More...
 
MlirType mooreUnpackedQueueDimTypeGet (MlirType inner)
 Create a unpacked queue dimension type without bound. More...
 
MlirType mooreUnpackedQueueDimTypeGetWithBound (MlirType inner, unsigned bound)
 Create a unpacked queue dimension type with bound. More...
 
bool mooreIsTwoValuedType (MlirType type)
 Checks whether the passed UnpackedType is a two-valued type. More...
 
bool mooreIsFourValuedType (MlirType type)
 Checks whether the passed UnpackedType is a four-valued type. More...
 

Function Documentation

◆ mooreChandleTypeGet()

MlirType mooreChandleTypeGet ( MlirContext  ctx)

Create a chandle type.

Definition at line 40 of file Moore.cpp.

References circt::calyx::direction::get(), unwrap(), and wrap().

◆ mooreEventTypeGet()

MlirType mooreEventTypeGet ( MlirContext  ctx)

Create a event type.

Create an event type.

Definition at line 45 of file Moore.cpp.

References circt::calyx::direction::get(), unwrap(), and wrap().

◆ mooreIntTypeGetInt()

MlirType mooreIntTypeGetInt ( MlirContext  ctx,
unsigned  width 
)

Create a two-valued simple bit vector type.

Definition at line 50 of file Moore.cpp.

References getInt(), unwrap(), width, and wrap().

◆ mooreIntTypeGetLogic()

MlirType mooreIntTypeGetLogic ( MlirContext  ctx,
unsigned  width 
)

Create a four-valued simple bit vector type.

Definition at line 55 of file Moore.cpp.

References unwrap(), width, and wrap().

◆ mooreIsFourValuedType()

bool mooreIsFourValuedType ( MlirType  type)

Checks whether the passed UnpackedType is a four-valued type.

Definition at line 123 of file Moore.cpp.

References circt::moore::FourValued, and unwrap().

◆ mooreIsTwoValuedType()

bool mooreIsTwoValuedType ( MlirType  type)

Checks whether the passed UnpackedType is a two-valued type.

Definition at line 118 of file Moore.cpp.

References circt::moore::TwoValued, and unwrap().

◆ moorePackedRangeDimTypeGet()

MlirType moorePackedRangeDimTypeGet ( MlirType  inner,
unsigned  size,
bool  upDir,
int  offset 
)

Create a packed range dimension type.

Definition at line 70 of file Moore.cpp.

References circt::moore::Down, circt::moore::PackedRangeDim::get(), unwrap(), circt::moore::Up, and wrap().

◆ moorePackedUnsizedDimTypeGet()

MlirType moorePackedUnsizedDimTypeGet ( MlirType  inner)

Create a packed unsized dimension type.

Definition at line 65 of file Moore.cpp.

References circt::moore::PackedUnsizedDim::get(), unwrap(), and wrap().

◆ mooreRealTypeGet()

MlirType mooreRealTypeGet ( MlirContext  ctx)

Create a real type.

Definition at line 60 of file Moore.cpp.

References circt::calyx::direction::get(), unwrap(), and wrap().

◆ mooreStringTypeGet()

MlirType mooreStringTypeGet ( MlirContext  ctx)

Create a string type.

Definition at line 35 of file Moore.cpp.

References circt::calyx::direction::get(), unwrap(), and wrap().

◆ mooreUnpackedArrayDimTypeGet()

MlirType mooreUnpackedArrayDimTypeGet ( MlirType  inner,
unsigned  size 
)

Create a unpacked array dimension type.

Definition at line 83 of file Moore.cpp.

References circt::moore::UnpackedArrayDim::get(), unwrap(), and wrap().

◆ mooreUnpackedAssocDimTypeGet()

MlirType mooreUnpackedAssocDimTypeGet ( MlirType  inner)

Create a unpacked assoc dimension type without index.

Definition at line 96 of file Moore.cpp.

References circt::moore::UnpackedAssocDim::get(), unwrap(), and wrap().

◆ mooreUnpackedAssocDimTypeGetWithIndex()

MlirType mooreUnpackedAssocDimTypeGetWithIndex ( MlirType  inner,
MlirType  indexType 
)

Create a unpacked assoc dimension type with index.

Create a unpacked assoc dimension type width index.

Definition at line 101 of file Moore.cpp.

References circt::moore::UnpackedAssocDim::get(), unwrap(), and wrap().

◆ mooreUnpackedQueueDimTypeGet()

MlirType mooreUnpackedQueueDimTypeGet ( MlirType  inner)

Create a unpacked queue dimension type without bound.

Definition at line 108 of file Moore.cpp.

References circt::moore::UnpackedQueueDim::get(), unwrap(), and wrap().

◆ mooreUnpackedQueueDimTypeGetWithBound()

MlirType mooreUnpackedQueueDimTypeGetWithBound ( MlirType  inner,
unsigned  bound 
)

Create a unpacked queue dimension type with bound.

Definition at line 113 of file Moore.cpp.

References circt::moore::UnpackedQueueDim::get(), unwrap(), and wrap().

◆ mooreUnpackedRangeDimTypeGet()

MlirType mooreUnpackedRangeDimTypeGet ( MlirType  inner,
unsigned  size,
bool  upDir,
int  offset 
)

Create a unpacked range dimension type.

Definition at line 88 of file Moore.cpp.

References circt::moore::Down, circt::moore::UnpackedRangeDim::get(), unwrap(), circt::moore::Up, and wrap().

◆ mooreUnpackedUnsizedDimTypeGet()

MlirType mooreUnpackedUnsizedDimTypeGet ( MlirType  inner)

Create a unpacked unsized dimension type.

Definition at line 78 of file Moore.cpp.

References circt::moore::UnpackedUnsizedDim::get(), unwrap(), and wrap().

◆ mooreVoidTypeGet()

MlirType mooreVoidTypeGet ( MlirContext  ctx)

Create a void type.

Definition at line 30 of file Moore.cpp.

References circt::calyx::direction::get(), unwrap(), and wrap().