CIRCT  19.0.0git
Functions
Moore.h File Reference
#include "mlir-c/IR.h"
Include dependency graph for Moore.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION (Moore, moore)
 
MLIR_CAPI_EXPORTED MlirType mooreVoidTypeGet (MlirContext ctx)
 Create a void type. More...
 
MLIR_CAPI_EXPORTED MlirType mooreStringTypeGet (MlirContext ctx)
 Create a string type. More...
 
MLIR_CAPI_EXPORTED MlirType mooreChandleTypeGet (MlirContext ctx)
 Create a chandle type. More...
 
MLIR_CAPI_EXPORTED MlirType mooreEventTypeGet (MlirContext ctx)
 Create an event type. More...
 
MLIR_CAPI_EXPORTED MlirType mooreIntTypeGetInt (MlirContext ctx, unsigned width)
 Create a two-valued simple bit vector type. More...
 
MLIR_CAPI_EXPORTED MlirType mooreIntTypeGetLogic (MlirContext ctx, unsigned width)
 Create a four-valued simple bit vector type. More...
 
MLIR_CAPI_EXPORTED MlirType mooreRealTypeGet (MlirContext ctx)
 Create a real type. More...
 
MLIR_CAPI_EXPORTED MlirType mooreOpenArrayTypeGet (MlirType elementType)
 Create a packed open array type. More...
 
MLIR_CAPI_EXPORTED MlirType mooreArrayTypeGet (unsigned size, MlirType elementType)
 Create a packed array type. More...
 
MLIR_CAPI_EXPORTED MlirType mooreOpenUnpackedArrayTypeGet (MlirType elementType)
 Create an unpacked open array type. More...
 
MLIR_CAPI_EXPORTED MlirType mooreUnpackedArrayTypeGet (unsigned size, MlirType elementType)
 Create an unpacked array type. More...
 
MLIR_CAPI_EXPORTED MlirType mooreAssocArrayTypeGet (MlirType elementType, MlirType indexType)
 Create an unpacked associative array type. More...
 
MLIR_CAPI_EXPORTED MlirType mooreQueueTypeGet (MlirType elementType, unsigned bound)
 Create an unpacked queue type. More...
 
MLIR_CAPI_EXPORTED bool mooreIsTwoValuedType (MlirType type)
 Checks whether the passed UnpackedType is a two-valued type. More...
 
MLIR_CAPI_EXPORTED bool mooreIsFourValuedType (MlirType type)
 Checks whether the passed UnpackedType is a four-valued type. More...
 

Function Documentation

◆ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION()

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION ( Moore  ,
moore   
)

◆ mooreArrayTypeGet()

MLIR_CAPI_EXPORTED MlirType mooreArrayTypeGet ( unsigned  size,
MlirType  elementType 
)

Create a packed array type.

Definition at line 68 of file Moore.cpp.

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

◆ mooreAssocArrayTypeGet()

MLIR_CAPI_EXPORTED MlirType mooreAssocArrayTypeGet ( MlirType  elementType,
MlirType  indexType 
)

Create an unpacked associative array type.

Definition at line 82 of file Moore.cpp.

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

◆ mooreChandleTypeGet()

MLIR_CAPI_EXPORTED 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()

MLIR_CAPI_EXPORTED MlirType mooreEventTypeGet ( MlirContext  ctx)

Create an event type.

Create an event type.

Definition at line 45 of file Moore.cpp.

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

◆ mooreIntTypeGetInt()

MLIR_CAPI_EXPORTED 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()

MLIR_CAPI_EXPORTED 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()

MLIR_CAPI_EXPORTED bool mooreIsFourValuedType ( MlirType  type)

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

Definition at line 95 of file Moore.cpp.

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

◆ mooreIsTwoValuedType()

MLIR_CAPI_EXPORTED bool mooreIsTwoValuedType ( MlirType  type)

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

Definition at line 91 of file Moore.cpp.

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

◆ mooreOpenArrayTypeGet()

MLIR_CAPI_EXPORTED MlirType mooreOpenArrayTypeGet ( MlirType  elementType)

Create a packed open array type.

Definition at line 64 of file Moore.cpp.

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

◆ mooreOpenUnpackedArrayTypeGet()

MLIR_CAPI_EXPORTED MlirType mooreOpenUnpackedArrayTypeGet ( MlirType  elementType)

Create an unpacked open array type.

Definition at line 72 of file Moore.cpp.

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

◆ mooreQueueTypeGet()

MLIR_CAPI_EXPORTED MlirType mooreQueueTypeGet ( MlirType  elementType,
unsigned  bound 
)

Create an unpacked queue type.

Definition at line 87 of file Moore.cpp.

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

◆ mooreRealTypeGet()

MLIR_CAPI_EXPORTED 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()

MLIR_CAPI_EXPORTED MlirType mooreStringTypeGet ( MlirContext  ctx)

Create a string type.

Definition at line 35 of file Moore.cpp.

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

◆ mooreUnpackedArrayTypeGet()

MLIR_CAPI_EXPORTED MlirType mooreUnpackedArrayTypeGet ( unsigned  size,
MlirType  elementType 
)

Create an unpacked array type.

Definition at line 77 of file Moore.cpp.

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

◆ mooreVoidTypeGet()

MLIR_CAPI_EXPORTED MlirType mooreVoidTypeGet ( MlirContext  ctx)

Create a void type.

Definition at line 30 of file Moore.cpp.

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